Configures the System.Web.UI.WebControls.ListBox control prior to rendering on the client.
- e
- An EventArgs object that contains the event data.
The ListBox.OnPreRender(EventArgs) method is used primarily by control developers, when deriving a custom control from the System.Web.UI.WebControls.ListBox class. The ListBox.OnPreRender(EventArgs) method allows derived classes to handle the System.Web.UI.Control.PreRender event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
The ListBox.OnPreRender(EventArgs) method performs any necessary prerendering steps prior to saving view state and rendering content for the System.Web.UI.WebControls.ListBox.