系统运行起来后,选择一个页面,点击属性,地址(URL)那看不出是哪个页面(比如xx.aspx),这个怎么实现的?

解决方案 »

  1.   

    URLRewriter<RewriterRule>
    <LookFor>~/datum-(\w+)-(\w+).shtml</LookFor>
    <SendTo>~/datum.aspx?code=$1&amp;countryid=$2</SendTo>
    </RewriterRule>
      

  2.   

    UrlRewriter
    看一下這篇
    http://www.dotblogs.com.tw/ouch1978/archive/2010/11/24/urlrewriter.net.aspx
      

  3.   

    ASP.NET URL Rewrite. URL重写 
      

  4.   

    <RewriterConfig>
      <Rules>
      <!-- Rules for Blog Content Displayer -->
      <RewriterRule>
      <LookFor>~/detail/(\d+)\.htm</LookFor>
      <SendTo>~/detail.aspx?id=$1</SendTo>
      </RewriterRule>  </Rules>
      </RewriterConfig>
    在你的IIS站点,主目录配置中要加入.htm扩展的