向返回的page_head字符串添加一个字符串值
本文关键字:字符串 一个 添加 page head 返回 | 更新日期: 2023-09-27 18:11:47
不复杂,只是我想添加一个字符串sDtd值到我的返回page_head字符串(helper)。这是我目前得到的。谢谢! !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;
}
分号需要在字符串sDtd实例化的末尾。