Descrie about response.buffer and repsonse.flush ?

Answer Posted / sudhir sheoran

Respose.Buffer method is used to hold the output
at server side until response.flush/ respose.end
is called.

Server doesn't send response to the browser until
all scripts are executed at server side. It uses
reponser.buffer for that.

E.g:
<%response.Buffer=true%>
<html>
<body>
<p>I write some text, but I will control when
the text will be sent to the browser.</p>
<p>The text is not sent yet. I hold it back!</p>
<p>OK, let it go!</p>
<%response.Flush%>
</body>
</html>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the term Scavenging in Caching?

584


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

535


How do you handle server controls?

659


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

1950


How asynchronous call can be implemented using delegates?

545






How to find last error which occurred?

540


What are the types of session in asp.net?

528


How to find out what version of asp.net I am using on my machine?

585


Why is mvc better than asp.net?

535


Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

544


How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know

705


Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?

558


How to bind all the binding controls in a page at once in ASP.NET?

533


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

508


How do I open an ashx file in windows 7?

575