Bhavesh Vankar

Bhavesh Vankar

  • 725
  • 1.1k
  • 78.7k

Retrieve image from folder to Image Control

Sep 7 2020 8:01 AM
i am trying to retrive image from folder to Image control in c# webbase but image not getting below is my code.
kindly suggest me 
  1. string filename = Path.GetFileName(Image1.ImageUrl);  
  2.  string strtemp = System.DateTime.Now.ToString("dd-MM-yy hh-mm") + filename;  
  3. Image1.ImageUrl = (Server.MapPath("~/CroppedImage/") + DateTime.Now.ToString("dd-MM-yy hh-ss") + ".jpg");  
 

Answers (4)