Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

To have several items on one repeater line

Posted on 2014-12-13
5
Medium Priority
?
46 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
LordWabbit earned 1000 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 11

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 11

Author Comment

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

Author Comment

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

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

704 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