473,396 Members | 1,891 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.

How can I preven an ASP page returnig response to client.

If I want to execute an ASP page and get NOTHING in return, no HTL Headers as well?

response.clear clears only the contents, but HTML Header is still returned.

Thanks for your time.

Adam
Jul 19 '05 #1
8 2071
REdirect to another page. Something has to be returned.

Ray at work

"Jazzis" <ma**@jazzis.com> wrote in message
news:e8**************************@posting.google.c om...
If I want to execute an ASP page and get NOTHING in return, no HTL Headers as well?
response.clear clears only the contents, but HTML Header is still returned.
Thanks for your time.

Adam

Jul 19 '05 #2
Or return a status code of 204...

IIRC it's something straignforward like Response.Status = 204 or
Response.StatusCode = 204

This HTTP status code tells the browser there's no new page to load. I've
used it in applications which save a user's selections to the server by
submitting a form, but don't reload the page.

FWIW, I first came across the idea some time ago when I was browsing free
music on MP3.com. I noticed that when I clicked "add to MyMP3" my selection
was saved without using frames or javascript--but the page I was looking at
didn't reload after the link was clicked. That made me wonder how they
dunnit, so I searched until I found out!

HTH,
Boris

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
REdirect to another page. Something has to be returned.

Ray at work

"Jazzis" <ma**@jazzis.com> wrote in message
news:e8**************************@posting.google.c om...
If I want to execute an ASP page and get NOTHING in return, no HTL
Headers as well?

response.clear clears only the contents, but HTML Header is still

returned.

Thanks for your time.

Adam


Jul 19 '05 #3
I don't want to redirect - this is something at the end of an application.

I want to have NO response at all (or rather to block response)?

Adam
REdirect to another page. Something has to be returned.

Ray at work

"Jazzis" <ma**@jazzis.com> wrote in message
news:e8**************************@posting.google.c om...
If I want to execute an ASP page and get NOTHING in return, no HTL Headers

as well?

response.clear clears only the contents, but HTML Header is still

returned.

Thanks for your time.

Adam

Jul 19 '05 #4
Dear Boris,

Thanks, this sounds good - I'll try it and let you know if it works
for me.

BTW where did you find a list of all the HTTP Status Codes and their
respective "meanings"?

It is: response.status="xxx message" (xxx=status code /
message=description)

Adam
Or return a status code of 204...

IIRC it's something straignforward like Response.Status = 204 or
Response.StatusCode = 204

This HTTP status code tells the browser there's no new page to load. I've
used it in applications which save a user's selections to the server by
submitting a form, but don't reload the page.

FWIW, I first came across the idea some time ago when I was browsing free
music on MP3.com. I noticed that when I clicked "add to MyMP3" my selection
was saved without using frames or javascript--but the page I was looking at
didn't reload after the link was clicked. That made me wonder how they
dunnit, so I searched until I found out!

HTH,
Boris

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
REdirect to another page. Something has to be returned.

Ray at work

"Jazzis" <ma**@jazzis.com> wrote in message
news:e8**************************@posting.google.c om...
If I want to execute an ASP page and get NOTHING in return, no HTL Headers
as well?
response.clear clears only the contents, but HTML Header is still returned.
Thanks for your time.

Adam


Jul 19 '05 #5

"Jazzis" <ma**@jazzis.com> wrote in message
news:e8**************************@posting.google.c om...
BTW where did you find a list of all the HTTP Status Codes and their
respective "meanings"?


This is what a google search on http status turned up (among other things
:] )

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

HTH
--
Peter

peterperiodjames2attescoperiodnet
Jul 19 '05 #6
OK Boris - thanks again! This seams to work nicely!

How about the other question I have about session time-out (see
separate thread)?

Also do you know any way to refresh page content without the infernal
flashing? I use innerHTML in JavaScript, but this works only for IE
and Netscape has no clue about this, but I want my application to be
cross-platform?

Any help appreciated.

Adam
"Boris Nikolaevich" <bo***@nikolaevich.mailshell.com> wrote in message news:<Or**************@TK2MSFTNGP11.phx.gbl>...
Or return a status code of 204...

IIRC it's something straignforward like Response.Status = 204 or
Response.StatusCode = 204

This HTTP status code tells the browser there's no new page to load. I've
used it in applications which save a user's selections to the server by
submitting a form, but don't reload the page.

FWIW, I first came across the idea some time ago when I was browsing free
music on MP3.com. I noticed that when I clicked "add to MyMP3" my selection
was saved without using frames or javascript--but the page I was looking at
didn't reload after the link was clicked. That made me wonder how they
dunnit, so I searched until I found out!

HTH,
Boris

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
REdirect to another page. Something has to be returned.

Ray at work

"Jazzis" <ma**@jazzis.com> wrote in message
news:e8**************************@posting.google.c om...
If I want to execute an ASP page and get NOTHING in return, no HTL Headers
as well?
response.clear clears only the contents, but HTML Header is still returned.
Thanks for your time.

Adam


Jul 19 '05 #7
The next phase of our project is to fold an email screen into our web
application. We can already send mail using JMail or SQL Server, what we
want to be able to do is work with POP3 mailboxes.

I've researched two products, so far, JMail's POP3 from www.dimac.net and
ASPPop, from www.serverobjects.com. Both look like they would do the job;
there doesn't appear on the surface to be any great difference between them.

But...(there's always a "but" isn't there?) I've contacted both companies
with questions and neither one has responded which makes me wonder if we
need to be doing business with either of them in the first place. Do any of
my colleagues out there have any experience with either product? Any
opinions, advice, or other products to try?

Thanks!

- Wm

William Morris
Product Development, Seritas LLC
Jul 19 '05 #8
Well Boris Nikolaevich, my initial enthusiasm was unfortunately cooled
down a bit later - here is the story.

Your solution works nicely until you use it as the last thing you do
in an application. For example you want to do some cleaning up at the
end of an application, which you do in a "clean.asp". Then invoke that
"clean.asp" on exit (for example ONUNLOAD) - you'll get a nasty
surprise - since your original window is already closed you get an
ugly empty window!

Adam

ma**@jazzis.com (Jazzis) wrote in message news:<e8**************************@posting.google. com>...
OK Boris - thanks again! This seams to work nicely!

How about the other question I have about session time-out (see
separate thread)?

Also do you know any way to refresh page content without the infernal
flashing? I use innerHTML in JavaScript, but this works only for IE
and Netscape has no clue about this, but I want my application to be
cross-platform?

Any help appreciated.

Adam
"Boris Nikolaevich" <bo***@nikolaevich.mailshell.com> wrote in message news:<Or**************@TK2MSFTNGP11.phx.gbl>...
Or return a status code of 204...

IIRC it's something straignforward like Response.Status = 204 or
Response.StatusCode = 204

This HTTP status code tells the browser there's no new page to load. I've
used it in applications which save a user's selections to the server by
submitting a form, but don't reload the page.

FWIW, I first came across the idea some time ago when I was browsing free
music on MP3.com. I noticed that when I clicked "add to MyMP3" my selection
was saved without using frames or javascript--but the page I was looking at
didn't reload after the link was clicked. That made me wonder how they
dunnit, so I searched until I found out!

HTH,
Boris

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
REdirect to another page. Something has to be returned.

Ray at work

"Jazzis" <ma**@jazzis.com> wrote in message
news:e8**************************@posting.google.c om...
> If I want to execute an ASP page and get NOTHING in return, no HTL

Headers
as well?
>
> response.clear clears only the contents, but HTML Header is still returned. >
> Thanks for your time.
>
> Adam

Jul 19 '05 #9

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

Similar topics

5
by: Aaron_TekRecycle.com | last post by:
Someone must have done this before?!? I have VBS code that will Enumerate all the Printers in the AD and Add the Printer Connection to the client... I'm just not a web developer so I need some...
10
by: James_101 | last post by:
My training piece is in Authorware. The user logs in with last name and a four-digit number. Authorware sends this user identifier to an asp page called db_read.asp. This file sends a SQL SELECT...
7
by: moondaddy | last post by:
I have a products catalogue that I'm putting online and there will be between 20 to 50 different pages of products. Each page contains a datagrid of products for a given category. However, the...
1
by: Mad Scientist Jr | last post by:
How do you get a ASP.NET page to return nothing, so the page posting form data to it doesn't reload? I have tried all combinations of the following: Response.SuppressContent = True...
6
by: MooreSmnith | last post by:
When I navigate to the next page using Response.Rediect("MyNextPage.aspx") current page Page_Load event is called. What I may wrongly understood is that post back will happen whenever there is any...
3
by: Shapper | last post by:
Hello, I am working on an ASP.NET/VB web site. I have several links including menu links. Considerer a want to load a page named page.aspx. I can do it using javascript. Or using this code:...
5
by: Homa | last post by:
Hi all, Can anyone give me some links about how to do an async web service call from aspx and display a temperary page before the web service returns? Thanks, Homa Wong
6
by: divya | last post by:
I have a page name edit.asp which should expire immediately .The user cannot open this page directly he has to provide a password for entering this page.thus when the user enters edit.asp , it has...
14
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.