Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DropDownList SelectedItem Index

Status
Not open for further replies.

YKDC

MIS
Joined
Apr 10, 2003
Messages
2
Location
US
I have 4 dropdownboxes: DropDown1, 2, 3, and 4. DropDowns 1 through 3 fire an event on SelectedIndexChanged. After I change DropDown1 it is ok and the indexchanged event is fired and goes through all steps properly. But,when I change dropdown3 the indexchange (selecteditem.index number) does NOT change even though I have selected a different item from the drop-down box. Additionally, the indexchanged event for dropdownbox1 is fired when I change dropdownbox3. Is this how supposed to work? Thank you.
 
no that is definitely not how it's suppose to work....
I would check to see how your controls are wired up to ensure that you don't have controls 1 and 3 wired to the same event.
 
Thank you for repoly. Yes, I tried with more simple example. Where I should take a look at to find out how these are wired up?? The following my HTML.
==================================
<TR>
<TD>Client:</TD>
<TD><asp:dropdownlist id=&quot;Client&quot; runat=&quot;server&quot; AutoPostBack=&quot;True&quot;></asp:dropdownlist></TD>
</TR>
<TR>
<TD>Fund:</TD>
<TD><asp:dropdownlist id=&quot;Fund&quot; runat=&quot;server&quot; AutoPostBack=&quot;True&quot;></asp:dropdownlist></TD>
</TR>
<TR>
<TD>Report Name:</TD>
<TD><asp:dropdownlist id=&quot;RPT&quot; runat=&quot;server&quot; AutoPostBack=&quot;True&quot;></asp:dropdownlist></TD>
</TR>
<TR>
<TD>Position Date:</TD>
<TD><asp:dropdownlist id=&quot;EffectiveDate&quot; runat=&quot;server&quot; AutoPostBack=&quot;True&quot;></asp:dropdownlist></TD>
</TR>
<TR>
<TD>Simulation ID:</TD>
<TD><asp:dropdownlist id=&quot;SimID&quot; runat=&quot;server&quot;></asp:dropdownlist></TD>
</TR>
<TR height=&quot;40&quot;>
<TD></TD>
<TD><asp:button id=&quot;Button1&quot; runat=&quot;server&quot; Text=&quot;Generate Reports&quot;></asp:button></TD>
</TR>
 
Are you in Visual Studio.NET or is this a code+html page?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top