Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is the main use of Response.Output.Write()?

Answers were Sorted based on User's Feedback



What is the main use of Response.Output.Write()?..

Answer / psetty

To write formatted output Response.Output.Write() function
is used.

Is This Answer Correct ?    23 Yes 3 No

What is the main use of Response.Output.Write()?..

Answer / varun

In ASP.NET the Response object is of type HttpResponse and
when you say Response.Write you're really saying
(basically) HttpContext.Current.Response.Write and calling
one of the many overloaded Write methods of HttpResponse.

Response.Write then calls .Write() on it's internal
TextWriter object:

public void Write(object obj){ this._writer.Write(obj);}

HttpResponse also has a Property called Output that is of
type, yes, TextWriter, so:

public TextWriter get_Output(){ return this._writer; }

Which means you can to the Response whatever a TextWriter
will let you. Now, TextWriters support a Write() method
ala String.Format, so you can do this:

Response.Output.Write("Scott is {0} at
{1:d}", "cool",DateTime.Now);

But internally, of course, this this is happening:

public virtual void Write(string format, params object[]
arg)
{
this.Write(string.Format(format, arg));
}

Is This Answer Correct ?    10 Yes 1 No

What is the main use of Response.Output.Write()?..

Answer / varun

The difference between Response.Write() and
Response.Output.Write() in ASP.NET. The short answer is
that the latter gives you String.Format-style output and
the former doesn't. The long answer follows.

Is This Answer Correct ?    9 Yes 2 No

What is the main use of Response.Output.Write()?..

Answer / bhuuuuuuuu

IT is all useless

Is This Answer Correct ?    1 Yes 1 No

Post New Answer



More ASP.NET Interview Questions

What is Active Directory? What is the namespace for that?

2 Answers  


Describe a diffgram ? Write any one use of that?

3 Answers   Siebel,


What are the types of caching in asp.net?

0 Answers  


What is the use of location tag in web.config file

2 Answers   Karur Vysya Bank KVB,


What Are Different Types of Debbugers

2 Answers   Accenture, TCS, Wipro,






What is datagrid asp.net?

0 Answers  


How do you get records number from 5 to 15 from a dataset of 100 records?

3 Answers   Syntax Softtech,


WHAT IS THE SEQUENCE IN WHICH ASP.NET EVENTS IS PROCEED?

4 Answers  


How do you define authentication in Web.Config?

2 Answers   Patni,


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

0 Answers  


what are the advantage in asp.net and what are the question ask for interview in vb.net and asp.net

0 Answers   TCS,


What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

2 Answers  






Categories