Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to do Forms authentication in asp.net?

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


Please Help Members By Posting Answers For Below Questions

How do I send an email message from my ASP.NET page?

1005


Define common type system?

1023


What are the different properties of server control that exists?

1215


Where you store Connection string in "Web.Config" file in ASP.NET?

1105


WSDL means?

1191


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

987


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

2090


What is inproc mode in session?

978


What is meant by server side scripting?

1002


Explain different types of validators in asp.net?

1059


What is http post action?

1053


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

1902


What is bson in web api?

1081


Explain the difference between asp & asp.net.

1063


What is viewstate in asp net with example?

1025