473,396 Members | 1,683 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,396 software developers and data experts.

problem databinding a dropdownlist within a repeater

hi there,

in ASP.NET 1.1 - debugging i can see that the dropdownlist item within the
repeater is being populated and i do "droplist1.databind" but when the page
loads there is no data.

on top of page i declare "public DL as new DropDownList"

What i'm doing is the following: on the page load, i create a new istance of
"DL" and populate it with the data from database (1 db call), then when i
bind the repeater, as it goes through each ItemDataBound event, i do
"rptDropList = dl.

In debugging, it shoes dl.items.count=12 and i can see the data, but the
repeater items just show up blank, and yes i have set the DataValueField and
DataTextField also.

any help appreciated,
Paul
Oct 3 '06 #1
1 2093
never mind, problem solved...

rptDropList.datasource = dl.datasource
rptDropList.databind
"Milsnips" <mi******@hotmail.comwrote in message
news:Oo**************@TK2MSFTNGP04.phx.gbl...
hi there,

in ASP.NET 1.1 - debugging i can see that the dropdownlist item within the
repeater is being populated and i do "droplist1.databind" but when the
page loads there is no data.

on top of page i declare "public DL as new DropDownList"

What i'm doing is the following: on the page load, i create a new istance
of "DL" and populate it with the data from database (1 db call), then when
i bind the repeater, as it goes through each ItemDataBound event, i do
"rptDropList = dl.

In debugging, it shoes dl.items.count=12 and i can see the data, but the
repeater items just show up blank, and yes i have set the DataValueField
and DataTextField also.

any help appreciated,
Paul


Oct 3 '06 #2

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

Similar topics

0
by: kamaumalone | last post by:
I have a dropdownlist which lives inside of a repeater. The repeater accepts user input via textboxes and the aforementioned dropdownlist. The repeater accepts phone numbers and allows for an...
1
by: JazzLover | last post by:
We have some javascript code that depends on the name of the dropdownlists to be the same as it parses them in an array, but within a repeater the webcontrols generate a uniqueid with ctl0: and...
2
by: Olav Tollefsen | last post by:
I have a Web Form with a DataList. Inside the ItemTemplate, I have a DropDownList control. <asp:DataList ID="ProductDataList" Runat="server"> <ItemTemplate> <asp:DropDownList ID="DropDownList1"...
3
by: Roshawn Dawson | last post by:
Hi, I have a repeater control. This control will render a number of textboxes on the page. Each textbox has its onblur event wired to a JScript function. Here's a sample: <asp:textbox...
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...
1
by: Jeremy | last post by:
Hello All, I have a Repeater which contains a Dynamic DropDownList within its itemtemplate. I know I have struggled with this before and I am pretty sure I had to save a bunch of crap manually...
0
by: craigkenisston | last post by:
I have a form with a repeater that is filled from a BLL object, and a dropdownlist. The dropdownlist has a parameters that is used in the BLL class, the number of rows about to be displayed. I...
4
by: Brad Baker | last post by:
I'm going a little crazy :) I'm trying to bind a repeater control to a dataset on page load using the following code: if (Request.QueryString != null) { string customerid = Request.QueryString;...
5
by: Brad Baker | last post by:
I am trying to make a "tabbed" interface by iterating through a dataset with a conditional statement. For example: ...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.