Defines a control inside a UpdatePanel control as a postback control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|FindTargetControl||Searches for the control specified in the ControlID property. (Inherited from UpdatePanelControlTrigger.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|HasTriggered||Returns a value that indicates whether the trigger was activated. (Overrides UpdatePanelTrigger.HasTriggered().)|
|Initialize||Initializes the object. (Overrides UpdatePanelTrigger.Initialize().)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Overrides Object.ToString().)|
Use the control to enable controls inside an UpdatePanel to cause a postback instead of performing an asynchronous postback.
Use the RegisterPostBackControl method of the ScriptManager control to programmatically register a postback control. You can then call the Update method of the UpdatePanel control when the trigger control performs a postback.
Programmatically adding controls is not supported.
If a control is set as both a and AsyncPostBackTrigger control, an exception is thrown.
The following example shows how to declaratively define a control for an UpdatePanel control. In the panel, a FileUpload control enables users to upload a file. Users must first check whether the file to upload exists. The Button control that calls the event handler to check the file name causes an asynchronous postback. However, the Button control that uploads the file is registered as a , because files cannot be uploaded asynchronously.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.