Get the App
SLTechnology News&Howtos  ›  Development  › 

How to output WML pages directly from Response by asp.net

Shulou Source: shulou.com Published: 2022-06-03 07:11:50 11月15日 Update

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!

Tags: Pages output content files more articles good practical code dynamic articles news institutions files see knowledge departments references help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn Shulou Information Redmi Microsoft