Hi there,
I am very new to ASP.net. I have just started making a website in ASP.net 2.0.
In this website, i want to have a admin section which can be accessed only after the admin logs in with a login page.
Now I am using custom asp.net script then the Login control for the login page and the username and password are stored in a MS Access database.
I have already made the login page and checking the username and password. Now how can i make other admin pages show only if the admin has logged in. If the admin has not logged and tries to access the admin pages directly, he should be redirected to Login page.
How can this be done, can anyone help me with this.

Recommended Answers

All 2 Replies

I have got the solution. Thanks for the reply, but i used sessions to store values and and retrive it on everypage where i need to check the login status.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.