Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 10, 2012 08:17 AM by rk.worlds
0 Points
1 Post
Nov 14, 2012 04:58 PM|LINK
I want to take everything in the output buffer and write it to a file.
My code below creates a file but the file only contains the word "True" instead of containing the content from the output buffer.
It should contain: "Hello Earth" instead of "True".
How can I write the content that is output to the browser to the file?
<%@ Page Language="VB" AutoEventWireup="false" %> <% Response.BufferOutput = true %> Hello <% Response.write("Earth") Dim outputData as String IO.File.WriteAllText(Server.MapPath("output.txt"), buffer.ToString()) %>
Member
24 Points
7 Posts
Dec 10, 2012 08:17 AM|LINK
http://aspalliance.com/71_Modifying_Page_Output
hknight555
0 Points
1 Post
Get All Content from Output Buffer
Nov 14, 2012 04:58 PM|LINK
I want to take everything in the output buffer and write it to a file.
My code below creates a file but the file only contains the word "True" instead of containing the content from the output buffer.
It should contain: "Hello Earth" instead of "True".
How can I write the content that is output to the browser to the file?
<%@ Page Language="VB" AutoEventWireup="false" %> <% Response.BufferOutput = true %> Hello <% Response.write("Earth") Dim outputData as String IO.File.WriteAllText(Server.MapPath("output.txt"), buffer.ToString()) %>rk.worlds
Member
24 Points
7 Posts
Re: Get All Content from Output Buffer
Dec 10, 2012 08:17 AM|LINK
http://aspalliance.com/71_Modifying_Page_Output