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!
Loading
Paruchuri KishorePosted Oct 26, 2009, 4:57 AM
Check whether this piece of code helps you.
Dim myEncoder As New System.Text.ASCIIEncoding
Dim bytes As Byte() = myEncoder.GetBytes("Hello")
Dim ms As MemoryStream = New MemoryStream(bytes)
WebBrowser1.DocumentStream = CType(ms, Stream)