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 what the contents of cookie?
What is the use of ASP.NET routing?
What is asp net objects?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
What are the elements of a website?
Can we override the enablepartialrendering property of the scriptmanager class?
What describes a query?
Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?
What is autopostback in asp net?
Explain the basic functionality of garbage collector?
what cut off mark for po's,what questions they asked for interview?
What is rending process in ASP.NET?
Describe how passport authentication works.
Define dll hell?
What is the purpose of using MVC programming pattern in ASP.NET?