ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is the main use of Response.Output.Write()?
 Question Submitted By :: Psetty
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the main use of Response.Output.Write()?
Answer
# 1
To write formatted output Response.Output.Write() function 
is used.
 
Is This Answer Correct ?    11 Yes 1 No
Psetty
 
  Re: What is the main use of Response.Output.Write()?
Answer
# 2
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 ?    6 Yes 1 No
Varun
 
 
 
  Re: What is the main use of Response.Output.Write()?
Answer
# 3
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 ?    6 Yes 1 No
Varun
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what is NET Framework ? TCS4
About writting a query and SP which is better ? Satyam2
write six HTTP request method? IBM2
Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one?  1
what if we delete web.config or machine.config? will a website work if we delete webconfig....or if we delete machine config? TCS2
what is reference type to value type. AG-Technologies2
How many classes can a single .NET DLL contain?  6
Describe the two main components of the .NET framework ?  1
main difference between asp.net2.0,asp.net1.1,asp.net1.0 Microsoft14
How do you implement postback with a text box? What is postback and usestate?  1
What are the disadvantages of view state / what are the benefits?  2
When maintaining session through Sql server, what is the impact of Read and Write operation on Session objects? will performance degrade..  2
What is three major points in WCF?  4
What is the difference between application and cache variables? Astadia2
What is State Management in .Net and how many ways are there to maintain a state in .Net?  5
what is diffrent between asp & asp.net  2
In which interface the template of any control like Gridview would Initiate?  2
What combination of methods are used to improve the speed of the fill() method of the DataAdapter? a) BeginFillData() and EndFillData() b) StartFillData() and EndFillData() c) BeginLoadData() and EndLoadData() d) StartLoadData() and EndLoadData() Syntax-Softtech2
Define an assembly?  6
how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance? TCS2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com