2 datarepeaters on same page

S

suzy

hello,

how can i have multiple datarepeaters on the same aspx page?

i have tried something similar to this:

<asp:repeater id="repeater1" runat="server">
<itemtemplate>
<td>text</td>
</itemtemplate>
</asp:repeater>

<asp:repeater id="repeater2" runat="server">
<itemtemplate>
<td>other text</td>
</itemtemplate>
</asp:repeater>

all i want is for my page to print out all the items of repeater1, then
print out all the values of repeater2. but at the moment, my page is print
out all the values of repeater1, then all the items of repeater2, then it's
doing the entire thing again. :(

thanks in advance
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi suzy,

I think that you posted this before, send the code you are using and we can
correct it, basically what you should do is create both repeaters, set
theirs DataSource properties and perform a DataBind()

Cheers,
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top