03 2014 档案
摘要:C# 跳转新页面判断URL文件是不是在于在。C# 指定物理目录下载文件,Response.End导致“正在中止线程”异常的问题public class FileHandler { public static bool DownLoadFile(string path, string fileName) { bool result = false; if (!string.IsNullOrEmpty(path)) { if (path.StartsWith("http...
阅读全文
摘要:判断URL文件是不是在于在。private static bool UrlIsExist(string url){ System.Uri u = null; try { u = new Uri(url); } catch { return false; } bool isExist = false; System.Net.HttpWebRequest r = System.Net.HttpWebRequest.Create(u) as System.Net.HttpWebRequest; r.Method = "HEAD"; ...
阅读全文
摘要:C# 跳转新页面string url = "http://www.vipsoft.com.cn";ResponseRedirect.Redirect(Response, url, "_blank", "'toolbar=0,scrollbars=1,status=0,menubar=0,resizable=1,top=0,left=0,height=800,width=1000");}调用下面代码public class ResponseRedirect { public static void Redirect(HttpRe
阅读全文
浙公网安备 33010602011771号