SelectedValues returns the Value of the selecteditem or "" if there is none.
SelectedItem returns the selected item. SelectedItem.Value return the .Value
of the SelectedItem. SelectedItem.Value will throw an error if there is no
selected item, because SelectedItem will return null, and .Value of null
will throw the error.
-- bruce (sqlwork.com)
"darrel" <no*****@hotmail.com> wrote in message
news:ev*************@TK2MSFTNGP14.phx.gbl...
what is the difference between these? I always end up typing
'selectedvalue'
only to have problems and then realize I meant to use selecteditem.value
(the value of the selected item).
When would one use the former (selectedValue)?
-Darrel