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. General Programming
  3. C#
  4. AutoFit an Image

AutoFit an Image

Scheduled Pinned Locked Moved C#
csharpquestionasp-nethelp
4 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.
  • C Offline
    C Offline
    confusedme
    wrote on last edited by
    #1

    Hello all.. I have been using ASP.Net 2 with c#.My problem is as follows: I need to put an image.I have used an image control for the purpose .i have well placed the image.But when i view the page on the browser the image doesnt seem to fit into the control but the image takes its original size.How can i auto fit it into the control?Any ideas? confusedme

    C 1 Reply Last reply
    0
    • C confusedme

      Hello all.. I have been using ASP.Net 2 with c#.My problem is as follows: I need to put an image.I have used an image control for the purpose .i have well placed the image.But when i view the page on the browser the image doesnt seem to fit into the control but the image takes its original size.How can i auto fit it into the control?Any ideas? confusedme

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You put the size in the control and it will size it.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      C 1 Reply Last reply
      0
      • C Christian Graus

        You put the size in the control and it will size it.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        C Offline
        C Offline
        confusedme
        wrote on last edited by
        #3

        Hi Thanks for your prompt reply.But how can i put the size? well,in the properties window the size of the image control is 95px by 130px.The source also holds the same value.What am I missing?

        C 1 Reply Last reply
        0
        • C confusedme

          Hi Thanks for your prompt reply.But how can i put the size? well,in the properties window the size of the image control is 95px by 130px.The source also holds the same value.What am I missing?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          What properties window ? You're doing ASP.NET, right ? You should just be editing the aspx directly. It has width and height properties, or you can add them. Check they are making it to the end HTML, and if not, you need to work out why.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          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