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 would be salary for 6+ years of experience in ASP.NET in different metro city in india?
What is http pipeline in asp.net?
Apart from IDE what are the enhancements in asp.net 2.0?
What are the various session state management options provided by asp.net?
What kind of data can be stored in viewstate?
How does output caching work in ASP.NET?
how to update data using store procedure
What is session tracking & methods?
what is wpf and wcf in .net explain with an example?
Explain the difference between Web Garden and Web Farm?
0 Answers Sans Pareil IT Services,
If I update session state, should I lock it, too? Are concurrent accesses by multiple requests executing on multiple threads a concern with session state?
How many types of validation controls are provided by ASP.NET?