473,396 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Create a page with empty response

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
Jan 3 '07 #1
11 5055
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


Jan 3 '07 #2
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



Jan 4 '07 #3
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

Jan 4 '07 #4
Yes, I can observe it. It is strange to me since I do have an application
where it works. It is in 1.1 though. Could be this changed between the
versions? I will try to investigate more.

--
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***************@TK2MSFTNGP04.phx.gbl...
>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




Jan 4 '07 #5
Some more researching indicates that the possible culprit is the browser. In
my old working application the empty response arrives to an ActiveX control.
And if you get the response by some other means, not by the browser, it does
come empty.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:eX***************@TK2MSFTNGP06.phx.gbl...
Yes, I can observe it. It is strange to me since I do have an application
where it works. It is in 1.1 though. Could be this changed between the
versions? I will try to investigate more.

--
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***************@TK2MSFTNGP04.phx.gbl...
>>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




Jan 4 '07 #6
re:
>I still get html code when doing view source:
If basic html markup isn't sent to a browser, no browser will be able to read the page.
A browser needs the basic html markup sent to it if you want it to read the response.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"ra294" <ra***@hotmail.comwrote in message news:%2***************@TK2MSFTNGP04.phx.gbl...
>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




Jan 4 '07 #7
Juan,

Do you mean the browser substitutes a response that doesn't meet the minimal
requirements with the standard minimum? Or you are referring to the server
side?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uJ**************@TK2MSFTNGP03.phx.gbl...
re:
>>I still get html code when doing view source:

If basic html markup isn't sent to a browser, no browser will be able to
read the page.
A browser needs the basic html markup sent to it if you want it to read
the response.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"ra294" <ra***@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>>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




Jan 4 '07 #8
Hi, Eliyahu.

I'm referring to standard html emitted by the server.
All the ASP.NET engine does is send HTML markup to the browser, as you know.

It doesn't send anything else, so sending nothing is impossible.
If there is to be *something* received by the browser, it *must* be enclosed within html tags.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Juan,

Do you mean the browser substitutes a response that doesn't meet the minimal requirements with the
standard minimum? Or you are referring to the server side?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uJ**************@TK2MSFTNGP03.phx.gbl...
>re:
>>>I still get html code when doing view source:

If basic html markup isn't sent to a browser, no browser will be able to read the page.
A browser needs the basic html markup sent to it if you want it to read the response.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"ra294" <ra***@hotmail.comwrote in message news:%2***************@TK2MSFTNGP04.phx.gbl...
>>>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
>
>




Jan 4 '07 #9
Juan,

Browsers are not the only possible http clients. And http response is not
necessarily intended for displaying.

I have an application with an ActiveX control that http posts images to the
server. The control expects an empty response as an indicator of success.
Any non-empty response is considered as an error. So I made a page that
accepts images, saves them and returns nothing. Everyone is happy: the
control, me and the customer.

I think the browser is the one who inserts the standard empty html. Another
agent is IIS, but I don't think the IIS would bother to get involved into
the message content.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl...
Hi, Eliyahu.

I'm referring to standard html emitted by the server.
All the ASP.NET engine does is send HTML markup to the browser, as you
know.

It doesn't send anything else, so sending nothing is impossible.
If there is to be *something* received by the browser, it *must* be
enclosed within html tags.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
>Juan,

Do you mean the browser substitutes a response that doesn't meet the
minimal requirements with the standard minimum? Or you are referring to
the server side?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

>"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uJ**************@TK2MSFTNGP03.phx.gbl...
>>re:
I still get html code when doing view source:

If basic html markup isn't sent to a browser, no browser will be able to
read the page.
A browser needs the basic html markup sent to it if you want it to read
the response.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"ra294" <ra***@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
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
>>
>>
>
>




Jan 4 '07 #10
re:
Browsers are not the only possible http clients.
Agreed, but if a non-standard client was under consideration,
I'd expect that tidbit to be mentioned in the post, so I assumed
a browser was at the receiving end.

re:
http response is not necessarily intended for displaying
It either is displayed...or is written into the source ( like scripts are... ).
Either way, html markup is needed, isn't it ?

re:
ActiveX control
Easily done that way.

re:
I think the browser is the one who inserts the standard empty html.
I'll have to look into that. Do you have a reference ?

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message
news:uQ**************@TK2MSFTNGP02.phx.gbl...
Juan,

Browsers are not the only possible http clients. And http response is not necessarily intended for
displaying.

I have an application with an ActiveX control that http posts images to the server. The control
expects an empty response as an indicator of success. Any non-empty response is considered as an
error. So I made a page that accepts images, saves them and returns nothing. Everyone is happy:
the control, me and the customer.

I think the browser is the one who inserts the standard empty html. Another agent is IIS, but I
don't think the IIS would bother to get involved into the message content.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl...
>Hi, Eliyahu.

I'm referring to standard html emitted by the server.
All the ASP.NET engine does is send HTML markup to the browser, as you know.

It doesn't send anything else, so sending nothing is impossible.
If there is to be *something* received by the browser, it *must* be enclosed within html tags.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>Juan,

Do you mean the browser substitutes a response that doesn't meet the minimal requirements with
the standard minimum? Or you are referring to the server side?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

>>"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uJ**************@TK2MSFTNGP03.phx.gbl...
re:
>I still get html code when doing view source:

If basic html markup isn't sent to a browser, no browser will be able to read the page.
A browser needs the basic html markup sent to it if you want it to read the response.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"ra294" <ra***@hotmail.comwrote in message news:%2***************@TK2MSFTNGP04.phx.gbl...
>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
>>>
>>>
>>
>>
>
>




Jan 4 '07 #11
re:
>I think the browser is the one who inserts the standard empty html.

I'll have to look into that. Do you have a reference ?
No, I don't. This is just my guess based on some testing I managed to do. I
will be happy if you could either confirm or disprove it.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:ex**************@TK2MSFTNGP03.phx.gbl...
re:
>Browsers are not the only possible http clients.

Agreed, but if a non-standard client was under consideration,
I'd expect that tidbit to be mentioned in the post, so I assumed
a browser was at the receiving end.

re:
>http response is not necessarily intended for displaying

It either is displayed...or is written into the source ( like scripts
are... ).
Either way, html markup is needed, isn't it ?

re:
>ActiveX control

Easily done that way.

re:
>I think the browser is the one who inserts the standard empty html.

I'll have to look into that. Do you have a reference ?

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uQ**************@TK2MSFTNGP02.phx.gbl...
>Juan,

Browsers are not the only possible http clients. And http response is not
necessarily intended for displaying.

I have an application with an ActiveX control that http posts images to
the server. The control expects an empty response as an indicator of
success. Any non-empty response is considered as an error. So I made a
page that accepts images, saves them and returns nothing. Everyone is
happy: the control, me and the customer.

I think the browser is the one who inserts the standard empty html.
Another agent is IIS, but I don't think the IIS would bother to get
involved into the message content.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl...
>>Hi, Eliyahu.

I'm referring to standard html emitted by the server.
All the ASP.NET engine does is send HTML markup to the browser, as you
know.

It doesn't send anything else, so sending nothing is impossible.
If there is to be *something* received by the browser, it *must* be
enclosed within html tags.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
Juan,

Do you mean the browser substitutes a response that doesn't meet the
minimal requirements with the standard minimum? Or you are referring to
the server side?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uJ**************@TK2MSFTNGP03.phx.gbl...
re:
>>I still get html code when doing view source:
>
If basic html markup isn't sent to a browser, no browser will be able
to read the page.
A browser needs the basic html markup sent to it if you want it to
read the response.
>
>
>
>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"ra294" <ra***@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl. ..
>>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
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Jan 4 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: | last post by:
Please help. After a number of wrong turns and experiments I need advice on login management system to secure our web pages without inconveniencing our visitors or our internal staff. What I...
2
by: qaz | last post by:
I have login links on a number of pages in my site. Some of the pages expect variables on the querystring. I want to be able to login from any of these pages. The login link redirects me to a...
2
by: sam martin | last post by:
why doesn't IE6 show the response from this page as XML? is the contenttype wrong? Basically, i've got an "empty" aspx page (barring the precompiler line <%@ Page language="c#"...
9
by: Paul | last post by:
What I am trying to do is as follows. I have a page with 3 links,that direct the user to 3 different pages when selected after login. So all link selections will first direct the user to a login...
13
by: tshad | last post by:
I have some nested DataGrids in my Datalist. There could be 20 datalist items. If I scroll down to the 18th item and expand it to show the DataGrid, the page always goes back to the beginning...
3
by: Miguel Dias Moura | last post by:
Hello, I am calling an ASP.NET / VB as follows: search.aspx?search=asp%20book%20london Then I create a string with the keywords like this: Dim keywords() As String =...
3
by: Peter | last post by:
Hello! Please, could you tell me, is it possible to create and stream for example a text file to the browser so that the file is not stored anywhere on a hard drive? User click's a link, eg....
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
6
Soniad
by: Soniad | last post by:
Hello, I am excecuting a stored procedure in my ASP page , it has one out parameter (@confirm) . after executing the procedure i want to retreive this out parameter and assign it to variable...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.