Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET - How to use Response.Redirect() from within User Control? (.ascx)

Tags:

.net

asp.net

I'm converting some ASPX pages to user controls (ASCX).

I still need some of the page redirection to work.. and server.transfer is not an option (I need the URL in the address bar to change).

Is there a way to either user Response.Redirect() from within a user control or a similar method?

like image 885
Brian Webster Avatar asked Feb 14 '10 21:02

Brian Webster


1 Answers

Use Page.Response.Redirect() inside UserControls.

like image 142
Ilya Volodin Avatar answered Nov 15 '22 10:11

Ilya Volodin