Asp.net 2.0 dynamically writing a .html file
-
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!
-
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!
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 )
-
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 )
Thank you for so quick reply! I don't want to write a http handler.
-
Thank you for so quick reply! I don't want to write a http handler.
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 )
-
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!
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!