【问题标题】:ASP.NET - How to use Response.Redirect() from within User Control? (.ascx)ASP.NET - 如何在用户控件中使用 Response.Redirect()? (.ascx)
【发布时间】:2010-02-14 21:04:33
【问题描述】:

我正在将一些 ASPX 页面转换为用户控件 (ASCX)。

我仍然需要一些页面重定向才能工作.. server.transfer 不是一个选项(我需要更改地址栏中的 URL)。

有没有办法从用户控件或类似方法中使用用户 Response.Redirect()?

【问题讨论】:

    标签: .net asp.net


    【解决方案1】:

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

    【讨论】:

    • “页面。”是我需要的。谢谢。
    猜你喜欢
    • 2012-08-30
    • 2013-11-01
    • 2011-12-17
    • 1970-01-01
    • 2010-09-21
    • 1970-01-01
    • 2010-11-20
    • 2016-10-11
    • 1970-01-01
    相关资源
    最近更新 更多