Forum guidelines
AuthorQuestion
HttpContext.Current.Response.Redirect(); & Response.Redirec
Posted 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 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.

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.