NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HtmlSelect Control

The HtmlSelect control allows developers to program against the HTML <select> element. Developers must use this control to access HTML <option> elements that they want to program against.

ASP+ Syntax

Required properties are noted in boldface type.

<select
   runat=server
   id="programmaticID"
   OnServerChange="onserverchangehandler"
   DataSource="databindingsource"
   DataTextField="fieldtodatabindoptionttext"
   DataValueField="fieldtodatabindoptionvalue"
   Multiple
   Items="collectionofoptionelements"
   SelectedIndex="indexofcurrentlyselecteditem"
   Size="#ofvisibleitems"
   Value="currentitemvalue"
>
<option>value1</option>
<option>value2</option>
</select>

Tasks

See Also

Web Forms Controls by Function | HtmlSelect Class | HtmlForm Control | System.Web.UI.HtmlControls Namespace