Repeater

hi,

i want to do the following, i have a table with a list of items i want to dispaly on a web page, i have tried to use a repeater like so

<asp:Repeater id="ShowItemList" runat="server" OnItemCommand="ShowItem_ItemCommand">
  <itemTemplate>
    <asp:linkbutton text='<%# DataBinder.Eval(Container.DataItem, "ItemType") %>'  CommandName="ShowItem" runat="server"
                                                                                                                                                                       width="400" />
     <asp:linkbutton text='<%# DataBinder.Eval(Container.DataItem, "ItemType") %>' CommandName="ShowItem" runat="server"                                
                                                                                                                                                                       width="400" />
  </itemTemplate>
</asp:Repeater>

output
------------------------------
Apples             Apples
Oranges          Oranges

but that just displays the same item side by side like above, so i guess im doing something wrong, can i put a piece of code in between the two linkbutton's to jump to the next record? or am i going about this arse-ways?

i would like the output to look like it does below is there an easy way to do this, without having to use 27 select statements and 27 repeaters, one of each for each letter of the alphabet??

A
---------------------------------------------------------------
Apples                        


B
---------------------------------------------------------------
Banans                       Beans
Beetroot                      

C
---------------------------------------------------------------
Corn                          Carrots
.
.
.
.

Thanks In Advance

stephencushenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mmarinovCommented:
Hi stephencushen,

i suggest you to use for this purpose datalist
aslo it is not possible to move to the next record within the aspx

Regards!
B..M
mmarinov
0
stephencushenAuthor Commented:
heeeeem

ive been messin around with datalists, but cant get them to display results like

<tr>
      <td>aaaaaa</td><td>bbbbbbb</td>
</tr>
<tr>
      <td>ccccccc</td><td>ddddddd</td>
</tr>
<tr>
      <td>eeeeee</td><td>ffffffffffff</td>
</tr>

they only

<tr>
      <td>aaaaaa</td><td>aaaaaa</td>
</tr>
<tr>
      <td>ccccccc</td><td>ccccccc</td>
</tr>
<tr>
      <td>eeeeee</td><td>eeeeee</td>
</tr>

any ideas who to get it to display like i want it??
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stephencushenAuthor Commented:
cheers,

exactly what i was lookin for
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.