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. Displaying the image in Image Control when it is selected using browser button

Displaying the image in Image Control when it is selected using browser button

Scheduled Pinned Locked Moved ASP.NET
7 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.
  • S Offline
    S Offline
    Soniya_k
    wrote on last edited by
    #1

    Hello !! I've one Image control on form. I'm using FileUpload control to browse an image. I want to display the selected image in the Image control when I click on Open Button in DialogBox(which opens after clicking Browse button). Waiting for answer...!

    P 2 Replies Last reply
    0
    • S Soniya_k

      Hello !! I've one Image control on form. I'm using FileUpload control to browse an image. I want to display the selected image in the Image control when I click on Open Button in DialogBox(which opens after clicking Browse button). Waiting for answer...!

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      u can do in two 1) direct set the path of image control url to filecontrol.path or 2) first save on local machine on default location with the help of map path and then set imageurl to default path

      parwej ahamad

      1 Reply Last reply
      0
      • S Soniya_k

        Hello !! I've one Image control on form. I'm using FileUpload control to browse an image. I want to display the selected image in the Image control when I click on Open Button in DialogBox(which opens after clicking Browse button). Waiting for answer...!

        P Offline
        P Offline
        Parwej Ahamad
        wrote on last edited by
        #3

        u can do in two way 1) direct set the path of image control url to filecontrol.path or 2) first save on local machine on default location with the help of map path and then set imageurl to default path

        parwej ahamad

        S 1 Reply Last reply
        0
        • P Parwej Ahamad

          u can do in two way 1) direct set the path of image control url to filecontrol.path or 2) first save on local machine on default location with the help of map path and then set imageurl to default path

          parwej ahamad

          S Offline
          S Offline
          Soniya_k
          wrote on last edited by
          #4

          Thanx pls Tell me where to write code for assigning path to imageurl? And how to get path which is displayed in that textbox? because FileUpload control has property FileName which gives only file name but how to get whole path???

          P 1 Reply Last reply
          0
          • S Soniya_k

            Thanx pls Tell me where to write code for assigning path to imageurl? And how to get path which is displayed in that textbox? because FileUpload control has property FileName which gives only file name but how to get whole path???

            P Offline
            P Offline
            Parwej Ahamad
            wrote on last edited by
            #5

            filecontrol.value property.

            Parwej Ahamad

            S 1 Reply Last reply
            0
            • P Parwej Ahamad

              filecontrol.value property.

              Parwej Ahamad

              S Offline
              S Offline
              Soniya_k
              wrote on last edited by
              #6

              Thanks. But I'm using FileUpload Control and there is no any propery like value. Pls tell the solution. Thanking You again in advance....

              P 1 Reply Last reply
              0
              • S Soniya_k

                Thanks. But I'm using FileUpload Control and there is no any propery like value. Pls tell the solution. Thanking You again in advance....

                P Offline
                P Offline
                Parwej Ahamad
                wrote on last edited by
                #7

                first u make filecontrol runat server right click on control and selectect run at serer. if u feel more trouble then pls send me your code and description on my id Past in message body don't attach. g_parwez@rediffmail.com

                parwej ahamad

                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