i mean
5 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna VyasPosted Feb 10, 2016, 10:40 AM
Francis SusaimichaelPosted Feb 1, 2016, 2:54 AM
Sure. As per your requirement, you want to fetch the image from DB and give it to directly to the image control to render. If so the below urls are very much helpful:
Vipan SharmaPosted Feb 1, 2016, 2:20 AM
Krishna VyasPosted Feb 1, 2016, 12:45 AM
Francis SusaimichaelPosted Jan 31, 2016, 7:38 PM
Markup:
Code:
protected void Page_Load(object sender, EventArgs e)
{
// Get the path from DB and store into string variable
string path = "~/yourpath/folder/imagename.gif";
// Set path to HTML image control
myimage.Src = path;
// set imageurl to ASP.Net Image control
myimagecontrol.ImageUrl = path;
}
Hope this helps!