Question : How to restrict access in asp.net so that window prompt comes up

I want simple htaccess like user name password prompt.  I'm on shared hosting. So don't have window access.

It's just to restrict access to staging site, so i dont really want to touch the main code of the website. Just add a username and password to the web.config.

Answer : How to restrict access in asp.net so that window prompt comes up

In your web.config change the authentication mode to

Or, just remove anonymous access in IIS and then you can control it using windows users and standard file permissions.
Random Solutions  
 
programming4us programming4us