Re: posting to server but staying on same page

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: wk6pack (wkwan_at_sd61.bc.ca)
Date: 02/20/04


Date: Fri, 20 Feb 2004 12:19:33 -0800

What you said is correct. That is what I'm doing.

If I use Response.redirect("score.asp") I still dont get the form variables.
If I use meta tag <meta http-equiv=""refresh"" content=""1;url=score.asp""
/>
I dont get them either. Is there a way to get them after I process the
submitted form?
You said something to do with client side scripting, how would I use this?

I agree about using GET method.

thanks,
Will

"Peter Foti" <peter@Idontwantnostinkingemailfromyou.com> wrote in message
news:103cj50djqd554b@corp.supernews.com...
> "wk6pack" <wkwan@sd61.bc.ca> wrote in message
> news:uw$hee99DHA.2324@tk2msftngp13.phx.gbl...
> > Hi Peter,
> >
> > That was my original intention. The users prefer to have that do
nothing.
> > Since you need to submit the form, I'm trying to submit the form and
then
> > have the next form either redirect back or using meta tags to
> automatically
> > bring that original page back.
> >
> > The form that I am submitting, needs values from the previous page.
>
> How are those values passed to the form? You will likely need to
duplicate
> this method when you redirect back to this page.
>
> > These
> > values then create a sql statement and populate the page. When I submit
> the
> > form to another asp to do the processing on the server, I then come back
> to
> > the form that was submitted but it doesnt seem to remember any of the
> values
> > on that page even though I have them hidden on the asp page that is
> > returned.
>
> I'm not sure what you mean here. It sounds like you have:
>
> 1 page containing a form, form is submitted to page 2, which uses the
> submitted values from the first form to create a new form. Form 2 submits
> to page 3, which redirects back to page 2, but none of the form items are
> being passed correctly back to page 2 from page 3.
>
> Does that describe the problem?
>
> I suspect you are doing something like this:
> Page 1 submits the form using method POST. Page 2 gets the values from
the
> Request.Form collection. Thus, when page 3 redirects back, there is no
> Request.Form collection. Unfortunately, there's no good way to to pass
the
> Request.Form collection back without using client side script to submit a
> form. You might be able to use method GET, and pass the form back in the
> query string, but I generally try to avoid using GET to pass form data.
>
> An alternative might be to redirect back to page 1.
>
> -Peter
>
>
>



Relevant Pages

  • Re: posting to server but staying on same page
    ... > That was my original intention. ... > The form that I am submitting, needs values from the previous page. ... this method when you redirect back to this page. ... > form to another asp to do the processing on the server, ...
    (microsoft.public.inetserver.asp.general)
  • Re: redirection on IIS
    ... I did setup the seocnd site but dont know ... how to redirect that, can someone help me on that? ... >> There is no setting for site2 on our new web server any ...
    (microsoft.public.inetserver.iis)
  • Re: Javascriptcode
    ... If you go to the ASP.NET website, check out the QUICKSTARTS tutorials. ... Peter ... after submitting the correct information) verify that ... If he/she hasn't how can I redirect the user ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Well, I finally heard back from Tor...
    ... might be moving back south in a few months, ... submitting at all. ... places will sign up a domain name and redirect it for $20 a year. ... Best is to let them know the snailmail address will change. ...
    (rec.arts.sf.composition)
  • Re: [PHP] Changing the Action attribute of Form
    ... before submitting the form. ... PHP: submit the result to a dispatcher script that'll redirect to ...
    (php.general)