how not to show the Directory list in the web browser?
-
Hi, I am a starter in asp.net. i've created a project containing a folder called "Login" with some pagesin it. When i run the project and type a page name in the browser address bar it lists all the other pages in it. I want to block it and redirect it towards a single page named Login.aspx in that folder. Plz Help.
-
Hi, I am a starter in asp.net. i've created a project containing a folder called "Login" with some pagesin it. When i run the project and type a page name in the browser address bar it lists all the other pages in it. I want to block it and redirect it towards a single page named Login.aspx in that folder. Plz Help.
-
Hi, I am a starter in asp.net. i've created a project containing a folder called "Login" with some pagesin it. When i run the project and type a page name in the browser address bar it lists all the other pages in it. I want to block it and redirect it towards a single page named Login.aspx in that folder. Plz Help.
If I understood correctly, you want to restrict the user to access any other page until he does not go through the Login process. Right? You can use a session variable(say Session["IsValidatedUser"]) and check its value on each page load, if its not set than redirect to the login.aspx P.S. : A nice way would be to implement a class which can be used to derive all the web pages. :rose:
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Hi, I am a starter in asp.net. i've created a project containing a folder called "Login" with some pagesin it. When i run the project and type a page name in the browser address bar it lists all the other pages in it. I want to block it and redirect it towards a single page named Login.aspx in that folder. Plz Help.
Do you mean that browsing is enabled in IIS - http://blog.crowe.co.nz/archive/2006/03/18/603.aspx[^]? Do you also have default page content enabled/specified - http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/dc6eb1b4-9028-4308-9935-52b64edfad36.mspx?mfr=true[^]? Scott
-
Hi, I am a starter in asp.net. i've created a project containing a folder called "Login" with some pagesin it. When i run the project and type a page name in the browser address bar it lists all the other pages in it. I want to block it and redirect it towards a single page named Login.aspx in that folder. Plz Help.
-
Hi, I am a starter in asp.net. i've created a project containing a folder called "Login" with some pagesin it. When i run the project and type a page name in the browser address bar it lists all the other pages in it. I want to block it and redirect it towards a single page named Login.aspx in that folder. Plz Help.
s baran is correct, go with web.config file
Thanks & Regards, Member 3879881, please don't forget to vote on the post