radiobuttonlist

Discussion in 'ASP .Net Web Controls' started by John Hopper, Jun 16, 2004.

  1. John Hopper

    John Hopper Guest

    When I databind an asp radiolistbutton to a datareader the resulting list always displays one less record than is returned by the query. Also any query returning only 1 row displays nothing after binding.

    Can anyone tell me why??

    Thanks!
     
    John Hopper, Jun 16, 2004
    #1
    1. Advertising

  2. It sounds like your first .Read is in the wrong place in the loop or its
    content is being ignored. Can you show the code?

    Don't forget that things are generally zero-based in .NET.

    "John Hopper" <> wrote in message
    news:...
    > When I databind an asp radiolistbutton to a datareader the resulting list
    > always displays one less record than is returned by the query. Also any
    > query returning only 1 row displays nothing after binding.
    >
    > Can anyone tell me why??
    >
    > Thanks!
     
    Ken Cox [Microsoft MVP], Jun 16, 2004
    #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:
    793
    Sreejumon[MVP]
    Jul 1, 2003
  2. Leif
    Replies:
    1
    Views:
    437
    Helixpoint
    Jul 11, 2003
  3. Bob Hoke
    Replies:
    0
    Views:
    495
    Bob Hoke
    Jul 11, 2003
  4. Hazzard
    Replies:
    3
    Views:
    5,119
    Hazzard
    Jul 14, 2003
  5. Mike S
    Replies:
    1
    Views:
    1,106
    Mike S
    Jul 15, 2003
Loading...

Share This Page