how to display name of image below thumbviewer

Posted by Srinu0411 under ASP.NET on 1/5/2010 | Views : 2530 | Status : [Member] | Replies : 2
In a aspx page i have one repeater control with ThumbViewer , when user mouse overs on each image of the ThumbViewer ,i need to show the Tooltip with its imagename.

imagename is in database

i tried in this way

<bri:ThumbViewer ID="ThumbViewer1" runat="server" ThumbUrl='<%# Eval("EventImageLocation", "images/{0}") %>'
Height="85" Width="85" />

<asp:Label runat="server" ID="lblimgname" Text='<%#Bind("Description") %>' ToolTip='<%#Bind("Description") %>'></asp:Label>


it is comming side of ThumbViewer
i put <br> all images r comming 1 by 1 like pillar
i does want like that
images should display in one line with its image names


i want names to come below of ThumbViewer

please help me

kaja srinivas


Responses

Posted by: Mehulthakkar1 on: 1/5/2010 [Member] Starter

Up
0
Down
You can write your code with repeater control like this

<table>
<tr>
<repeater control>
<td align='center'>
<bri:ThumbViewer ID="ThumbViewer1" runat="server" ThumbUrl='<%# Eval("EventImageLocation", "images/{0}") %>'
Height="85" Width="85" />
<br/>
<asp:Label runat="server" ID="lblimgname" Text='<%#Bind("Description") %>' ToolTip='<%#Bind("Description") %>'></asp:Label>
</td>
</repeater control>
</tr>
</table>

This way all the images will be displayed in a single row with image name below the image.

Thanks
Mehul Thakkar

Srinu0411, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nishithraj on: 1/7/2010 [Member] Bronze

Up
0
Down
You can try this by creating a seperate <Table><tr><td><thumbnail viewer> like this in repeater.

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

Srinu0411, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response