-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: kalpesh
Message 2 in Discussion
Hello,
I cant say whether to classify this as bug, but it is an implementation mismatch
If you add a client side javascript to check the index of the selected item, the
result is
appropriate as expected
But, in this case, it doesnt work (as the client-side javascript would do)
The workaround, is to chnage the list item rendering
make sure that value property of listitem under <asp:dropdown> has a unique
list. For eg
<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.0">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>
What internally it might be doing in the prev. case, could be checking the
selectedindex
by the value of it. As a result, if you select URO, the value is 1 & then it searches
the
listietmcollection for 1, which it can find at USD -> whiich is index 2
So, they have re-invented the way, instead of using existing DOM object properties. I
dont know why they have done this ?
But, I hope this will surely solve your problem. Can anybody from MS explain ?
Kalpesh
-----------------------------------------------------------
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]