how to get image name under images

Posted by Vanamalisowjanya under ASP.NET on 10/29/2011 | Points: 10 | Views : 1531 | Status : [Member] | Replies : 4
hwo to get the image name under each and every iamge ..............once chek my attachment ...........thanq

vanamali .sowjanya


Responses

Posted by: Abdulhaknet on: 10/29/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Friend ,

i have sample html source please go through this

--------------------------------------------------------------------
<asp:DataList ID="Datalist1" runat="server" RepeatColumns="4" CellPadding="5">
<ItemTemplate>
<asp:Image Width="100" ID="Image1" ImageUrl='<%# Bind("Name", "~/Images/{0}") %>' runat="server" />
<br />
<asp:HyperLink ID="HyperLink1" Text='<%# Bind("Name") %>' NavigateUrl='<%# Bind("Name", "~/Images/{0}") %>' runat="server"/>
</ItemTemplate>
<ItemStyle BorderColor="Brown" BorderStyle="dotted" BorderWidth="3px" HorizontalAlign="Center"
VerticalAlign="Bottom" />
</asp:DataList>

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

Posted by: Chanti444 on: 10/29/2011 [Member] Starter | Points: 25

Up
0
Down
hi Abdulhaknet,
thanq for giving reply but here i got a error
 Download source file

satya

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

Posted by: RohiK on: 11/2/2011 [Member] Starter | Points: 25

Up
0
Down
hi,

here you need to add column by 'Name' in your dataset by which you are binding your datalist.
The column Name contains image names which you want to display on bottom of your images.

Rohi

Happy Programming!!
Rohi

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

Posted by: Jayakumars on: 11/2/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

let me split and pass the image value or zip format attached your code. I will check and solve them.


Mark as Answer if its helpful to you

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

Login to post response