How to output WML pages directly from Response by asp.net
This article is about how ASP.NET directly responds to output WML pages. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
The code is as follows:
protected void Page_Load(object sender, EventArgs e)
{
Response.ContentType = "text/vnd.wap.wml";
StringBuilder builder = new StringBuilder();
builder.AppendLine("");
builder.AppendLine("");
builder.AppendLine("News| Sectoral bodies ");
builder.AppendLine("Archive file| Update ");
builder.AppendLine("");
builder.AppendLine("
");
builder.AppendLine("");
Response.Write(builder.ToString());
Response.End();
}
Thank you for reading! About "ASP.NET how to directly respond to the output of WML page" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!