日期:2014-05-19  浏览次数:21196 次

C#输出WML遇到了问题
我在page_Load里这样写加载事件:
  string   wapContent= " ";
Response.ContentType   = "text/vnd.wap.wml ";
Response.ContentEncoding   =System.Text.Encoding   .GetEncoding   ( "GB2312 ");
wapContent= " <?xml   version=\ "1.0\ "   encoding=\ "gb2312\ "> ";
wapContent+= " <!DOCTYPE   wml   PUBLIC   \ "-//WAPFORUM//DTD   WML   1.1//EN\ "\ "http://www.wapforum.org/DTD/wml_1.1.xml\ "> ";
  wapContent+= " <wml> ";
  wapContent+= " <card   id=\ "card1\ "> ";
  wapContent+= " <p> ";
  wapContent+= "欢迎 ";
  wapContent+= " </p> ";
  wapContent+= " </card> ";
  wapContent+= " </wml> ";
  Response.Write   (wapContent);
编译没有错误,可是我用M3GATE测就是不行,是不是还要将HTML修改下?
我是用2003拼的wml。
报错如下:Expected   whitespace.
意思不明白。


------解决方案--------------------
up
------解决方案--------------------
接分
------解决方案--------------------
报错如下:Expected whitespace.
少了空格?
------解决方案--------------------
注释掉
Response.ContentType = "text/vnd.wap.wml ";