Dropdownlist
Datatable
selected Index = -1
ddlcountry.text = dtCountry[0]["Country"].Tostring();
<asp:UpdatePanel ID="UpdatePanel4" runat="server"> <ContentTemplate> <asp:DropDownList ID="ddlCountry" AutoPostBack ="true" AppendDataBoundItems ="True" runat="server" onselectedindexchanged="ddlCountry_SelectedIndexChanged" Width="200px" > </asp:DropDownList> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID ="ddlCountry" </Triggers> </asp:UpdatePanel>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)