How to do Forms authentication in asp.net?
Answers were Sorted based on User's Feedback
Answer / sivasaravanan
in webconfig file
<authentication mode="Forms">
<forms cookieless="UseCookies"
loginUrl="~/LoginInformation.aspx" timeout="10">
<credentials passwordFormat="Clear">
<user name="Siva" password="siva"/>
<user name="joseph" password="jos"/>
</credentials>
</forms>
</authentication>
After In a aspx.cs page you have write a below coding
if (FormsAuthentication.Authenticate(TextBox1.Text,
TextBox2.Text))
{
Response.Write("Hi Joseph");
}
else
{
Response.Write("Please Create account");
}
| Is This Answer Correct ? | 6 Yes | 0 No |
I have tested the above one . Its working fine.
| Is This Answer Correct ? | 3 Yes | 0 No |
What are the differnt types of handler in ASP.NET?
0 Answers Sans Pareil IT Services,
To which class you load XML or Related Data
Difference between web user control and web custom control?
What is CLR ? Differentiate between CLR & CTS.
What is the difference between union and structure?
How many web.config files in each solution
Explain what are delegates?
Code for updating the database by entering the data into textboxes in aspx form?
what is the requirement that .Net web services can access the java application?
What is the use of session?
What is the Impprsonation?and what is the importence of that?
What is state management techniques in asp.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)