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 is the difference between file-based dependency and key-based dependency?
How to set/get parent page values in child page in asp.net
when we write the html code with runat = server it works like a server control than why we use the server control?
What is the postback property in asp.net?
What parameters can you pass in the url of the api?
How do you sign out from forms authentication?
What are the main components of the ADO object model? How are they used?
2 Answers HCL, Syntax Softtech,
What is the use of web.config file?
How many types of page.
5 Answers TCS, Verinon Technology Solutions,
Which property is used to identify the Page is Post Back in ASP.NET?
0 Answers Sans Pareil IT Services,
About CLR, reflection and assemblies?
What is difference between web config and global asax?
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)