What?s the difference between Response.Write()
andResponse.Output.Write()?

Answer Posted / kvnvani

Response.write - it writes the text stream
Response.output.write - it writes the HTTP Output Stream.

They are used to display output text in formatted manner as
below
Response.Write() output fotmat :
Response.Write"<h1>" & iTimer & "</h1>"
Response.Output.Write() output format :
Response.Output.Write("<h2>Process running as {0}</h2>",
WindowsIdentity.GetCurrent().Name);

Is This Answer Correct ?    33 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

509


What is windows active directory authentication?

567


What is directive in asp net?

539


What are the two Layouts supported by a Web form in ASP.NET?

548


What are the Types of object in asp

633






Give some salient points of difference between request processor and request dispatcher.

613


Can we use html in asp.net?

498


Why is global asax is used for?

514


Differentiate the session object and application object?

531


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

562


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

619


How can you send an email message from an asp.net web page?

521


Explain cookies with example.

553


Explain about asp.net state management?

611


Web API supports which protocol?

850