1. 首页
  2. 数据库
  3. 其它
  4. Request.RawUrl 属性的应用收

Request.RawUrl 属性的应用收

上传者: 2021-01-03 15:50:08上传 PDF文件 19.46KB 热度 12次
原始 URL 定义为 URL 中域信息之后的部分。在 URL 字符串 http://www.contoso.com/articles/recent.aspx 中,原始 URL 为 /articles/recent.aspx。原始 URL 包括查询字符串(如果存在)。 代码如下:if (Request.RawUrl.ToLowerInvariant().Contains(“/category/”)) { DisplayCategories(); } 用来对字符串分析,有选择的导向。
下载地址
用户评论