S
SirPoonga
I have a form with several DropDowns and DataGrids. They all work the
way they are suppose except one dropdown. When I select an option it's
SelectedIndexChanged event is not firing. When the page refreshes the
original (first) item is selected. I even bookmarked the event in the
debugger to see if it runs through that code.
In the following code the ddBoltOn dropdown box is the problem one.
Note: Web matrix produce the majority of the code.
<script runat="server">
....
Sub ckBoltOn_CheckedChanged(sender As Object, e As EventArgs)
toggle_ckBoltOn
End Sub
Sub ddBoltOn_SelectedIndexChanged(sender As Object, e As EventArgs)
update_ddBoltOn
End Sub
Sub ckOther_CheckedChanged(sender As Object, e As EventArgs)
toggle_ckOther
End Sub
Sub ddOther_SelectedIndexChanged(sender As Object, e As EventArgs)
update_ddOther
End Sub
</script>
<html>
....
<p>
Bolt On S.C.:
<asp:CheckBox id="ckBoltOn" runat="server" AutoPostBack="True"
OnCheckedChanged="ckBoltOn_CheckedChanged"></asp:CheckBox>
<aspropDownList id="ddBoltOn" runat="server"
OnSelectedIndexChanged="ddBoltOn_SelectedIndexChanged"
AutoPostBack="True"></aspropDownList>
</p>
<p>
Other:
<asp:CheckBox id="ckOther" runat="server" AutoPostBack="True"
OnCheckedChanged="ckOther_CheckedChanged"></asp:CheckBox>
<aspropDownList id="ddOther" runat="server"
OnSelectedIndexChanged="ddOther_SelectedIndexChanged"
AutoPostBack="True"></aspropDownList>
</p>
....
way they are suppose except one dropdown. When I select an option it's
SelectedIndexChanged event is not firing. When the page refreshes the
original (first) item is selected. I even bookmarked the event in the
debugger to see if it runs through that code.
In the following code the ddBoltOn dropdown box is the problem one.
Note: Web matrix produce the majority of the code.
<script runat="server">
....
Sub ckBoltOn_CheckedChanged(sender As Object, e As EventArgs)
toggle_ckBoltOn
End Sub
Sub ddBoltOn_SelectedIndexChanged(sender As Object, e As EventArgs)
update_ddBoltOn
End Sub
Sub ckOther_CheckedChanged(sender As Object, e As EventArgs)
toggle_ckOther
End Sub
Sub ddOther_SelectedIndexChanged(sender As Object, e As EventArgs)
update_ddOther
End Sub
</script>
<html>
....
<p>
Bolt On S.C.:
<asp:CheckBox id="ckBoltOn" runat="server" AutoPostBack="True"
OnCheckedChanged="ckBoltOn_CheckedChanged"></asp:CheckBox>
<aspropDownList id="ddBoltOn" runat="server"
OnSelectedIndexChanged="ddBoltOn_SelectedIndexChanged"
AutoPostBack="True"></aspropDownList>
</p>
<p>
Other:
<asp:CheckBox id="ckOther" runat="server" AutoPostBack="True"
OnCheckedChanged="ckOther_CheckedChanged"></asp:CheckBox>
<aspropDownList id="ddOther" runat="server"
OnSelectedIndexChanged="ddOther_SelectedIndexChanged"
AutoPostBack="True"></aspropDownList>
</p>
....