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. OpenFileDialog..,,,ASP.net

OpenFileDialog..,,,ASP.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netgraphicshelptutorial
3 Posts 3 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.
  • V Offline
    V Offline
    vtalau
    wrote on last edited by
    #1

    Hi... I have some questions about ASP.net: 1> My example has a file field control and an Image control, and I want to show the bitmap on the Image control after choosing the filepath of the bitmap through the File Field control. please give me some advices... 2> I want my web-page getting a Button and a Listbox. The scenario is like following : step 1-I click the Button and the OpenFileDialog show. step 2-After chosen by me, the file is added into the ListBox with its path-name. step 3-I can select multi files by repeating the step 1 & 2. As a result, the ListBox shows a lot of path-names. However, I always think of selecting many file in the OpenFileDialog at the same time. Up to now, I haven't solved it. Help me,please...Thanks a lot

    G 1 Reply Last reply
    0
    • V vtalau

      Hi... I have some questions about ASP.net: 1> My example has a file field control and an Image control, and I want to show the bitmap on the Image control after choosing the filepath of the bitmap through the File Field control. please give me some advices... 2> I want my web-page getting a Button and a Listbox. The scenario is like following : step 1-I click the Button and the OpenFileDialog show. step 2-After chosen by me, the file is added into the ListBox with its path-name. step 3-I can select multi files by repeating the step 1 & 2. As a result, the ListBox shows a lot of path-names. However, I always think of selecting many file in the OpenFileDialog at the same time. Up to now, I haven't solved it. Help me,please...Thanks a lot

      G Offline
      G Offline
      gnjunge
      wrote on last edited by
      #2

      Well, you cannot really access the computer on the client side (out of security reasons), so showing the contents of the client side pc, in the same way as OpenFileDialog does is not possible. However, if you know your client is using IE and gives your site certain security rights, it might be possible to use the FileSystem (I'm not sure anymore about the name) object in javascript. Then in js you can build something like the OpenFileDialog. But once again, this is only IE compatible, and I'm not sure if this will really work.

      E 1 Reply Last reply
      0
      • G gnjunge

        Well, you cannot really access the computer on the client side (out of security reasons), so showing the contents of the client side pc, in the same way as OpenFileDialog does is not possible. However, if you know your client is using IE and gives your site certain security rights, it might be possible to use the FileSystem (I'm not sure anymore about the name) object in javascript. Then in js you can build something like the OpenFileDialog. But once again, this is only IE compatible, and I'm not sure if this will really work.

        E Offline
        E Offline
        ericms
        wrote on last edited by
        #3

        Try the some thing like the following:

        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