Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Response.Write outdated?

Tags:

c#

asp.net

I recently had a techical test for a job interview where I did a Response.Write(). I was told that this was "old fashioned" and that there are better ways of doing this now. The interviewer wouldn't elaborate, so I'm keen to know what he was referring to. Anyone have any ideas?

like image 415
Gais Avatar asked May 29 '09 09:05

Gais


1 Answers

Response.Write is great, if everything on the page is sent by it. I use it when I have to use ASPX to serve non-HTML files that I generate on the fly.

Response.Write doesn't make any sense at all if you are using non-empty ASPX pages.

like image 62
Jonathan Allen Avatar answered Sep 24 '22 20:09

Jonathan Allen