RESPONSE.WRITE过时? [英] Response.Write outdated?

查看:137
本文介绍了RESPONSE.WRITE过时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近有一个面试,我做了一个的Response.Write介绍技术试验(+)。有人告诉我,这是老土,而现在有这样做的更好的方法。面试官就不细说了,所以我渴望知道他指的是。任何人有什么想法?

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?

推荐答案

的Response.Write是伟大的,如果的所有的页面上被它发送。我使用它时,我必须使用ASPX服务,我在飞行产生的非HTML文件。

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没有任何意义的。

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

这篇关于RESPONSE.WRITE过时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆