img.InGrid { max-width: 50px; max-height: 50px; }
<asp:Image ID="Image1" runat="server" style="max-height:1000px;max-width:900px;height:auto;width:auto;" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)