Solved

To have several items on one repeater line

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
abstract class C# 1 31
Do alert on select 6 14
Only allow one check box 17 27
formvalidation.io validate form on class click 4 16
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…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
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…

828 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