What?s the difference between Response.Write()
andResponse.Output.Write()?
Answers were Sorted based on User's Feedback
Answer / guest
The latter one allows you to write formatted output.
| Is This Answer Correct ? | 53 Yes | 10 No |
Answer / rahul
Response.Output.Write() allows you to write formatted output
| Is This Answer Correct ? | 36 Yes | 5 No |
Response.write - it writes the text stream
Response.output.write - it writes the HTTP Output Stream.
They are used to display output text in formatted manner as
below
Response.Write() output fotmat :
Response.Write"<h1>" & iTimer & "</h1>"
Response.Output.Write() output format :
Response.Output.Write("<h2>Process running as {0}</h2>",
WindowsIdentity.GetCurrent().Name);
| Is This Answer Correct ? | 33 Yes | 11 No |
Answer / priya
response.output.write allows String.Format style output and
the response.write doesn't
For example : Response.Output.Write("{0:d}", "Current Date
Time is: ",DateTime.Now);
| Is This Answer Correct ? | 26 Yes | 9 No |
Answer / mallikarjun.b.a
Response.Write it is used to display the normal output But
Response.OutPut.write it is used to display the formated
Output
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / atul yadav
response.write() just writes/displays the text or string on the web page. response.output.write() formats the string in the format specified before displaying it on the web page .
| Is This Answer Correct ? | 4 Yes | 1 No |
How do you associate two or more validators with a single input control? What do you need to do to prevent space from being reserved for a validation control thatpasses its validation test?
What is the difference between web config and machine config files?
What is tracing? Where is it used?
What is server redirect?
Briefly describe different techniques for ASP.NET State Management?
6 Answers Deloitte, Syntax Softtech,
Which protocol is used in a web api?
Define the term Web Garden?
0 Answers Sans Pareil IT Services,
What’s difference between “optimistic” and “pessimistic” locking?
How much data (Max K) can go into a QueryString?
Do I need to have the latest version of windows media player installed?
what is state management?
Can you explain the importance of finalize method in .net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)