• URLReWrite组件 伪静态

    在web.config添加如下配置节: <httpHandlers> <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" /> </httpHandlers> 然后按照如下格式,在wen.config中写入要重写的url的规则: <RewriterConfig> <Rules> <RewriterRule> <LookFor>~/Products/Default\.aspx</LookFor> <SendTo>~/ListCategories.aspx</SendTo> </RewriterRule> <RewriterRule> <LookFor>~/Products/Beverages_(\d{1,4})\.aspx</LookFor> <SendTo>~/ListProductsByCategory.aspx?CategoryID=$1</SendTo> </RewriterRule> <RewriterRule> </Rules> </RewriterConfig> 上例中得表达式一个是不带参数的重写,一个是带参数的, 带参数的~/Products/Beverages_(\d{1,4})\.aspx中 _(\d{1,4}) 是规则表达式,只要符合这个规则的网页, 会转发到下边的~/ListProductsByCategory.aspx?CategoryID=$1 这个网址其中,$1会接收到 (\d{1,4}) 规则表达式相对应的参数的具体值。从而达到转发的目的。

    0
    36
    24KB
    2010-12-22
    3
  • FCKeditor_2.6.6.zip

    FCKeditor_2.6.6.zipFCKeditor_2.6.6.zipFCKeditor_2.6.6.zipFCKeditor_2.6.6.zipFCKeditor_2.6.6.zipFCKeditor_2.6.6.zipFCKeditor_2.6.6.zip

    0
    27
    1.45MB
    2010-12-22
    0
  • ASP.NET购物车实例.rar

    ASP.NET购物车实例.rar

    0
    99
    171KB
    2010-10-09
    0
关注 私信
上传资源赚积分or赚钱