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?

Answers were Sorted based on User's Feedback



How to do Forms authentication in asp.net?..

Answer / 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

How to do Forms authentication in asp.net?..

Answer / tiger skumar

I have tested the above one . Its working fine.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Can we override the enablepartialrendering property of the scriptmanager class?

0 Answers  


What is the difference between Server.Transfer and Response.Redirect?

5 Answers  


What is the main function of url routing system in asp.net mvc? : asp.net mvc

0 Answers  


How to Insert/Add in ASPXgridview

0 Answers   Infosys,


How to use multiple scriptmanager controls in a web page?

0 Answers  


What is reflection and disadvantages of reflection?

6 Answers   Microsoft,


Breifly explain about stack and heap memory Managemet?

2 Answers  


Can session variables be accessed from code-behind?

2 Answers   Microsoft, RMS,


What is session id in web application?

0 Answers  


How long should a session id be?

0 Answers  


Explain how can we inherit a static variable?

0 Answers  


What is asp.net web application?

0 Answers  


Categories