How to authenticate users using web.config ?
Answer Posted / 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 View All Answers
Define repository pattern in asp.net mvc? : asp.net mvc
How can I have a particular web page in an asp.net application which displays its own error page?
What are user controls?
Why we use content place holder in asp.net?
How can you register a custom server control to a web page?
What are resource file and how do we generate resource file?
To bind columns manually which tags do you need to add within the asp:datagrid ?
Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?
What are server objects?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?
What language does asp.net use?
Are there resources online with tips on asp to asp.net conversions?
Why do you use the app_code folder in asp.net?
What is the difference between mvc and asp.net? : Asp.Net MVC
How to create multi language website in asp.net mvc? : Asp.Net MVC