How to use FormsAuthentication.RedirectFromLoginPage also difference between FormsAuthentication.RedirectFromLoginPage and Response.Redirect in ASP.Net

Last Reply on Feb 07, 2017 02:10 AM By eshwar

Posted on Feb 07, 2017 02:02 AM

what is

FormsAuthentication.RedirectFromLoginPage

how to use and how different to Response.Redirect ?


Posted on Feb 07, 2017 02:10 AM

Hi Amith,

As per my knowledge If you gie FormAuthentication.RedirectFromLoginPage redirects the webpage where you mentioned the page in <authentication> in web.config file.

 

Response.Redirect--> you can specify any valid file path to redirect the page