Answer Posted / 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 |
Post New Answer View All Answers
Explain the difference between value type and reference type?
How you can manage the state of application at the server side in ASP.NET?
How to comment out asp.net tags?
What is the difference between stored procedure vs function?
What is work flow gen? how can it will work with .Net?
What are the major built-in objects in ASP.NET?
Do you know using sql cache invalidation?
Explain different authentication modes in asp.net?
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
What is the difference between Classic ASP and ASP.Net?
Explain how dot net compiled code will become platform independent?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
What are the server controls in asp.net?
What types of data validation events are commonly seen in the client-side form validation?
What is asp net theme?