ScriptManager.RegisterDataItem Method (Control, String)
Sends custom data to a control during partial-page rendering.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Use the UpdatePanel control.method to send data from the server to the client during asynchronous postbacks, regardless of whether the control receiving the data is inside an
The data items that are registered with themethod can be accessed in client script during the , , and events of the object. When you handle these events, the custom data is passed in an event argument object. For example, if you provide a handler for the event, the custom data is passed in the class, which exposes a property.
The data that is sent in this example is for illustration only. In a real-world application, you would use themethod to send custom data from the server.
Available since 3.5