#divImage img { -ms-interpolation-mode: bicubic; max-height:150px!important; height:auto; width:auto; }
<div id="divImage"> <img id='img1' runat="server" /> </div>
Dim imgLoc As String = "images/sampleimagehere.png" 'actual height is 300px img1.Attributes.Add("src", imgLoc + "?refreshTime=" + DateTime.Now.Ticks.ToString())
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)