摘要: 在C# Web程序中,如为页面按钮写返回上一页代码 this.RegisterClientScriptBlock("E", ""); 其中,history.go(-2),要写为-2,因在按钮事件触发前,已刷新一次页面,所以应是-2。 Response.Write(""); 此处也要写为“-2”。跟直接写脚本的有所不同。 阅读全文
posted @ 2007-11-13 14:12 新房客 阅读(1152) 评论(1) 推荐(0) 编辑
摘要: 方案1: /// /// 传入URL返回网页的html代码 /// /// URL /// public static string getUrltoHtml(string Url) { errorMsg = ""; try { System.Net.WebRequest wReq = System.Net.WebRequest.Create(Url); // Get the resp... 阅读全文
posted @ 2007-11-13 14:12 新房客 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 需要配置一下服务器的HTTP头里的映射 打开IIS,然后在默认网站的属性--HTTP头--MMIE映射--文件类型--添加注册文件的类型: Associated Extension MIME Type wml text/vnd.wap.wml wmlc application/vnd.wap.wmlc wbmp image/vnd.wap.wbmp wmlsc applicati... 阅读全文
posted @ 2007-11-13 14:05 新房客 阅读(283) 评论(0) 推荐(0) 编辑