Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have my company website. If any user surf it from my company premises, then it should get open and user will able to browse pages. However if any user will access it from outside premises, it should prompt user to enter userid and password. How can I achieve this? I am developing website in ASP.Net C#
Posted

Looks like Windows Authentication is what you are looking for - http://msdn.microsoft.com/en-us/library/ff647405.aspx[^].
 
Share this answer
 
Yes, as Abhinav S said you have to go for Windows Authentication. If your scenarios are more complex you can also try to use Forms Authentication with Active Directory as below.

http://msdn.microsoft.com/en-us/library/ff650307.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900