-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: BusyWizy
Message 5 in Discussion

You are talking the html "option list" control whereas the original
discussion was pertaining to the Asp.net dropdownlist control.

The dropdownlist or any other bindable control in asp.net can bind to any
object that implements a Ienumerable Interface. So each item in such a
control can be anything unlike an html control where each item is guaranteed
to be a string.

This is precisly the reason why when u say ?DropDownList1.SelectedItem in
the immiediete window, u will see something like DataRowView. Which means
that each item in the list is not a simple string but an actual datarow
object whose one column contains the value list and another column contains
the text list. At server-side, ASP.NET takes the selectedvalue (since that
is the data that is posted by the form) and uses it to infer the
selectedindex.

Hence the disparency between the various implementations of the same control

Regards,
Nauzad Kapadia [MVP]

> From: C l i f t o n
> Message 3 in Discussion
> 
> Well i dont think that the selectedindex is calculated using the
> selectedvalue.
> Have a look at the attached HTML file that proves my point.
> 
> 
> -----------------------------------------------------------




-----------------------------------------------------------

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]

Reply via email to