简体   繁体   中英

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?

在UserControls中使用Page.Response.Redirect()。

您可以继续在UserControls中使用Response.Redirect()。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM