Insane Databinding (probably a bug)

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!!!
 
T

Terry Burns

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top