开发者

How to set Default document in ASP.Net

How can i set different default document for each folder in my asp.net project. I have set a default document from IIS, but that doesn't show up for every folder browsed. I have already added HTMLs to the collection but they are not showing up, instead stander ed Forbidden开发者_JAVA百科 error page shows up.


Yeah you can do this by setting all the different pages in the default document collection and then creating those pages in the folder you want to have redirect. the IIS will automatically select the nearest available page for showing.

Good Luck..


You can add default.aspx to each folder and then when Page_Load occurs call Response.Redirect("URL_TO_YOUR_PAGE") to document you want to be default.

Hope it will help you.

Best regards, Dima.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜