problem databinding a dropdownlist within a repeater

M

Milsnips

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
 
M

Milsnips

never mind, problem solved...

rptDropList.datasource = dl.datasource
rptDropList.databind
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top