Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Setup your UpdatePanel like this:</p> <pre><code> &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="True" UpdateMode="Always"&gt; &lt;ContentTemplate&gt; ... &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p><strong>NOTE:</strong> GridView and DetailsView controls are not compatible with the UpdatePanel when their EnableSortingAndPagingCallbacks property is set to true. The default is false.</p> <p><a href="http://www.asp.net/Ajax/Documentation/Live/overview/UpdatePanelOverview.aspx" rel="nofollow noreferrer">Using UpdatePanel Controls in Master Pages</a> </p> <p><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel.updatemode.aspx" rel="nofollow noreferrer">UpdateMode Property</a> :</p> <p>The content of an UpdatePanel control is updated in the following circumstances:</p> <ul> <li>If the UpdateMode property is set to Always, the UpdatePanel control's content is updated on every postback that originates from anywhere on the page. This includes asynchronous postbacks from controls that are inside other UpdatePanel controls and postbacks from controls that are not inside UpdatePanel controls.</li> <li>If the UpdatePanel control is nested inside another UpdatePanel control and the parent update panel is updated.</li> <li>If the UpdateMode property is set to Conditional, and one of the following conditions occurs: <ul> <li>You call the Update method of the UpdatePanel control explicitly.</li> <li>The postback is caused by a control that is defined as a trigger by using the Triggers property of the UpdatePanel control. In this scenario, the control explicitly triggers an update of the panel content. The control can be either inside or outside the UpdatePanel control that defines the trigger.</li> <li>The ChildrenAsTriggers property is set to true and a child control of the UpdatePanel control causes a postback. A child control of a nested UpdatePanel control does not cause an update to the outer UpdatePanel control unless it is explicitly defined as a trigger.</li> </ul></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload