views:

248

answers:

1

Hi,

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

A: 

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

<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="false" />
Darin Dimitrov
Thanks! I will disable partial rendering on pages not using an updatepanel.
pete