Re: Insane Databinding (probably a bug)



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.

--
Terry Burns
http://TrainingOn.net
"avf" <avfangel@xxxxxxxxx> wrote in message
news:1141410862.284476.217740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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


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



.



Relevant Pages

  • Insane Databinding (probably a bug)
    ... in my code i bind a few dropdownlist boxes's lists, ... bind the Selectedvalue property, and everything is fine. ... i have the same issue with a dropdown that has a predefined ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Drop Down List Box Asp.net (VB)
    ... try only bind the dropdownlist in the first load. ... 'Bind dropdownlist. ... I don't see any property name with selectedValue. ... post ASP.NET related problems in DotNet.Framework.aspnet. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DropDownList properties .. no SelectedValue ...
    ... Thanks, Teemu ... ... so is there a better way to bind a DropDownList value ... I'm ignoring Intellisense and using this: ... SelectedValue in the template? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Comboboxes sharing SelectedValue
    ... Both comboboxes are bound to the same DataTable object, ... I have the two comboboxes, both bound to the same DataTable for their drop down list values. ... that programmatically setting or getting the SelectedValue property affected BOTH combo boxes. ... Apprently it has something to do with both drop down lists being populated from the same datatable. ...
    (microsoft.public.dotnet.framework.compactframework)
  • comboBox SelectedValue behaviour
    ... I have an object populated from the database, The object has three properties, ... Regardless when I bind the objectcollection to the DataSourse property I get ... When I get the SelectedValue of the comboBox it returns the selectedIndex ... Has anyone else seen this behaviour and know of a workaround ...
    (microsoft.public.dotnet.languages.csharp)