S
segal.aviad
Hi,
I'm trying to write a web page containing three dropdowns. The
dropdowns are declared as follows:
<asp
ropDownList id="cmbCat1" runat="server"
AutoPostBack="true"></asp
ropDownList>
<asp
ropDownList id="cmbCat2" runat="server"
AutoPostBack="True"></asp
ropDownList>
<asp
ropDownList id="cmbCat3" runat="server"
AutoPostBack="True"></asp
ropDownList>
When trying to set a selected value to each of them, the others are
influenced for some reason. Their selected value is set as well. This
is the code:
cmbCat1.SelectedValue = Session["cat1"].ToString();
cmbCat2.SelectedValue = Session["cat2"].ToString();
cmbCat3.SelectedValue = Session["cat3"].ToString();
Any ideas why this is happening and what I need to do to make them
independant?
Thanks!
I'm trying to write a web page containing three dropdowns. The
dropdowns are declared as follows:
<asp

AutoPostBack="true"></asp

<asp

AutoPostBack="True"></asp

<asp

AutoPostBack="True"></asp

When trying to set a selected value to each of them, the others are
influenced for some reason. Their selected value is set as well. This
is the code:
cmbCat1.SelectedValue = Session["cat1"].ToString();
cmbCat2.SelectedValue = Session["cat2"].ToString();
cmbCat3.SelectedValue = Session["cat3"].ToString();
Any ideas why this is happening and what I need to do to make them
independant?
Thanks!