i mean
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jan 31, 2016, 2:38 PM EST
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!
Krishna Vyas6 reputationPosted Jan 31, 2016, 7:45 PM EST
Vipan SharmaRank #1,589 · 999 reputationPosted Jan 31, 2016, 9:20 PM EST
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jan 31, 2016, 9:54 PM EST
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:
Krishna Vyas6 reputationPosted Feb 10, 2016, 5:40 AM EST