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. Transfer of XML

Transfer of XML

Scheduled Pinned Locked Moved C#
csharpsysadminxml
4 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.
  • R Offline
    R Offline
    RoadieGS
    wrote on last edited by
    #1

    I have a C# .Net application which generates a XML file on the web server when the user clicks on a button. After that file is produced, I need to be able to push that xml file to the client machine (preferably with an open dialog box so the user can choose the destination). I am thinking this can be done with Response.Write, but I have not been successful. Thanks.

    C L 2 Replies Last reply
    0
    • R RoadieGS

      I have a C# .Net application which generates a XML file on the web server when the user clicks on a button. After that file is produced, I need to be able to push that xml file to the client machine (preferably with an open dialog box so the user can choose the destination). I am thinking this can be done with Response.Write, but I have not been successful. Thanks.

      C Offline
      C Offline
      Cadence2 0
      wrote on last edited by
      #2

      You could use the WebClient class Try this: string URL = "http://www.somesite.com/filename.fileExtention"; string localLoc = "C:\\filename.fileExtention"; System.Net.WebClient c = new System.Net.WebClient(); c.DownloadFile(URL,localLoc); You could use a browse dialog for the location to save the directory. Hope that helps, K

      -K

      C 1 Reply Last reply
      0
      • C Cadence2 0

        You could use the WebClient class Try this: string URL = "http://www.somesite.com/filename.fileExtention"; string localLoc = "C:\\filename.fileExtention"; System.Net.WebClient c = new System.Net.WebClient(); c.DownloadFile(URL,localLoc); You could use a browse dialog for the location to save the directory. Hope that helps, K

        -K

        C Offline
        C Offline
        Cadence2 0
        wrote on last edited by
        #3

        On second thoughts, I do not think this would work as you are writing from server to client. That's something I didn't register the 1st time around. oops. Sorry.

        -K

        1 Reply Last reply
        0
        • R RoadieGS

          I have a C# .Net application which generates a XML file on the web server when the user clicks on a button. After that file is produced, I need to be able to push that xml file to the client machine (preferably with an open dialog box so the user can choose the destination). I am thinking this can be done with Response.Write, but I have not been successful. Thanks.

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          Response.WriteFile()

          **

          xacc.ide-0.2.0.50 - now with partial MSBuild support!

          **

          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