<asp:DropDownList ID="ddlDState" runat="server" Width="100%" AutoPostBack="true"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="ddlDState" InitialValue="0" ValidationGroup="Required" ErrorMessage="*" ForeColor="Red"/>
Dim ds As New DataSet ds = dbnet.FillStates() ddlDState.DataSource = ds ddlDState.DataValueField = "STATE" ddlDState.DataBind() ddlDState.Items.Insert(0, New ListItem("--Select--", "0"))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)