How to authenticate users using web.config ?
Answer Posted / deepa
Forms authentication can be done at web.config
<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 ? | 29 Yes | 5 No |
Post New Answer View All Answers
How would you implement inheritance using c#?
What are main return types supported in Web API?
Explain Optimization technique description?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
Can you explain the basic use of dataview?
List of words of preprocessor in .net?
What is session mode in asp.net?
What is a server farm in iis?
Can I have a unique key as foreign key?
Is asp.net mvc front end or backend? : Asp.Net MVC
What should you do is you want to remove an existing component but would like to make some funtionalities?
What is tracing? Where is it used?
What is the Difference between MVC And MVP design pattrens
They mostly asked difference between versions of technologies
How to you can limit Access to Web API to Specific HTTP Verb?