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...


why should i use FormsAuthentication.RedirectFromLoginPage
(); Method in Form Authentication?Without using this method
also it's good??

Answers were Sorted based on User's Feedback



why should i use FormsAuthentication.RedirectFromLoginPage (); Method in Form Authentication?Withou..

Answer / uday kumar vuriti

FormsAuthentication.RedirectfromLoginPage() redirect the
user to the requested page without redirecting to default page.

Assume that we have 4 Pages and we are using forms
authentication with Login Page as Login.aspx and default
Redirection after Login Page as Home.aspx

MyApp/Login.aspx
MyApp/Home.aspx
MyApp/Profile.aspx
MyApp/Inbox.aspx

With FormsAuthentication.RedirectfromLoginPage():

If user requested for MyApp/Profile.aspx with out
Authentication Cookie(Login), he will be redirected to Login
Page and then after Login he will be redirected to
MyApp/Profile.aspx.

With out FormsAuthentication.RedirectfromLoginPage():

If we are not using
FormsAuthentication.RedirectfromLoginPage() then If user
requested for MyApp/Profile.aspx with out Logging in, he
will be redirected to Login Page and then after Login he
will be redirected to MyApp/Home.aspx.


the difference here is direct redirection of user to the
requested page.

Is This Answer Correct ?    9 Yes 0 No

why should i use FormsAuthentication.RedirectFromLoginPage (); Method in Form Authentication?Withou..

Answer / irfanpathan

to get the login page directly into our page we use this FormsAuthentication.RedirectfromLoginPage(). with out using this mehod also we can get the login page through WWT through drag and drop

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More ASP.NET Interview Questions

What is an Interface and What is an Abstract Class?

3 Answers  


WHT IS DIFFERENCES BETWEEN HTML CONTROLS AND SERVER CONTROLS.

11 Answers   HCL, Microsoft,


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

0 Answers  


Can we use MSSql as backend in asp.net...if yes then How.?

0 Answers   MCN Solutions,


Explain about the .NET framework?

0 Answers  


how we declare interface

2 Answers  


If we write return statement in finally block will it works fine or throws any error?

1 Answers   Patni,


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

0 Answers  


Which is the parent class of the web server control?

0 Answers  


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

5 Answers   Siebel Systems,


When Garbage Collector will run and how its identifing whether the Object is used or Not.?

2 Answers   Verizon,


Explain Areas in MVC?

0 Answers   B-Ways TecnoSoft,


Categories