So how can i handle it all from root web.config??
I have the code in my first post above.
What changes wud i need?
So how can i handle it all from root web.config??
I have the code in my first post above.
What changes wud i need?
Add something like the following:
You can place as many of these as you want in the root config file. Keep in mind, if you were to use multiple .config files (one for each directory...it wouldn't need to be an exact copy...see here for more information: ASP.NET ConfigurationCode:<location path="DirectoryName"> <system.web> <authorization> <deny users="?"/> </authorization> </system.web> </location>
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
I have that J, do i need to do something with this portion??
Code:<authentication mode="Forms"> <forms name="site" loginUrl="default.aspx" protection="All" path="/" timeout="30"> </forms> </authentication>
That looks right to me, M. Post what you have for the <location> nodes.
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Code:<location path="Admin"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location> <location path="Members"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location> <system.web> <authentication mode="Forms"> <forms name="site" loginUrl="default.aspx" protection="All" path="/" timeout="30"></forms> </authentication> </system.web>
Is there any particular reason why you're creating each of those folders as Virtual Directories?
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
I don't really see how setting each as a separate virtual directory is helping anything. You can handle the security via the web.config.
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Yes, you could also have all the pages in the root...but I prefer to have separate folders. There seems to be confusion on what a Virtual Directory is. You DO NOT need the subdirectories to be setup as Virtual Directories in IIS. Only the root directory of the application. All other directories are just normal folders.
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Bookmarks