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

本例实现直接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页面示例代码的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » ASP编程