Response.write() is used to display the normal text and Response.output.write() is used to display the formated text.
Response.write - it writes the text stream.
Response.Write("<h1>"+ DateTime.Now.Tostring() + "</h1>");
Response.output.write - it writes the HTTP Output Stream.
Response.Output.Write("<h2>Process running as {0}</h2>",WindowsIdentity.GetCurrent().Name);
As per ASP.NET 3.5, Response.Write has 4 overloads, while Response.Output.Write has 17 overloads.
No comments:
Post a Comment