Solved

To have several items on one repeater line

Posted on 2014-12-13
5
41 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
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…

832 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