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 is the displayafter property in updateprogress control?
Explain the advantages of caching?
Why viewstate is used in asp.net?
What is Web API Routing?
How many validators do ASP.NET have?
How can I create master page in asp net?
What are session cookies?
Why do we use web config?
How to deploy/publish webservices?How many ways?Plz explain me
what are the ihttphandler and ihttphandlerfactory interfaces ?
Explain managed code an un-managed code.
Explain code snippet to register exception filters from controller?
Can we add code files of different languages in app_code folder?
What is the difference between page-level caching and fragment caching?
How does ASP.NET framework maps client side events to Server side events.?