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. Selecting Files

Selecting Files

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomquestionannouncement
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.
  • J Offline
    J Offline
    Joseph Dempsey
    wrote on last edited by
    #1

    I need to call the "standardish" windows type dialog box from some ASP.NET code. how would i go about this? My first lame attempt failed miserably when i tried to use System.Windows.Forms.OpenFileDialog class. It complained about some Messagebox options not being set but as far as i know those options can NOT be set from that dialog. Is there anyway i can get this box to popup? I have a feeling this is rather simple but i am no web developer. Just trying to survive through this stage of the my project ;) -- joe Joseph Dempsey joseph_r_dempsey@yahoo.com "What?, Of course its fireproof! ...... < 10 Minutes later in the ER > Sorry..." How about, "Bugs?, of course there are not bugs .... < 3 weeks after Production Release > Sorry..."

    N 1 Reply Last reply
    0
    • J Joseph Dempsey

      I need to call the "standardish" windows type dialog box from some ASP.NET code. how would i go about this? My first lame attempt failed miserably when i tried to use System.Windows.Forms.OpenFileDialog class. It complained about some Messagebox options not being set but as far as i know those options can NOT be set from that dialog. Is there anyway i can get this box to popup? I have a feeling this is rather simple but i am no web developer. Just trying to survive through this stage of the my project ;) -- joe Joseph Dempsey joseph_r_dempsey@yahoo.com "What?, Of course its fireproof! ...... < 10 Minutes later in the ER > Sorry..." How about, "Bugs?, of course there are not bugs .... < 3 weeks after Production Release > Sorry..."

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Use an input control of type file. That will give you a text box and button, clicking the button will display a fileopen dialog

      J 1 Reply Last reply
      0
      • N Not Active

        Use an input control of type file. That will give you a text box and button, clicking the button will display a fileopen dialog

        J Offline
        J Offline
        Joseph Dempsey
        wrote on last edited by
        #3

        Hmm... thanks. I just may have to resort to doing that though i was wondering if there is a way to do it without have the text box and button ( i want to supply my own button ). I ask because i am going to populate a list box with multiple file selctions using the file box. Any ideas? If i can't figure out how to do then i will just have resort to making new page using the single line approach. Joseph Dempsey joseph_r_dempsey@yahoo.com "What?, Of course its fireproof! ...... < 10 Minutes later in the ER > Sorry..." How about, "Bugs?, of course there are not bugs .... < 3 weeks after Production Release > Sorry..."

        N 1 Reply Last reply
        0
        • J Joseph Dempsey

          Hmm... thanks. I just may have to resort to doing that though i was wondering if there is a way to do it without have the text box and button ( i want to supply my own button ). I ask because i am going to populate a list box with multiple file selctions using the file box. Any ideas? If i can't figure out how to do then i will just have resort to making new page using the single line approach. Joseph Dempsey joseph_r_dempsey@yahoo.com "What?, Of course its fireproof! ...... < 10 Minutes later in the ER > Sorry..." How about, "Bugs?, of course there are not bugs .... < 3 weeks after Production Release > Sorry..."

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          I may be running into something similar. I want to prepopulate my file input control with a filename. Any ideas?

          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