protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e) { Session["MyVar"] = ListBox1.SelectedValue; Response.Redirect("home.aspx"); }
<asp:ListBox ID="ListBox1" runat="server" Height="202px" Width="262px" style="margin-left: 247px; margin-top: 68px" onselectedindexchanged="ListBox1_SelectedIndexChanged"> <asp:ListItem></asp:ListItem> </asp:ListBox>
AutoPostBack="true"
<asp:ListBox ID="ListBox1" AutoPostBack="true" runat="server" Height="202px" Width="262px" style="margin-left: 247px; margin-top: 68px" onselectedindexchanged="ListBox1_SelectedIndexChanged">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)