Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
we have windows authentication based application where we have to identify user with his domain and if he is valid he directly should get logged in to the application but if authentication fails then he should get redirected to login page.

where he has to enter id and password to access the application but when authentication fails at that time it is giving windows prompt to enter windows id and password rather then redirecting to login page
Posted
Comments
Arkadeep De 19-Nov-14 4:34am    
use cookies for the first time...and check those cookies for later session and if not getting valid then go for log in

1 solution

You need to use the Location tag in web.config to allow all users access to LoginPage.aspx. An example is in the MSDN documentation:

http://msdn.microsoft.com/en-us/library/b6x6shw7(v=vs.85).aspx[^]

This way, when someone tries to get to LoginPage.aspx (or whatever yours is called) .Net will not try to authenticate them but will allow everyone access to just that one page.
 
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