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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. FileDialog in WEB forms application

FileDialog in WEB forms application

Scheduled Pinned Locked Moved C#
questioncsharpasp-netwinforms
2 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.
  • R Offline
    R Offline
    Rostrox
    wrote on last edited by
    #1

    I have a WEB form associated to a C#. One of my issues is to show a file Dialog for choosing a file and process it. How can I get this using a Web Development? In Windows forms it is clear.

    H 1 Reply Last reply
    0
    • R Rostrox

      I have a WEB form associated to a C#. One of my issues is to show a file Dialog for choosing a file and process it. How can I get this using a Web Development? In Windows forms it is clear.

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Use the <input type="file"> tag in your ASPX page (or other HTML file). Then read the .NET SDK Documentation about HttpRequest.Files. That gives you a collection of HttpPostedFile objects that you can save to disk. It's a nice little wrapper but isn't necessary if you don't want to use it. All form data is passed as "multipart/form-data" so it's just a matter of handling multiple segments in a MIME document. I'd recommend the wrapper classes, though - they make it much easier.

      -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

      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