创建一个空响应的页面 [英] Create a page with empty response
问题描述
我正在构建一个页面,需要接收一些参数并返回空白
页面(空响应)。
收到参数后我写道:
Response.clear
Response.End
当我运行页面时,我仍然会在执行查看源代码时获得一些HTML。在IE中:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN">
< HTML> ;< HEAD>
< META http-equiv = Content-Type content =" text / html;
charset = windows-1255">< / HEAD>
< BODY>< / BODY>< / HTML>
如何返回完整的空白页?
谢谢
ra294
在.aspx文件中只留下一行< %@ Page ...指令和
删除所有其余的。
-
Eliyahu Goldin,
软件开发人员&顾问
Microsoft MVP [ASP.NET]
http: //msmvps.com/blogs/egoldin
http://usableasp.net
" ra294" < ra *** @ hotmail.comwrote in message
news:%2 **************** @ TK2MSFTNGP06.phx.gbl ...
>我正在构建一个页面,需要接收一些参数并返回空白页面(空响应)。
之后我收到了我写的参数:
Response.clear
Response.End
当我运行页面时,我仍然得到一些做查看源时的html在IE中:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN">
< HTML> ;< HEAD>
< META http-equiv = Content-Type content =" text / html;
charset = windows-1255">< / HEAD>
< BODY>< / BODY>< / HTML>
如何返回完整的空白页?
谢谢
ra294
我刚做过正如你所提到但我在查看时仍然得到html代码
来源:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN">
< HTML>< HEAD>
< META http-equiv = Content-Type content =" text / html;
charset = windows-1255">< / HEAD>
< BODY>< / BODY>< / HTML>
>
还有其他想法吗?
谢谢
ra294
" Eliyahu Goldin" < RE ************************** @ mMvVpPsS.org写在
消息新闻:%2 *** ************* @ TK2MSFTNGP06.phx.gbl ...
在.aspx文件中只留下一行< ;%@ Page ...指令和
删除所有其余部分。
-
Eliyahu Goldin,>
软件开发人员&顾问
Microsoft MVP [ASP.NET]
http: //msmvps.com/blogs/egoldin
http://usableasp.net
" ra294" < ra *** @ hotmail.comwrote in message
news:%2 **************** @ TK2MSFTNGP06.phx.gbl ...
>>我正在构建一个页面,需要接收一些参数并返回空白页面(空响应)。
收到后我写的参数:
Response.clear
Response.End
当我运行页面时,我仍然在做查看源代码时得到一些HTML。在IE中:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN">
< HTML>< HEAD> >< META http-equiv = Content-Type content =" text / html;
charset = windows-1255">< / HEAD>
< BODY>< / BODY>< ; / HTML>
如何返回一个完整的空白页?
谢谢
ra294
ra294写道:
我就像你提到的那样,但我在查看时仍然会获得HTML代码
来源:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN" ;>
< HTML>< HEAD>
< META http-equiv = Content-Type content =" text / html;
charset = windows-1255">< / HEAD>
< BODY>< / BODY>< / HTML>
还有其他想法吗?
谢谢
ra294
我已经尝试了我能想到的一切,它或者仍然出现那些
行,或者(在一种情况下)它打开文件下载弹出窗口方框
然后下载一个空文件。
因此,似乎无法完全按照你的要求进行操作
for,告诉我们为什么你(以为你)需要这个确切的
行为,也许我们可以建议一些替代品?
达米恩
I am building a page that needs to recieve some parametes and return blank
page (empty response).
After I recieve the parametes I write:
Response.clear
Response.End
When I run the page I still get some html when doing "view source" in IE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1255"></HEAD>
<BODY></BODY></HTML>
How so return a completly blank page ?
Thanks
ra294解决方案In the .aspx file leave just one line with the <%@ Page ... directive and
delete all the rest.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ra294" <ra***@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...>I am building a page that needs to recieve some parametes and return blank
page (empty response).
After I recieve the parametes I write:
Response.clear
Response.End
When I run the page I still get some html when doing "view source" in IE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1255"></HEAD>
<BODY></BODY></HTML>
How so return a completly blank page ?
Thanks
ra294
I just did as you mentioned but I still get html code when doing view
source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1255"></HEAD>
<BODY></BODY></HTML>
Any other idea ?
Thanks
ra294
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2****************@TK2MSFTNGP06.phx.gbl...In the .aspx file leave just one line with the <%@ Page ... directive and
delete all the rest.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ra294" <ra***@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...>>I am building a page that needs to recieve some parametes and return blank
page (empty response).
After I recieve the parametes I write:
Response.clear
Response.End
When I run the page I still get some html when doing "view source" in IE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1255"></HEAD>
<BODY></BODY></HTML>
How so return a completly blank page ?
Thanks
ra294
ra294 wrote:
I just did as you mentioned but I still get html code when doing view
source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1255"></HEAD>
<BODY></BODY></HTML>
Any other idea ?
Thanks
ra294
I''ve tried everything I can think of, and it either still has those
lines appearing, or (in one case) it opens the file download popup box
and then downloads an empty file.
So given that it doesn''t seem possible to do exactly what you''ve asked
for, how about telling us why you (thought you) needed this exact
behaviour, and maybe we can suggest some alternatives?
Damien
这篇关于创建一个空响应的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!