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 the asp.net page life cycle.
How can I create master page in asp net?
Can we use a static function with a non-static variable?
What is simple data binding?
How does http session work?
What is a postback ispostback and autopostback in asp net?
Where can I get information on cookies in asp.net?
what are the security certificates used in webservices?
Difference between singleton and singlecall.
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
Where do the cookie state and session state information be stored?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
To display data in a Repeater control which template you provide?
Write code to send e-mail from an asp.net application?
Explain about consistent programming model in the .NET framework?