<asp:UpdatePanel ID="NetworkUpadated" UpdateMode="Conditional" runat="server"> <ContentTemplate> NMI: <asp:TextBox ID="NMITextBox" OnTextChanged="GetNetwork" AutoPostBack="true" runat="server"></asp:TextBox> Network Code: <asp:DropDownList ID="NetworkCodeDropDown" AutoPostBack="true" OnSelectedIndexChanged="NetworkCodeDropDown_Changed" runat="server" > </asp:DropDownList> </ContentTemplate> </asp:UpdatePanel>
public void NetworkCodeDropDown_Changed(object sender, EventArgs e) { string sel = NetworkCodeDropDown.SelectedValue;// it showing always 1 }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)