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的跳转,请问是为什么,或者怎么才能实现上述跳转,谢谢!