HtmlSelect::OnPreRender Method (EventArgs^)
.NET Framework (current version)
Raises the PreRender event for the HtmlSelect control.
Assembly: System.Web (in System.Web.dll)
If the Size property is greater than 1, then the OnPreRender method registers the HtmlSelect control with the Page control as one that requires postback processing.
The following code example demonstrates how to override the OnPreRender method so that it allows multiple selections in a custom HtmlSelect server control.
.NET Framework
Available since 1.1
Available since 1.1
Show: