欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp.net直接Response輸出WML頁面示例代碼

 更新時間:2013年08月28日 15:53:21   作者:  
本例實(shí)現(xiàn)直接Response輸出WML頁面,具體代碼如下,有需要的朋友可以和參考下
復(fù)制代碼 代碼如下:

protected void Page_Load(object sender, EventArgs e)
{
Response.ContentType = "text/vnd.wap.wml";
StringBuilder builder = new StringBuilder();
builder.AppendLine("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
builder.AppendLine("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">");
builder.AppendLine("<wml>");
builder.AppendLine("<head>");
builder.AppendLine("<meta http-equiv=\"Cache-Control\" content=\"max-age=0\" />");
builder.AppendLine("</head>");
builder.AppendLine("<card title=\"公開信息查閱中心\">");
builder.AppendLine("<p><img src=\"images/logo.png\" alt=\"公開信息查閱中心\" /><br/>");
builder.AppendLine("<a href=\"\" title=\"新聞動態(tài)\">新聞動態(tài)</a>|<a href=\"Department.aspx\" title=\"部門機(jī)構(gòu)\">部門機(jī)構(gòu)</a><br/>");
builder.AppendLine("<a href=\"\" title=\"檔案文件\">檔案文件</a>|<a href=\"\" title=\"最新文件\">最新文件</a><br/>");
builder.AppendLine("");
builder.AppendLine(" </p></card>");
builder.AppendLine("</wml>");
Response.Write(builder.ToString());
Response.End();
}

相關(guān)文章

最新評論