----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: BusyWizy Message 2 in Discussion IMO this would be the expected behaviour, since the selectedindex is calculated using the "selectedvalue". So the selectedindex would also point to the first entry it finds with the corresponding value. Basically the value attribute of any bound control should be unique, such that u can easily identify one and only one data item in the list. The current values you have bound to the dropdownlist do not take this point into account. Regards, Nauzad Kapadia [MVP] > -----Original Message----- > From: Jigs [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 28, 2004 4:56 PM > To: MumbaiUserGroup > Subject: DropdownlistBox Bug. > > ----------------------------------------------------------- > > New Message on MumbaiUserGroup > > ----------------------------------------------------------- > From: Jigs > Message 1 in Discussion > > I think we have some bug in dropdownlistbox server control. Following are > the values. <asp:DropDownList id=DropDownList1 runat="server"> > <asp:DropDownList id=DropDownList1 runat="server"><asp:DropDownList > id="DropDownList1" runat="server"> > <asp:ListItem value="46">INR</asp:ListItem> > <asp:ListItem value="2">USE</asp:ListItem> > <asp:ListItem value="1">USD</asp:ListItem> > <asp:ListItem value="1">URO</asp:ListItem> > <asp:ListItem value="29">SND</asp:ListItem> > <asp:ListItem value="46.09">INP</asp:ListItem> > <asp:ListItem value="47">IDR</asp:ListItem> > <asp:ListItem value=".7">EURO</asp:ListItem> > <asp:ListItem value="70">EUR</asp:ListItem> > </asp:DropDownList></asp:DropDownList> <asp:DropDownList > runat="server"></asp:DropDownList> <asp:DropDownList runat="server">Now > when ever you select USD or URO option it always returns selectindex as > "2". This is very strange and seems to be like a bug.</asp:DropDownList> > <asp:DropDownList runat="server"></asp:DropDownList> <asp:DropDownList > runat="server">Can someone tell me wheather its know bug and if so what is > the way around to solve this. </asp:DropDownList> <asp:DropDownList > runat="server"></asp:DropDownList> <asp:DropDownList > runat="server">Regards,</asp:DropDownList> <asp:DropDownList > runat="server"></asp:DropDownList> </asp:DropDownList> > ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
