melon_juice 2015-01-13 13:34 采纳率: 0%
浏览 1505

asp.net中urlmapping问题

web.config设置如下

 <configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
        <urlMappings enabled="true">
          <add url ="~/Default.aspx" mappedUrl="~/WebForm2.aspx" />
        </urlMappings>
    </system.web>
    <system.webServer>
      <modules runAllManagedModulesForAllRequests="true"/>
    </system.webServer>
</configuration>

但未能实现想象中的,从default.aspx到webform2.aspx的跳转,请问是为什么,或者怎么才能实现上述跳转,谢谢!

  • 写回答

2条回答 默认 最新

  • Jessica__M 2015-01-13 14:17
    关注

    是不是路径问题,路径写全试一下

    评论

报告相同问题?