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

What are the differnt types of handler in ASP.NET?

0 Answers   Sans Pareil IT Services,


To which class you load XML or Related Data

1 Answers  


Difference between web user control and web custom control?

0 Answers  


What is CLR ? Differentiate between CLR & CTS.

7 Answers   3i Infotech, TCS,


What is the difference between union and structure?

0 Answers  


How many web.config files in each solution

10 Answers   General Mills,


Explain what are delegates?

0 Answers  


Code for updating the database by entering the data into textboxes in aspx form?

2 Answers   TCS, Wipro,


what is the requirement that .Net web services can access the java application?

6 Answers   iSoft,


What is the use of session?

0 Answers  


What is the Impprsonation?and what is the importence of that?

3 Answers   eXensys,


What is state management techniques in asp.net?

0 Answers  


Categories