By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,433 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

multiple datarepeater

P: n/a
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


Nov 16 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
You need to specify a table from the data source in each repeater

"suzy" <me@nospam.com> escribió en el mensaje
news:u9**************@TK2MSFTNGP09.phx.gbl...
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

Nov 16 '05 #2

P: n/a
But I have a different dataset for each repeater. And each dataset contains
only 1 table. It's printing the values fine, just the entire thing 2 times
in a row.
"Franco Figun" <fr********@fibertel.com.ar> wrote in message
news:On**************@TK2MSFTNGP09.phx.gbl...
You need to specify a table from the data source in each repeater

"suzy" <me@nospam.com> escribió en el mensaje
news:u9**************@TK2MSFTNGP09.phx.gbl...
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


Nov 16 '05 #3

P: n/a
Hi suzy,

post the code behind and the aspx snip where you declare the repeaters

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"suzy" <me@nospam.com> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
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

Nov 16 '05 #4

P: n/a
I dont have the code on me, and it's nothing fancy, but it's something like
this:

protected Repeater repRepeater1;
protected Repeater repRepeater2;
....
....

Page_Load()
{
repRepeater1.DataSource = dt; //this is a single table (data dable)
containing the data i want to display 1st
repRepeater1.DataBind();

repRepeater2.DataSource = dt2; //this is a single table (data dable)
containing the data i want to display 2nd
repRepeater1.DataBind();
}
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:OY**************@tk2msftngp13.phx.gbl...
Hi suzy,

post the code behind and the aspx snip where you declare the repeaters

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"suzy" <me@nospam.com> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
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


Nov 16 '05 #5

P: n/a
The 2nd repeater should be:

repRepeater2.DataBind();
"suzy" <me@nospam.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I dont have the code on me, and it's nothing fancy, but it's something like this:

protected Repeater repRepeater1;
protected Repeater repRepeater2;
...
...

Page_Load()
{
repRepeater1.DataSource = dt; //this is a single table (data dable)
containing the data i want to display 1st
repRepeater1.DataBind();

repRepeater2.DataSource = dt2; //this is a single table (data dable)
containing the data i want to display 2nd
repRepeater1.DataBind();
}
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote in message news:OY**************@tk2msftngp13.phx.gbl...
Hi suzy,

post the code behind and the aspx snip where you declare the repeaters

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"suzy" <me@nospam.com> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
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



Nov 16 '05 #6

P: n/a
The 2nd repeater should be:

repRepeater2.DataBind();

Just a typo.

"suzy" <me@nospam.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I dont have the code on me, and it's nothing fancy, but it's something like this:

protected Repeater repRepeater1;
protected Repeater repRepeater2;
...
...

Page_Load()
{
repRepeater1.DataSource = dt; //this is a single table (data dable)
containing the data i want to display 1st
repRepeater1.DataBind();

repRepeater2.DataSource = dt2; //this is a single table (data dable)
containing the data i want to display 2nd
repRepeater1.DataBind();
}
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote in message news:OY**************@tk2msftngp13.phx.gbl...
Hi suzy,

post the code behind and the aspx snip where you declare the repeaters

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"suzy" <me@nospam.com> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
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




Nov 16 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.