Gaurav_0093 Gaurav_0093 -4 years ago 134
ASP.NET (C#) Question

What is the difference between Responce.Redirect and Response.RedirectLocation?

If I redirect a page using

Response.RedirectLocation ="login.aspx"
then how it is different form

Answer Source

RedirectLocation sets the Location HTTP header. Redirect does so much more and completes the response with a 3xx status code.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download