摘要:
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... 阅读全文
posted @ 2014-03-27 10:35
VipSoft
阅读(1707)
评论(0)
推荐(0)
摘要:
判断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"; ... 阅读全文
posted @ 2014-03-27 10:31
VipSoft
阅读(375)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2014-03-27 10:25
VipSoft
阅读(8188)
评论(0)
推荐(0)
浙公网安备 33010602011771号