Represents the possible update modes for the content in an UpdatePanel control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The UpdatePanel control. The UpdateMode property must be set to one of the values of the enumeration. The UpdatePanel control requires that the EnablePartialRendering property of the ScriptManager control be true for partial-page rendering to occur.enumeration defines the possible update modes for the content of an
The default value of the UpdateMode property is .
The following example declares two UpdatePanel controls. The first panel sets the UpdateMode property of an UpdatePanel control to . The second panel has UpdateMode set to by default. A button outside both panels is registered as an asynchronous postback control by using the RegisterAsyncPostBackControl method of the ScriptManager control. In the button's click event handler, the Update method of the first panel is called if more than five seconds have elapsed since its last update. In this scenario, the panel's content is updated only if the last panel update was more than five seconds ago. The second panel's content is always updated.
Available since 3.5