不要复杂,只是我想在我的返回page_head字符串(helper)中添加字符串sDtd值。这就是我到目前为止所拥有的。谢谢!!! P
public static string WriteDocType(HttpContext context)
{
string sDtd ="will equal document type!"
context.Response.ContentType = "text/vnd.wap.wml";
String page_head = "<?xml version=\"1.0\"?>"+sDtd+"<wml><head><meta http-equiv=\"Cache-Control\" content=\"max-age=0\" /></head><card title=\"Unsupported\"><p align=\"center\"><br/>Sorry! this mobile web browser is not supported.</p></card></wml>";
return page_head;
}
答案 0 :(得分:0)
字符串sDtd实例化结束时需要分号。