<asp:DropDownList ID="drpCountry" runat="server" AutoPostBack="true" OnSelectedIndexChanged="drpCountry_SelectedIndexChanged"> <asp:ListItem Text="India"></asp:ListItem> <asp:ListItem Text="USA"></asp:ListItem> </asp:DropDownList>
protected void drpCountry_SelectedIndexChanged(object sender, EventArgs e) { Session["country"] = drpCountry.SelectedItem.Text; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)