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
What are the different types of sessions in asp.net?
How many types of state management are there in asp net?
What is x xss protection?
Explain http handlers? Where we can use the http handlers?
What are the Difference between asp.net and asp ?
What is the default Orientation property in a Menu control?
What permissions do asp.net applications posses by default?
How can I open ashx file in mobile?
How do I use response redirect?
What are the two Layouts supported by a Web form in ASP.NET?
How dataadapter.fill works?
How to create events for a control?
What is the difference between application state and caching?
Can you explain page lifecycle in net?
What is the difference between abstract class vs interface? Can give me the real time examples?