Insane Databinding (probably a bug)

Discussion in 'ASP .Net' started by avf, Mar 3, 2006.

  1. avf

    avf Guest

    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!!!
     
    avf, Mar 3, 2006
    #1
    1. Advertising

  2. avf

    Terry Burns Guest

    > 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" <> wrote in message
    news:...
    > 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!!!
    >
     
    Terry Burns, Mar 4, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jack Black

    Insane server control style problem...

    Jack Black, Apr 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    367
    DoesDotNet
    Apr 28, 2005
  2. Replies:
    2
    Views:
    427
  3. chris kramer
    Replies:
    3
    Views:
    404
    Victor Bazarov
    Jan 25, 2004
  4. John J. Lee
    Replies:
    6
    Views:
    320
    John J. Lee
    Feb 7, 2005
  5. Replies:
    6
    Views:
    387
    Old Wolf
    Jun 21, 2006
Loading...

Share This Page