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();
}

你可能感兴趣的:(asp.net直接Response输出WML页面示例代码)