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.
为什么 ScriptManager 总是在 javascript 中插入 __doPostback 方法,即使在没有控件可以导致回发的空页面上也是如此?
谢谢
这是因为默认情况下 ScriptManager 假定部分呈现。您可以像这样禁用它:
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="false" />