asp.net直接Response输出WML页面示例代码

发布时间:2022-04-16 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了asp.net直接Response输出WML页面示例代码脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
复制代码 代码如下:

PRotected void Page_Load(object sender, Eventargs e)
{
Response.ContentTyPE = "text/vnd.wap.wML";
StringBuilder builder = new StringBuilder();
builder.AppendLine("<?XMl version=\"1.0\" encoding=\"UTF-8\" ?>");
builder.AppendLine("<!DOCTYPE wml PubLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">");
builder.AppendLine("<wml>");
builder.AppendLine("<head>");
builder.AppendLine("<;meta http-equiv=\"Cache-Control\" content=\"max-age=0\" />");
builder.AppendLine("</head>");
builder.AppendLine("<card tITle=\"公开信息查阅中心\">");
builder.AppendLine("<p><img src=\"images/LOGo.png\" alt=\"公开信息查阅中心\" /><br/>");
builder.AppendLine("<a href=\"\" title=\"新闻动态\">新闻动态</a>|<a href=\"Department.aspx\" title=\"部门机构\">部门机构</a><br/>");
builder.AppendLine("<a href=\"\" title=\"档案文件\">档案文件</a>|<a href=\"\" title=\"最新文件\">最新文件</a><br/>");
builder.AppendLine("");
builder.AppendLine(" </p></card>");
builder.AppendLine("</wml>");
Response.Write(builder.ToString());
Response.End();
}

脚本宝典总结

以上是脚本宝典为你收集整理的asp.net直接Response输出WML页面示例代码全部内容,希望文章能够帮你解决asp.net直接Response输出WML页面示例代码所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:Response