473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

multiple datarepeater

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 18 '05 #1
6 1131
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 18 '05 #2
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 18 '05 #3
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 18 '05 #4
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 18 '05 #5
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 18 '05 #6
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 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: suzy | last post by:
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>...
3
by: | last post by:
Hi, NG! Is there any updated version (.Net) of the Datarepeater control or do I have to use the old (VS6.0) version? Thanks. pax
2
by: Jan Vetterli | last post by:
hi, I'm wondering how I can achieve a button with a CommandArgument thats dynamicly created from two or more DataBinder values, seperated with a ";" so I can split the information up afterwards....
1
by: DotNetDev | last post by:
I have a datarepeater. <asp:Repeater id="_quiestionsDataRepeater" runat="server"> <ItemTemplate> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td> <asp:Label id="Label2"...
1
by: =?Utf-8?B?QW1qYWQ=?= | last post by:
Hi i have datarepeater in which i have textboxes, how to create txtCustID_TextChanged event in datarepeater like simple textbox its easy double click it and it create automatically the event but in...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.