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. Asp.net 2.0 dynamically writing a .html file

Asp.net 2.0 dynamically writing a .html file

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netsysadminhelp
5 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.
  • J Offline
    J Offline
    Jason_Shen
    wrote on last edited by
    #1

    Does anyone know how asp.net 2.0 can dynamically write a .html file without saving it to the server. Can you stream a file down to the browser, anything.html, without anything.html physically being on the hard drive? I hope this makes sense. Note:I want to create a completely seperate page with its own unique url only existing in the users' browser with its own name. Any help or hint would be appreciated!

    C P 2 Replies Last reply
    0
    • J Jason_Shen

      Does anyone know how asp.net 2.0 can dynamically write a .html file without saving it to the server. Can you stream a file down to the browser, anything.html, without anything.html physically being on the hard drive? I hope this makes sense. Note:I want to create a completely seperate page with its own unique url only existing in the users' browser with its own name. Any help or hint would be appreciated!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You seem to want to write a http handler, so that you can redirect a url like www.mysite.com/myuser to a URL which generates the page this fictional URL is pretending to point to.

      Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

      J 1 Reply Last reply
      0
      • C Christian Graus

        You seem to want to write a http handler, so that you can redirect a url like www.mysite.com/myuser to a URL which generates the page this fictional URL is pretending to point to.

        Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

        J Offline
        J Offline
        Jason_Shen
        wrote on last edited by
        #3

        Thank you for so quick reply! I don't want to write a http handler.

        C 1 Reply Last reply
        0
        • J Jason_Shen

          Thank you for so quick reply! I don't want to write a http handler.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Then you are utterly, utterly screwed. A HTTP Handler is both trival to write in ASP.NET and the ONLY way for the browser to point to a page that does not exist, and yet return something.

          Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

          1 Reply Last reply
          0
          • J Jason_Shen

            Does anyone know how asp.net 2.0 can dynamically write a .html file without saving it to the server. Can you stream a file down to the browser, anything.html, without anything.html physically being on the hard drive? I hope this makes sense. Note:I want to create a completely seperate page with its own unique url only existing in the users' browser with its own name. Any help or hint would be appreciated!

            P Offline
            P Offline
            Perry Holman
            wrote on last edited by
            #5

            Maybe below codes can give you some inspiration! function onpreviewsomething(content) { var win_preview = window.open("", "_blank", ""); win_preview.document.open('text/html', 'replace'); win_preview.opener = null; win_preview.document.writeln(content); win_preview.document.close(); return false; }

            Welcome to www.softwaretree.net! You can find many excellent audio/video converter tools there!

            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