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
 
G

Guest

I have try to put a label templsate but no luck...
ONe question then, what this template is all about, what do it requires it ?
 
G

Guest

Hi andy,

I try your suggestion but no luck, still the same totally blank page, and I
am suzre they are data in my table

any other tips?
 
G

Guest

Hi Elton,

If I open the HTML view I could not see anything related to template as you
mention
..... what it could be or how to set uit up?
 

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

Top