RadioButtonList

Discussion in 'ASP .Net Web Controls' started by Jim McGivney, Aug 18, 2007.

  1. Jim McGivney

    Jim McGivney Guest

    On an asp.net2 page I have a DropDownList in the item template of a
    databound template of a DetailsView control.
    Everything works fine if the databound value is a member of the items-list
    of the DropDownList.
    But, when a value not on the list, typically a null value is encountered an
    error is thrown.
    How can I have the DropDownList accept null values ?
    How can I have the DropDownList check for and handle values not on the item
    list ?
    Thanks in advance for your help,
    Jim
    Jim McGivney, Aug 18, 2007
    #1
    1. Advertising

  2. Jim McGivney

    Riki Guest

    Jim McGivney wrote:
    > On an asp.net2 page I have a DropDownList in the item template of a
    > databound template of a DetailsView control.
    > Everything works fine if the databound value is a member of the
    > items-list of the DropDownList.
    > But, when a value not on the list, typically a null value is
    > encountered an error is thrown.
    > How can I have the DropDownList accept null values ?
    > How can I have the DropDownList check for and handle values not on
    > the item list ?
    > Thanks in advance for your help,
    > Jim


    See http://weblogs.asp.net/hpreishuber/archive/2006/02/02/437158.aspx for a
    solution to this.

    --

    Riki
    Riki, Aug 21, 2007
    #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. Ron
    Replies:
    2
    Views:
    777
    Sreejumon[MVP]
    Jul 1, 2003
  2. Leif
    Replies:
    1
    Views:
    424
    Helixpoint
    Jul 11, 2003
  3. Bob Hoke
    Replies:
    0
    Views:
    481
    Bob Hoke
    Jul 11, 2003
  4. Hazzard
    Replies:
    3
    Views:
    5,053
    Hazzard
    Jul 14, 2003
  5. Mike S
    Replies:
    1
    Views:
    1,081
    Mike S
    Jul 15, 2003
Loading...

Share This Page