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. File Dialog in Web Forms ??

File Dialog in Web Forms ??

Scheduled Pinned Locked Moved C#
questioncsharpasp-nethelp
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 developed a WEB Forms page using C#. One of the bottons in the page says: Select File. When clicking this, I need to show a File Dialog showing files of client machine, once selected the file the program will open it and read data line by line. For File Dialog, I need the "using System.Windows.Forms;" but as I am using WEB forms, program does not allow me to include ....Windows.Forms. How can I solve this problem? Is there an special File Dialog in Web Forms?? best regards

    T 1 Reply Last reply
    0
    • R Rostrox

      I developed a WEB Forms page using C#. One of the bottons in the page says: Select File. When clicking this, I need to show a File Dialog showing files of client machine, once selected the file the program will open it and read data line by line. For File Dialog, I need the "using System.Windows.Forms;" but as I am using WEB forms, program does not allow me to include ....Windows.Forms. How can I solve this problem? Is there an special File Dialog in Web Forms?? best regards

      T Offline
      T Offline
      Tomas Petricek
      wrote on last edited by
      #2

      You can't show FileDialog on client's computer with Asp.Net... If you want user to choose file use html input with type set to file. <input type="file" ..>

      Tomáš Petříček  :baaaa!: Asp.Net Popup control www.eeeksoft.net

      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