首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

如何实现跳转

2011-12-20 
怎么实现跳转在浏览某一个网站的页面时候,如果没有找到该页面,怎么跳转到主页面?[解决办法]//webconfig中

怎么实现跳转
在浏览某一个网站的页面时候,如果没有找到该页面,怎么跳转到主页面?

[解决办法]
//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>

能看懂吧

==================================
小小姑娘
清早起床
提着裤子上茅房
茅房有人,不能再等
只好拉在裤子上..................
==================================

热点排行