Forum guidelines
AuthorQuestion
HttpContext.Current.Response.Redirect(); & Response.Redirec
Posted By Newbie NET on 16 Nov 2013

Whats the Difference between HttpContext.Current.Response.Redirect(); and Response.Redirect(); in terms of performance ?Whats the Difference between HttpContext.Current.Response.Redirect(); and Response.Redirect(); in terms of performance ?


AuthorReply
Re: HttpContext.Current.Response.Redirect(); & Response.Redirec
Posted By Jaganathan Bantheswaran on 17 Nov 2013   Accepted Answer
Hi,

Both the HttpContext.Current.Response.Redirect() and Response.Redirect() are same except the place where you are using it.

Response.Redirect() - can be used only on the Page/UserControls code-behind.

HttpContext.Current.Response.Redirect() - can be used anywhere.

There is no difference on performance.

Mark as "This is correct Answer", if it helps you.
Aspose File APIs

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.