ListBox.IPostBackDataHandler.LoadPostData Method (String, NameValueCollection)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Loads the posted content of the list control, if it is different from the last posting.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

bool IPostBackDataHandler.LoadPostData(
	string postDataKey,
	NameValueCollection postCollection


Type: System.String

The index within the posted collection that references the content to load.

Type: System.Collections.Specialized.NameValueCollection

The collection posted to the server.

Return Value

Type: System.Boolean

true if the posted content is different from the last posting; otherwise, false.

Typically, you should use the ListBox.LoadPostData method to process posted data for changes to a ListBox object.

The IPostBackDataHandler.LoadPostData method is an explicit interface member implementation. It can be used only when the ListBox instance is cast to an IPostBackDataHandler interface.

Notes to Implementers:

To define a custom implementation for processing posted data for a ListBox object, override the ListBox.LoadPostData member. The explicit interface implementation calls the ListBox.LoadPostData method to process the posted data for the control.

.NET Framework
Available since 1.1
Return to top