I am displaying image from a folder using an asp image control in a timer.The image doest not correctly fit into the screen like it gets vertical and hortizontal scroll bars.
aspx code
code behind
string localstr = Server.MapPath("~//bin//Images//"+ Filename );
Byte[] bytes = File.ReadAllBytes(localstr);
string base64String = Convert.ToBase64String(bytes, 0, bytes.Length);
Image1.ImageUrl = "data:image/" + ext + ";base64," + base64String;

Manav PandyaRank #166 · 14.3K reputationPosted Jan 17, 2018, 7:56 PM EST
SmileRank #9,215 · 209 reputationPosted Jan 17, 2018, 7:36 PM EST
Kip HackmanRank #2,595 · 536 reputationPosted Apr 23, 2020, 11:56 AM EDT
Manav PandyaRank #166 · 14.3K reputationPosted Jan 17, 2018, 2:48 AM EST