This is how I do it:
A generic Image-From-DB class for ASP.NET[
^]
"think you did'nt get my question. i meant i have to place image path string from database onto href part of anchor tag.Suppose if i have string big upload/energy3.jpg' in my sql server on compiling anchor tag should have image string on its href part"
Ah! Well, you should have said...:laugh:
Add the ID and RUNAT attributes to your href:
<a id="MyLink" runat="server" href="">Linky!</a>
Then set the link from the C#:
MyLink.HRef = "http:www.MyDomain.com/Images/myImage.jpg";