Problem DataBinding

Discussion in 'ASP .Net' started by Wayne Wengert, Dec 1, 2004.

  1. I have a VSNET 2003 ASPX page which contains a RadioButtonList Control that
    I want to populate from an existing column in an existing table. I've done
    this in the past using a datareader and looping to add values. I decided I
    want to make myself use the NET data tools (sqldataadapter, etc.) Needless
    to say, I must be missing something as the list never gets populated.

    I added a dataadapter and created the select command and the connection
    string. I then created a dataset from the adapter and previewed the data -
    all is well. In the radio button list I set the datasource to "DataSet11",
    the DataMember is set to my table name and I keyed in the field name for the
    DataTextField. When I run the app, it processes for a few seconds but I
    never get any data displayed for the radiobuttonlist.

    Any suggestions on how to go about debugging this?

    Wayne
    Wayne Wengert, Dec 1, 2004
    #1
    1. Advertising

  2. Wayne,

    Do you call DataBind() method for either the page or the control?

    Eliyahu

    "Wayne Wengert" <> wrote in message
    news:...
    > I have a VSNET 2003 ASPX page which contains a RadioButtonList Control

    that
    > I want to populate from an existing column in an existing table. I've done
    > this in the past using a datareader and looping to add values. I decided I
    > want to make myself use the NET data tools (sqldataadapter, etc.) Needless
    > to say, I must be missing something as the list never gets populated.
    >
    > I added a dataadapter and created the select command and the connection
    > string. I then created a dataset from the adapter and previewed the data -
    > all is well. In the radio button list I set the datasource to "DataSet11",
    > the DataMember is set to my table name and I keyed in the field name for

    the
    > DataTextField. When I run the app, it processes for a few seconds but I
    > never get any data displayed for the radiobuttonlist.
    >
    > Any suggestions on how to go about debugging this?
    >
    > Wayne
    >
    >
    Eliyahu Goldin, Dec 1, 2004
    #2
    1. Advertising

  3. Thanks for the quick response. Yes, in the page load event I issued the
    databind method for the radiobutton list.

    Wayne

    "Eliyahu Goldin" <> wrote in message
    news:...
    > Wayne,
    >
    > Do you call DataBind() method for either the page or the control?
    >
    > Eliyahu
    >
    > "Wayne Wengert" <> wrote in message
    > news:...
    > > I have a VSNET 2003 ASPX page which contains a RadioButtonList Control

    > that
    > > I want to populate from an existing column in an existing table. I've

    done
    > > this in the past using a datareader and looping to add values. I decided

    I
    > > want to make myself use the NET data tools (sqldataadapter, etc.)

    Needless
    > > to say, I must be missing something as the list never gets populated.
    > >
    > > I added a dataadapter and created the select command and the connection
    > > string. I then created a dataset from the adapter and previewed the

    data -
    > > all is well. In the radio button list I set the datasource to

    "DataSet11",
    > > the DataMember is set to my table name and I keyed in the field name for

    > the
    > > DataTextField. When I run the app, it processes for a few seconds but I
    > > never get any data displayed for the radiobuttonlist.
    > >
    > > Any suggestions on how to go about debugging this?
    > >
    > > Wayne
    > >
    > >

    >
    >
    Wayne Wengert, Dec 1, 2004
    #3
    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. John Saunders

    Re: Problem with DataBinding and CheckBoxList

    John Saunders, Aug 10, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    422
    Eric Johannsen
    Aug 11, 2003
  2. Arun K
    Replies:
    0
    Views:
    544
    Arun K
    Dec 29, 2003
  3. volts
    Replies:
    0
    Views:
    497
    volts
    Apr 7, 2004
  4. jobs
    Replies:
    0
    Views:
    1,618
  5. Earl Teigrob
    Replies:
    1
    Views:
    401
    Shravan
    Mar 1, 2004
Loading...

Share This Page