Insane Databinding (probably a bug)

  • Thread starter Thread starter avf
  • Start date Start date
A

avf

hi all.

in my code i bind a few dropdownlist boxes's lists, datasource etc. i
bind the Selectedvalue property, and everything is fine. then one
bright day, WITHOUT ANY CHANGE TO THE DATABINDING CODE, i started
getting "System.ArgumentOutOfRangeException: Specified argument was out
of the range of valid values". in the IDE i see that scewy line under
selectedvalue - "Could not find any attribute selectedvalue of
DropDownList"

This code worked!!!!! i can only conclude that somehow databinding
order has changed and now selectedvalue binds before the list
populates. i have the same issue with a dropdown that has a predefined
list, so i really can't see how this is possible.

HELP!!!
 
selectedvalue - "Could not find any attribute selectedvalue of
DropDownList"
SelectedValue is a property, not an attribute which is an error I would
associate with the HTML not the source code. This type of thing happens from
time to time when something else in the code has a syntax error and the
parser gets confused. Recheck your code formation thoroughly, you have an
error.
 
Back
Top