Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ImageButton is not working in NS

ImageButton is not working in NS

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    israeli
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • I israeli

      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

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      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>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups