gpt4 book ai didi

asp.net - 重定向 Ascx 页面

转载 作者:行者123 更新时间:2023-12-01 22:38:38 25 4
gpt4 key购买 nike

是否可以使用

重定向 ascx 页面
Response.Redirect();

我的代码是

HttpContext.Current.Response.Redirect("~/postauthenticated/employeereprintw2requestconfirmtest.ascx");

你有什么想法吗?

最佳答案

不,那是不可能的。 ASCX 控件不能单独存在。它应始终托管在 WebForm (ASPX) 中。而且您只能重定向到 WebForms 或通用处理程序。实际上仅适用于作为 Web 请求的基本入口点的通用处理程序。 WebForms 只是一个自定义的通用处理程序。

关于asp.net - 重定向 Ascx 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19011190/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com