What is the difference between Response.Write() and Response.Output.Write() ?

 Posted by Bharathi Cherukuri on 3/28/2012 | Category: ASP.NET Interview questions | Views: 3875 | Points: 40
Answer:

Both the commands are used to display the output on the screen.

Response.Write() is used to display a single line output.

Response.Output.Write() is used to display a formatable output.

Example:

Response.Write("Hi");

Response.Output.Write("x={0},y={1},x,y");


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response