摘要:
本页地址: Request.URL; 上页地址: Request.UrlReferrer Request.ServerViables["http_referer"] Request.RawUrl Request.RawUrl.QueryAndPath System.IO.Path.GetFileName(Request.FilePath.ToString()) 在ASP.NET编程中经常需要用Request获取url的有关信息,Request中有多种方法获取 url信息 Request.ApplicationPath: /testweb Request.C 阅读全文
摘要:
ASP.NET2.0提供如下缓存方式: Output Caching Fragment Caching Data Cache SQL Cache Cache Configuration1. Output Caching: 当一个网页被频繁访问时,我们可以把把整个网页缓存起来提高效率,当用户在此访问时,被格式化好的HTML被直接送到客户端。 <%@ OutputCache Duration="120" VaryByParam="none" %>2. 参数缓存: 根据用户的请求来生成页面,用户的请求只有有限的几种组合,我们根据参数 阅读全文