Reapeter and DAtaList

G

Guest

Dear all,

I try to understand how this Repeater and DatalIst works but sounds really
confusing.

Why if I do the following code I have a completly balnk page, not data gets
display and even no eror ?

OleDbDataAdapter1.Fill(ds)
Repeater1.DataSource = ds
Repeater1.DataBind()

Same things occurs if I use DataList control ..

Any idea ?

regards
serge
 
G

Guest

2 things to try:

1) Your DataSet should (hopefully) contain a DataTable, which has a name.
Try setting this name to the Repeater1.DataMember property.

2) After "Repeater1.DataBind()" put "Page.DataBind()".
 
G

Guest

Hi serge,

Do you have ItemTemplate and something like

<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Field_Name") %>
</ItemTemplate>

inside your repeater to show data?


Elton Wang
 

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,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top