开发者

asp.net forms ScriptManager __doPostback

开发者 https://www.devze.com 2022-12-11 03:04 出处:网络
开发者_Python百科Why does the ScriptManager ALWAYS insert the __doPostback method in javascript, even on an empty page where no controls can cause a postback?

开发者_Python百科Why does the ScriptManager ALWAYS insert the __doPostback method in javascript, even on an empty page where no controls can cause a postback?

Thank you


It is because by default ScriptManager assumes partial rendering. You can disable it like this:

<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="false" />
0

精彩评论

暂无评论...
验证码 换一张
取 消