您现在的位置是:网站首页> 编程资料编程资料

asp.net直接Response输出WML页面示例代码_实用技巧_

2023-05-24 308人已围观

简介 asp.net直接Response输出WML页面示例代码_实用技巧_

复制代码 代码如下:

protected void Page_Load(object sender, EventArgs e)
{
Response.ContentType = "text/vnd.wap.wml";
StringBuilder builder = new StringBuilder();
builder.AppendLine("");
builder.AppendLine("");
builder.AppendLine("");
builder.AppendLine("");
builder.AppendLine("");
builder.AppendLine("");
builder.AppendLine("");
builder.AppendLine("

\"公开信息查阅中心\"
");
builder.AppendLine("新闻动态|部门机构
");
builder.AppendLine("档案文件|最新文件
");
builder.AppendLine("");
builder.AppendLine("

");
builder.AppendLine("
");
Response.Write(builder.ToString());
Response.End();
}

-六神源码网