摘要: URL的获取很简单,ASP.NET通用: 【1】获取 完整url (协议名+域名+虚拟目录名+文件名+参数)string url=Request.Url.ToString();【2】获取 虚拟目录名+页面名+参数:string url=Request.RawUrl; (或 string url=Request.Url.PathAndQuery;)【3】获取 虚拟目录名+页面名: string url=HttpContext.Current.Request.Url.AbsolutePath; (或 string url= HttpContext.Current.Request.Path;)【.. 阅读全文
posted @ 2012-06-19 09:29 lixiaojin 阅读(191) 评论(0) 推荐(0) 编辑