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
How do I send an email message from my ASP.NET page?
Define common type system?
What are the different properties of server control that exists?
Where you store Connection string in "Web.Config" file in ASP.NET?
WSDL means?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net
What is inproc mode in session?
What is meant by server side scripting?
Explain different types of validators in asp.net?
What is http post action?
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?
What is bson in web api?
Explain the difference between asp & asp.net.
What is viewstate in asp net with example?