Solved

To have several items on one repeater line

Posted on 2014-12-13
5
39 Views
Last Modified: 2015-09-10
Hi,
within one repeater control

    <div id="repcontainer">
        <asp:Repeater ID="Repeater" runat="server">
	        <HeaderTemplate>
	        </HeaderTemplate>
            <ItemTemplate>
		        <asp:LinkButton ID="Link1" runat="server" Text='<%# Eval("row1") %>' BackColor="#57789E" Width="380px" 
                    ForeColor="White" Font-Bold="true" Font-Names="Arial" style="line-height:33px" 
                    ToolTip="Double-click the line to locate to the record" OnClick="bt_Click" />
            </ItemTemplate>
	        <SeparatorTemplate>
	        </SeparatorTemplate>
	        <FooterTemplate>
		        <div class="headerFooter"></div>
	        </FooterTemplate>
        </asp:Repeater>
    </div>

Open in new window



is there any way to show several items like the following

https://dl.dropboxusercontent.com/u/40211031/t871.png

to each repeater line?
0
Comment
Question by:HuaMinChen
  • 3
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
LordWabbit earned 500 total points
ID: 40497691
Just add more items between <ItemTemplate> tags.  Does not limit you to just one.
0
 
LVL 11

Expert Comment

by:LordWabbit
ID: 40497694
Oh wait, I think I get it, with the repeater you are getting
Item1
Item2
Item3
Item4
Item5
Item6

and you want
Item1 Item2 Item3
Item4 Item5 Item6

Sorry, but the attached image meant absolutely nothing to me.
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 40497697
Yes,

Item1 Item2 Item3
Item4 Item5 Item6

is what I want. I want to all items to be retrieved from one Table. How?
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 40497699
Can you show with one example for this? thanks
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 40498920
Any advice to this? thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now