System.Web.UI.WebControls.ListControl.SetPostDataSelection Method

Sets the ListItem.Selected property of a System.Web.UI.WebControls.ListItem control after a page is posted.

Syntax

protected void SetPostDataSelection (int selectedIndex)

Parameters

selectedIndex
The index of the selected item in the ListControl.Items collection.

Remarks

The ListControl.SetPostDataSelection(int) method is a helper method that maintains the selected item in the System.Web.UI.WebControls.ListControl control after a page is posted.

Requirements

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