Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Horizontal orientation in Repeater control

I have a Repeater control used to display uploaded images.

How can I show the images in the repeater horizontally? How can i give the caption to the bottom of picture in this?

like image 488
user85511 Avatar asked Nov 13 '09 09:11

user85511


2 Answers

assuming you have some code like this:

<asp:repeater ...>

</asp:repeater>

just inject "<itemtemplate>" with some html code with the look and feel you want to. nothing special about showing horizontal or vertical it just depends on what html tags you use inside item templates.

like image 180
Numenor Avatar answered Oct 08 '22 07:10

Numenor


If you don't especially need a Repeater to do this, you can use a DataList instead and set the RepeatDirection="Horizontal"

like image 26
Nikos Steiakakis Avatar answered Oct 08 '22 08:10

Nikos Steiakakis