Hello All, i want to add image through img tag in C#.net i tried the following logic but it's not work
String img+="img src="abc.jpg"
if you know plz reply me
Hello All, i want to add image through img tag in C#.net i tried the following logic but it's not work
String img+="img src="abc.jpg"
if you know plz reply me
In markup:
<asp:image id="myImage" runat="server" />
In code-behind:
myImage.ImageUrl = "abc.jpg";
try this in aspx page
<asp:Image ID="Image1" runat="server" ImageUrl=""/>
hi !!
Thats how normlly we do for html!!!
<img src="flower01.jpg" alt="Yellow Flower" width="150" height="100">
for asp we do
<asp:Image ID="imgMain" runat="server" ImageUrl="http://www.xyz.com/files/images/15%20Random%20Greenery.JPG"/>
can be done like this