Brian Webster
Brian Webster

Reputation: 30855

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

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?

Upvotes: 6

Views: 10457

Answers (1)

Ilya Volodin
Ilya Volodin

Reputation: 11256

Use Page.Response.Redirect() inside UserControls.

Upvotes: 11

Related Questions