How to authenticate users using web.config ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / babu reddy
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
Is This Answer Correct ? | 21 Yes | 2 No |
Which two new properties are added in asp.net 4.0 page class?
How to identify host of my system? How to identify servername of my system? How to identify domainname of my system?
What are the advantages of asp.net?
Explain the asp.net session state modes.
Can we use http handlers to upload a file in asp.net?
How to use ipostback?
What is the main difference between grid layout and flow layout?
can I use session variable in App_code Class page??
Explain the difference between server control and html control.
What does the "EnableViewState" property do? Why would I want it on or off?
How to store checkbox value in database in asp.net mvc? : Asp.Net MVC
What are the differences between primary foreign and unique keys?