How to authenticate users using web.config ?
Answer / 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 |
What are the page level transaction and class level transaction?
Describe the method to create a permanent cookie?
What does occur first in ASP.Net, Authentication or Authorization?
To display data in a Repeater control which templete is provided ?
diffrance between stored procedure & function in sql server?
What type of code, client-side or server-side, is found in a code-behind file of a Web page?
For a server control, you need to have same properties like color maxlength, size, and allowed character throughout the application. How do you handle this?
Why mvc is faster than asp.net? : Asp.Net MVC
How you will handle session when deploying application in more than a server?
Why the javascript validation not run on the asp.net button but run successfully on the html button?
what do machine key element in configuration file specify?
what are the main advantage in .net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)