Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How to authenticate users using web.config ?



How to authenticate users using web.config ?..

Answer / alb.shah

if we are using form based authentication at that time in
the web.config
we can set the autentication mode to "form"

then we can specify the user name and password which we are
going to access.
if any one can access that application then you can specify
<allow users="*">
inside the authentication tags

<authentication mode="Forms">
<forms name="appNameAuth" path="/"
loginUrl="login.aspx" protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="jeff" password="test" />
<user name="mike" password="test" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

1. Briefly describe your ideal job?

1 Answers   Swatz Oils, Swetz Oil,


Is it possible to use two versions of assembly at the same time?If possible explain with code?

3 Answers   Tech Mahindra,


Why web api is better than wcf?

0 Answers  


What symbol specifies the beginning of a query string?

0 Answers  


How many types is controls is there in Asp.Net?If it means what are types of custom controls?Explain about user controls,Web server controls,Hrml server controls?

1 Answers   Cap Gemini, TCS,






What is the difference between session and viewstate in asp.net?

0 Answers  


What is a postback url?

0 Answers  


What is the typical session identifier?

0 Answers  


What is hidden field in asp.net?

0 Answers  


What is an imagemap in asp.net?

0 Answers  


List all templates of the repeater control.

0 Answers  


How does viewstate work?

0 Answers  






Categories