ImageButton is not working in NS
-
Hi, I placed an ImageButton control inside a template column of DataGrid. The problem is that Netscape is showing the picture in its original dimensions (very big) although I restrict the width or height to be 250 only. What can make the image to acquire the desired width in netscape ? By the way, in IE everything works great. id="ImageButtonPic" runat="server" CommandName="PicClicked" Height="200" > Best regards Eli
-
Hi, I placed an ImageButton control inside a template column of DataGrid. The problem is that Netscape is showing the picture in its original dimensions (very big) although I restrict the width or height to be 250 only. What can make the image to acquire the desired width in netscape ? By the way, in IE everything works great. id="ImageButtonPic" runat="server" CommandName="PicClicked" Height="200" > Best regards Eli
Hi there, In Netscape, to display an image in the way you want, you can use the style property to set the width and height values for the img element, for example:
<asp:ImageButton style="height:100px;width:100px;" ImageUrl="Images/Vinny.jpg" id="ImageButtonPic"
runat="server" CommandName="PicClicked" ></asp:ImageButton>