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. show image

show image

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

    i need to show image when the user select path. ie, the file could be at any location. at the time of execution user can give any path in the textbox. and at the same time when selection is made by user in textbox the image immediately should show in the picture box. i use this code protected void Page_Load(object sender, EventArgs e) { Image1.ImageUrl = TextBox.Text; }

    C R 2 Replies Last reply
    0
    • R ritasaumya

      i need to show image when the user select path. ie, the file could be at any location. at the time of execution user can give any path in the textbox. and at the same time when selection is made by user in textbox the image immediately should show in the picture box. i use this code protected void Page_Load(object sender, EventArgs e) { Image1.ImageUrl = TextBox.Text; }

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

      Looks like it should work. What is the problem ? You could even do this in javascript and not have to post back. Then it would in fact be 'immediate'

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      P 1 Reply Last reply
      0
      • C Christian Graus

        Looks like it should work. What is the problem ? You could even do this in javascript and not have to post back. Then it would in fact be 'immediate'

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        P Offline
        P Offline
        padmanabhan N
        wrote on last edited by
        #3

        Dear Christian, I have a doubt... Is it possible to open a image from any location...if yes, can you give some sample.

        Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

        C 1 Reply Last reply
        0
        • P padmanabhan N

          Dear Christian, I have a doubt... Is it possible to open a image from any location...if yes, can you give some sample.

          Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

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

          I am not sure if a local path would work for a local user or not, but if it's an online location, I'd expect what you posted to work just fine.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          1 Reply Last reply
          0
          • R ritasaumya

            i need to show image when the user select path. ie, the file could be at any location. at the time of execution user can give any path in the textbox. and at the same time when selection is made by user in textbox the image immediately should show in the picture box. i use this code protected void Page_Load(object sender, EventArgs e) { Image1.ImageUrl = TextBox.Text; }

            R Offline
            R Offline
            r a m e s h
            wrote on last edited by
            #5

            'Any path' means will the user select the path from his local PC? How does the user select the path, using a browser window? You can open a file open dialogbox using activex in javascript. But it will work in IE only. Also you cannot display images from a folder from the client PC. It should be available in the location of your web site.

            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