[此文来源于互联网,牛C网只负责收集整理]
public static void Redirect(string url,string urlText,string desc,System.Web.UI.Page p)
{
try
{
string wml="<?xml version='1.0'?>"
"<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'>"
"<wml>"
"<head>"
"<meta http-equiv='Cache-Control' content='max-age=0' forua='true'/>"
"</head>"
"<card id ='main' title='" System.Configuration.ConfigurationSettings.AppSettings["SSP.Title"].ToString() "' ontimer='" url "'>"
"<timer value='" System.Configuration.ConfigurationSettings.AppSettings["SSP.AutoPageDelay"].ToString() "'/>"
"<p>" desc
"<a href='" url "'>" urlText "</a>"
"</p>"
"</card></wml>";
p.Response.Clear();
p.Response.ContentType="text/vnd.wap.wml;charset=UTF-8";
p.Response.Write(wml);
p.Response.End();
}
catch{}
}
public static void Redirect(string url,string urlText,string desc,System.Web.UI.Page p)
{
try
{
string wml="<?xml version='1.0'?>"
"<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'>"
"<wml>"
"<head>"
"<meta http-equiv='Cache-Control' content='max-age=0' forua='true'/>"
"</head>"
"<card id ='main' title='" System.Configuration.ConfigurationSettings.AppSettings["SSP.Title"].ToString() "' ontimer='" url "'>"
"<timer value='" System.Configuration.ConfigurationSettings.AppSettings["SSP.AutoPageDelay"].ToString() "'/>"
"<p>" desc
"<a href='" url "'>" urlText "</a>"
"</p>"
"</card></wml>";
p.Response.Clear();
p.Response.ContentType="text/vnd.wap.wml;charset=UTF-8";
p.Response.Write(wml);
p.Response.End();
}
catch{}
}
作者:gdgzboy@牛C网
地址:http://www.niuc.net/post/3372/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
牛C网推荐您再看看以下日志:
XML入门教程-XML CDATA
XPath 初学者入门教程-XPath 总结
WMLScript脚本程序设计
AJAX编程实践之与服务器通信
将HTML表单数据存储为XML格式
AJAX实例入门
跟我学XML和XSL
不离开页面刷新数据
一个简单的基于XML的模块集成框架
XML入门的常见问题(四)
XML入门教程-XML CDATA
XPath 初学者入门教程-XPath 总结
WMLScript脚本程序设计
AJAX编程实践之与服务器通信
将HTML表单数据存储为XML格式
AJAX实例入门
跟我学XML和XSL
不离开页面刷新数据
一个简单的基于XML的模块集成框架
XML入门的常见问题(四)
用XMLHTTP读取网页源代码
XML-电子商务的春天





