This is my image Url
string fileUrl = file.Link;
I want to show this on Response.Write.How to do it?
Response.Write("<img src='" & fileUrl& "'/>")
Above Code I tried.But it doesn't work.
This is my image Url
string fileUrl = file.Link;
I want to show this on Response.Write.How to do it?
Response.Write("<img src='" & fileUrl& "'/>")
Above Code I tried.But it doesn't work.
And it was that &... It works fine by replacing & with +..
Response.Write("<img src='" + fileUrl+ "'/>")
let the filePath
contain virtual address like shown
string filePath = "http://localhost:2053/Styles/Images/myPersonalImage.jpg"
Response.Write("<img src='" & filePath & "'/>");
You need to use Server.MapPath.
string fileUrl = Server.MapPath(file.Link);