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

What are the different types of sessions in asp.net?

910


How many types of state management are there in asp net?

993


What is x xss protection?

939


Explain http handlers? Where we can use the http handlers?

1186


What are the Difference between asp.net and asp ?

1074


What is the default Orientation property in a Menu control?

1000


What permissions do asp.net applications posses by default?

1035


How can I open ashx file in mobile?

1103


How do I use response redirect?

944


What are the two Layouts supported by a Web form in ASP.NET?

1025


How dataadapter.fill works?

991


How to create events for a control?

974


What is the difference between application state and caching?

1024


Can you explain page lifecycle in net?

930


What is the difference between abstract class vs interface? Can give me the real time examples?

911