Is there a way to web protect ASP.NET website so it asks user for username/password to view?
I’ve been told that this should go in web.config file, but not sure of how to do this, or what should go in there. Any help much appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it is an intranet scenario it’s quite simple. Add this in your web.config
Fastest way for internet applications:
You will also need a new page login.aspx with a form where the user can enter his credentials. On the code behind page you then need the following code: