开发者

what is diffrence between Response.write and Response.output.write

开发者 https://www.devze.com 2022-12-27 14:30 出处:网络
what is difference between Response.write and Response.output开发者_StackOverflow社区.write please give me exampleResponse.Output.Write allows you to format the string before outputting, Response.Writ

what is difference between Response.write and Response.output开发者_StackOverflow社区.write please give me example


Response.Output.Write allows you to format the string before outputting, Response.Write simply writes it out as is.

Response.Write will output exactly what you pass in.

Response.Output exposes the underlying TextWriter, so Response.Output.Write has many more overloads, some with String.Format functionality.


There is no difference. Response.Write is a convenience accessor to Response.Output.Write.

You could have found out this by yourself if you installed reflector and looked up the class HttpResponse (in the assembly System.Web).

0

精彩评论

暂无评论...
验证码 换一张
取 消