Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Ajax 更新面板,现在我正在尝试使用 server.transfer 从一个 aspx 页面转移到另一个 apsx 页面,但它给出了错误。
我努力了
Server.Transfer("User.aspx");
如果您没有,请将其添加到您的更新面板。
<Triggers> <asp:PostBackTrigger ControlID="btnYourButtonId"/> </Triggers>
请记住保留它 asp:PostBackTrigger 而不是 asp:AsyncPostBackTrigger。后者不适用于 server.transfer。