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. how to display a imagebutton in asp.net

how to display a imagebutton in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
5 Posts 4 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.
  • B Offline
    B Offline
    biaali
    wrote on last edited by
    #1

    how do we display a imagebutton in asp.net.it does show a small box with a cross on it but doesnt display the image of the button.though the functionality behind the button wrks just fine. bia ali

    S M 2 Replies Last reply
    0
    • B biaali

      how do we display a imagebutton in asp.net.it does show a small box with a cross on it but doesnt display the image of the button.though the functionality behind the button wrks just fine. bia ali

      S Offline
      S Offline
      Sun Rays
      wrote on last edited by
      #2

      hi, for that u have to set property of image button. give image url to imagebutton..

      Thanks, Sun Rays

      B 1 Reply Last reply
      0
      • B biaali

        how do we display a imagebutton in asp.net.it does show a small box with a cross on it but doesnt display the image of the button.though the functionality behind the button wrks just fine. bia ali

        M Offline
        M Offline
        MinhajuddinK
        wrote on last edited by
        #3

        Change the tag's src attribute to point to the location of the image you want to display. Another reason why it's not being displayed is that the path to the image may be wrong.

        You don't have to be AFRAID!

        1 Reply Last reply
        0
        • S Sun Rays

          hi, for that u have to set property of image button. give image url to imagebutton..

          Thanks, Sun Rays

          B Offline
          B Offline
          biaali
          wrote on last edited by
          #4

          the path that it allows me for picking the pick url is the folder in which the project is lying and even if the image is pasted in that folder still it doent show that image in pick url window for me to select it and if i write it myself then it gives me an error: image not found bia ali

          K 1 Reply Last reply
          0
          • B biaali

            the path that it allows me for picking the pick url is the folder in which the project is lying and even if the image is pasted in that folder still it doent show that image in pick url window for me to select it and if i write it myself then it gives me an error: image not found bia ali

            K Offline
            K Offline
            kubben
            wrote on last edited by
            #5

            You need to include the image folder into your web site and then include the image into you web site. If the image is out side your web site the web site doesn't have access to the image. Also if you don't include the image with the web site when you deploy the web site the image won't get deployed with it. Ben

            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