摘要:
asp.net在自定义的类中引用Response,Request,Server等对象只需直接写System.Web.HttpContext.Current.Response即可,类似的有 System.Web.HttpContext.Current.Request System.Web.HttpContext.Current.Server System.Web.HttpContext.Current.Session 等 例如: System.Web.HttpContext.Current.Response.Write(); System.Web.HttpContext.Current.Requ 阅读全文
摘要:
string url = Request.FilePath.ToString();string file = url.Substring(url.LastIndexOf("/") + 1); 阅读全文