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
In which event of page cycle is the viewstate available?
Explain about secure socket layer?
Explain how cookies work. Give an example of cookie abuse.
How could you modify xaml content from javascript?
What is sql data source control in asp.net?
What is the use of web.config and machine.config files?
What does asp in asp.net stand for?
Define viewstate in .net?
What is difference between session and application in asp net?
Explain serialization and deserialization?
I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)
Can master pages be nested?
What are the two properties that are common on every validation control?
What is %20 in a url?
What is Model-View-View Model?