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

(编辑:jimmy 日期: 2024/10/6 浏览:2)

复制代码 代码如下:
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();
}
一句话新闻
Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。