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

Do you know about caching with the datasource controls?

0 Answers  


suppose i am Admin in my application and i have to terminate the session of the particular user in my application.........how can i do it....?????

1 Answers   L&T,


difference between writing connection string in web.config through connection string and appsettings

2 Answers   iSoft,


Difference between dynamic query and static query ?

1 Answers   DELL,


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

0 Answers  


how to debug web services on consumer side?

0 Answers   HCL,


What is Runtime callable wrapper?

2 Answers  


How to kill more than one session variables at a time

9 Answers   iSoft,


What are validator? Name the Validation controls in asp.net? How do u disable them?

2 Answers  


What are html helpers in asp.net?

0 Answers  


What is the difference between User Controls and Master Pages

22 Answers   Deloitte, IBM, IntraLogic, Markit, TCS,


What is the difference between application and cache variables?

6 Answers   Astadia,


Categories