源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Request.RawUrl 属性的应用收

  • 时间:2022-12-28 10:39 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Request.RawUrl 属性的应用收
原始 URL 定义为 URL 中域信息之后的部分。在 URL 字符串 http://www.contoso.com/articles/recent.aspx 中,原始 URL 为 /articles/recent.aspx。原始 URL 包括查询字符串(如果存在)。
[u]复制代码[/u] 代码如下:
if (Request.RawUrl.ToLowerInvariant().Contains("/category/")) { DisplayCategories(); }
用来对字符串分析,有选择的导向。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部