怎么实现跳转
在浏览某一个网站的页面时候,如果没有找到该页面,怎么跳转到主页面?
------解决方案--------------------//webconfig中
<authentication mode= "Forms ">
<forms name= "xxx " loginUrl=跳转的页面.aspx " protection= "All " path= "/ "/>
</authentication>
------解决方案--------------------帮人帮到底吧我就:
楼上说的都不对,因该是下面代码
<customErrors mode= "RemoteOnly " defaultRedirect= "GenericErrorPage.htm ">
<error statusCode= "403 " redirect= "NoAccess.htm " />
<error statusCode= "404 " redirect= "FileNotFound.htm " />
</customErrors>
能看懂吧
==================================
小小姑娘
清早起床
提着裤子上茅房
茅房有人,不能再等
只好拉在裤子上..................
==================================