Click here to Skip to main content
15,904,288 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to include attachmentname and also image
C#
img.Text = (string) attachment;
                                
                                img.ImageUrl = @"~/_layouts/images/Cv.Knowit/Ncrow-Mega-Pack-1-Word.bmp";


when doing like this i only get the image to display and not the name also of the attachment
how do i solve this
Posted
Comments
Prasad Khandekar 8-Apr-13 15:50pm    
That won't work. Image control will only display the image. You can however use alternateText and toolTip properties to specify the text to be displayed when mouse is moved on to the image or image is unavailable.
Kurac1 8-Apr-13 15:53pm    
is it not possible even with a hyperlink?
ZurdoDev 8-Apr-13 17:01pm    
You just need to put a hyperlink around an image and a label.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900