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. General Programming
  3. C#
  4. Display svg file in browser

Display svg file in browser

Scheduled Pinned Locked Moved C#
csharpasp-nethelptutorial
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
    rajeshbhushetty
    wrote on last edited by
    #1

    Hello, I am new to C# and asp.net. I want to display a svg file which in created in one of folder on local machine. Please can anybody help with the code how to set the response object to display the svg file also taking the local path in to consideration. Regards Rajesh B

    T P 2 Replies Last reply
    0
    • R rajeshbhushetty

      Hello, I am new to C# and asp.net. I want to display a svg file which in created in one of folder on local machine. Please can anybody help with the code how to set the response object to display the svg file also taking the local path in to consideration. Regards Rajesh B

      T Offline
      T Offline
      tom572007
      wrote on last edited by
      #2

      How do you want to display your file. Searching files into a folder is a very basic task. Easy to find an answer in googling. Regards

      R 1 Reply Last reply
      0
      • T tom572007

        How do you want to display your file. Searching files into a folder is a very basic task. Easy to find an answer in googling. Regards

        R Offline
        R Offline
        rajeshbhushetty
        wrote on last edited by
        #3

        I want to diplay it in same way as when you open it in browser or firefox. it should look like an image.

        1 Reply Last reply
        0
        • R rajeshbhushetty

          Hello, I am new to C# and asp.net. I want to display a svg file which in created in one of folder on local machine. Please can anybody help with the code how to set the response object to display the svg file also taking the local path in to consideration. Regards Rajesh B

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          What you have asked, is more an ASP.NET issue than a C# one. I will say, though, that you would probably not want to set the response object, rather you could direct the user to a page which would display the SVG using a method similar to one of these[^].

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          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