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的跳转,请问是为什么,或者怎么才能实现上述跳转,谢谢!
是不是路径问题,路径写全试一下
http://blog.csdn.net/cui55/article/details/1763846
http://msdn.microsoft.com/zh-CN/library/ms228302(VS.80).aspx