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

What is viewstate? What does the “enableviewstate” property do?

508


What are the file extensions for razor views?

664


What are web server controls in asp.net?

543


What are the different types of events are occured when a client requests an ASP.NET page from IIS server?

574


What is application Object?

586






What are type/key pairs in client script registration?

556


Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

528


How to make paging concepts in datagrid in ASP.NET?

545


Why session is used in asp.net?

522


How many types of sessions are there in asp net?

516


To redirect the user to another page which method do we use without performing a round trip to the client?

526


What is a windows service?

550


What is state management in asp.net with example?

452


How can u deifne the benefits and limitation of using Viewstate for state management?

697


What are the different method of navigation in asp.net?

560