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 は常に __doPostback メソッドを JavaScript に挿入するのはなぜですか?
ありがとうございました
これは、デフォルトで ScriptManager が部分レンダリングを想定しているためです。次のように無効にできます。
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="false" />