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 authentication types in asp.net?

1048


Explain the concept of event bubbling in ASP.NET?

1099


How do you use viewstate?

996


Explain the difference between response.redirect vs server.transfer

1133


What is difference between View State and Hidden Field in ASP.NET?

1140


What are themes and skins in 2.0, explain usage scenario?

937


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

973


How do you do client-side validation in .net? How to disable validator control by client side javascript?

1016


Why do we need asp.net?

1007


What is asp.net introduction?

1008


What is a uri query?

993


How can we Validate a Controls in ASP.NET page using JavaScript?

1182


Explain the difference between asp and asp.net?

1003


What is session management in web application?

1017


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

1828