<CC1:ComboBox ID="ComboBox1" runat="server" DropDownStyle="DropDown" AutoCompleteMode="None" CaseSensitive="false" RenderMode="Block" AutoPostBack="false" Font-Names="Comic Sans MS" Font-Size="Large" ForeColor="DeepPink"> </CC1:ComboBox>
ComboBox1.DataSource = dsOfficeLocation.Tables(0) ComboBox1.DataValueField = "Office_Location" ComboBox1.DataTextField = "Office_Location" ComboBox1.DataBind() ComboBox1.Items.Insert(0, "--Select--") ComboBox1.SelectedIndex = 0
Replace RenderMode="Block" with the RenderMode="Inline"
ComboBox1.DataValueField = "Office_Location"; ComboBox1.DataTextField = "Office_Location"; ComboBox1.DataSource = dsOfficeLocation.Tables(0) ComboBox1.DataBind(); ComboBox1.Items.Insert(0, "--Select--");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)