zoukankan      html  css  js  c++  java
  • asp.net 直接Response输出WML页面

        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=\"新闻动态\">新闻动态</a>|<a href=\"Department.aspx\" title=\"部门机构\">部门机构</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();
        }

  • 相关阅读:
    python+opencv实现图像自适应阈值的均衡化
    ubuntu添加新的分辨率选项(干货)
    python+opencv检测图像清晰度
    python根据列表创建文件夹,拷贝指定文件
    牛客多校Round 4
    牛客多校Round 3
    HDU多校Round 2
    HDU多校Round 1
    牛客多校Round 2
    牛客多校Round 1
  • 原文地址:https://www.cnblogs.com/smartsmile/p/6234289.html
Copyright © 2011-2022 走看看