473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problem DataBinding

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
Nov 18 '05 #1
2 1000
Wayne,

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

Eliyahu

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:OP**************@TK2MSFTNGP09.phx.gbl...
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

Nov 18 '05 #2
Thanks for the quick response. Yes, in the page load event I issued the
databind method for the radiobutton list.

Wayne

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uH**************@TK2MSFTNGP14.phx.gbl...
Wayne,

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

Eliyahu

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:OP**************@TK2MSFTNGP09.phx.gbl...
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


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Richard | last post by:
Hi, I have a DateTime picker control on a form. The datetime picker control is data bound to a column in a DataTable. Yes I know about bound DateTime pickers and DBNull and etc. so no troubles...
0
by: mike | last post by:
Hi there: I've read an excellent "how to"-article by Microsoft (no. 306227) - partly cited cited at the end of this email). I have implemented the code related to the part "How to Add a...
2
by: wolfgang wagner | last post by:
hi all! im trying to edit data in a datagrid (like described here: http://aspnet.4guysfromrolla.com/articles/071002-1.aspx) but if i click the edit button i get the following error invalid...
0
by: Daniel Doyle | last post by:
Hello and apologies in advance for the amount of code in this post. I've also sent this message to the Sharepoint group, but thought that ASP.NET developers may also be able to help, even though...
0
by: s.gregory | last post by:
My page layout is like this: Page >DataList (databound using ObjectDataSource1 contained in page) >>Items >>>UserControl >>>>GridView (databound using another ObjectDataSource2 contained in...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
2
by: Kalpesh | last post by:
Hello, I am facing a design problem here & need your expert design advice on this. Scenario: I have a class called Vendor - which has several simple attributes like Name, Address etc Now,...
1
by: m_mohanna | last post by:
I've problem with databinding in vb.net The problem that i'm trying to set a text field of the databinding programmatically during runtime, the change appears on the form, but after save the new...
7
by: Vlado Jasovic | last post by:
Hello, I'm using typed dataset for databinding to windows controls and I'm having some problems. I'm trying to move all business logic to datatable column_changing events and the problem that...
1
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I want to know if DataBinding in asp.net 2,0 is better than to fill up the values of the controls of the following form: this.miControlTextBox.Text = valorParaControlTextbox; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.