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
Explain how cookies work.
In asp.net, how can you validate drop down box?
What are the various ways to send content from one page to another?
In how many ways we can retrieve table records count?
Can you dynamically assign a Master Page?
How do active server pages work?
What is the difference between user control and custom control?
What is the use of web.config file?
Where do the cookie state and session state information be stored?
What are the new login controls in asp.net 2.0?
Give a few examples of page life cycle events.
What is a web pool?
Can we have 2 web config files?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
How do I upload a file from my ASP.NET page?