Monday, March 26, 2012

web.config question

Hi,
Been a long time since I've worked with ASP.NET and trying somethingoff the bat I haven't before. Basically I have a site, the mainsite (/) doesn't use any authentication however a sub folder (/ysi/)I'm going to build some pages that will use Forms authenticationmethod, requiring that any user be logged in. The login page is/ysi/login.aspx. There may be other folders that will useauthentication in the future with different login pages. So notreally certain how to handle this, can somebody come up with an exampleweb.config file?
Right now I'm stuck with mine in that it won't even recognize thecustomErrors mode="Off" tag in the web.config to show me what's goingon :(

You can place another web.config in the subfolder that overrides or sets several things that you want that way. Another thing is to use the web.config in the root folder and in there use the<location> element.

Grz, Kris.

0 comments:

Post a Comment