Groups | Blog | Home
all groups > inetserver asp general > august 2003 >

inetserver asp general : stay on the submitting page



webmaster NO[at]SPAM databyggarna.com
8/3/2003 3:38:33 PM
Hi
Maybee a little bit of topic, but is it possible to stay on the
submitting page once you've clicked submit.
This is to get processing done on page B when you submit on page A,
and the page should not change. Normally I use a response.redirect to
the submitting page, but that can't be done in one case.
Mats
PS I've found that one solution is to send Response.Status = "204 No
Response"
Ray at <%=sLocation%
8/3/2003 6:54:24 PM
What is the reason that you cannot redirect to page A after processing on
page B?

You can post to page A right from page A and delete page B altogether, if
you like.

Ray at home

--
Will trade ASP help for SQL Server help


[quoted text, click to view]

webmaster NO[at]SPAM databyggarna.com
8/4/2003 1:47:16 AM
Has to do with frames. The page you submit to puts the goods in the
cart.
A simple way to make a webshop is a two frame solution with the menu
to the left and the main content in the main frame to the right.
ASP is serverside and does not know anything about frames. If there is
a redirect to the "main shop page" (which is what happens in the shop)
this page will appear outside its frame.
Also it is not possible to have a path in a redirect, something like
.../some_folder/some_page (beleive me, I've tested)
Both factors are important.
This combined makes me want to stay on the submitting page
Mats
[quoted text, click to view]
webmaster NO[at]SPAM databyggarna.com
8/4/2003 7:13:54 AM
To Ray, this is posted through Google not Developersdex, so the order
of messages will probably be wrong.
1) Why not in frame - because it is submitted outside the frame.
2) path in redirect - I was wrong, it works. What does not work
however is to use a (vbscript) variable containing the path.
On submit a hidden form field submits the path. Neither
Request.form("path") nor a_variable = Request.form("path") works, and
that was what I tested.
Mats
PS any chans you know how to reload the frameset.asp page when
submitting an article to the cart? (one of these extras can be
Ray at <%=sLocation%
8/4/2003 8:42:17 AM

[quoted text, click to view]

How would you redirect outside of the frame, unless you have a target
specified for your form, which you shouldn't?


[quoted text, click to view]

Please try testing again. You can redirect to "../some_folder/some_page"
just fine.

Ray at work

AddThis Social Bookmark Button