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
Difference between response.redirect and server.transfer?
Explain diff. Between friend and protected friend?
What is a uri query?
Can you clarified A Web service can only be written in .NET or not?
What kind of data can be stored in viewstate?
Explain difference betn dataset and recordset?
What are the events in a page life cycle?
What is the file extension of web service?
What is route in web api?
What is the maximum number of classes that can be contained in one dll file?
What is rending process in ASP.NET?
How can I configure asp.net applications that are running on a remote machine?
What is inproc and outproc?
How to add DateTime Control in normal DataGrid Server Control?
How can we register exception filter from the action?