Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Redirection question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00821930
Message ID:
00821959
Vues:
34
Hi Nadya,
I'm not sure I follow your question...
Did my original post not make sense? Like I said I'm new to ASP, so I may not be saying things right...and we know my code is wrong...

on page3.asp I have a html FORM
the Form tag is
<FORM ID="frmRDCST3" NAME="frmRDCST3" ACTION="page5.asp?redirect=page3.asp" METHOD="post">
When the user clicks the submit button the form does it's "post"
and goes to page5.asp

On page5.asp I can read all the form data with my
Request.Form("FormFieldName")
and I can read the redirect on the querystring with my
Request.QueryString("redirect")

What I'm having trouble with is passing the value of
Request.QueryString("redirect")
thru to another page... page6.asp

I'm trying to do that within a redirect command
When I do it this way it does not work
Response.Redirect("page6.asp?reason=at+least+one+field+is+NULL&redirect=Request.QueryString(\"redirect\")")
When I do it this way it works
Response.Redirect("page6.asp?reason=at+least+one+field+is+NULL&redirect=page3.asp")
but I'd rather not hardcode the page name ("page3.asp")

Am I making any sense?
Rick

-------------------
>Hi Rick,
>
>I may be wrong, but it seems to me that you are messing two different methods. If you use "POST" method, you should use Form collection, if you're using "GET" method, you should use QueryString. What is the problem?
>
>>I'm new to ASP and I'm having a problem with redirection.
>>
>>On "page3.asp", I have a form and it's post action has a querystring that contains information for subsequent pages to use to jump back to "page3.asp".
>>
>><FORM ID="frmRDCST3" NAME="frmRDCST3" ACTION="page5.asp?redirect=page3.asp" METHOD="post">
>>
>>
>>On "page5.asp", I validate the data from "page3.asp" and either redirect back to "page3"
>>
>>Response.Redirect(Request.QueryString("redirect"))
>>
>>
>>or jump to "page6"
>>
>>Response.Redirect("page6.asp?reason=at+least+one+field+is+NULL&redirect=page3.asp")
>>
>>
>>What I'd like to do, what I'm having trouble with,
>>is to pass the QueryString("redirect") thru to "page6.asp",
>>rather than hardcoding it as it is now.
>>
>>When I try
>>
>>Response.Redirect("page6.asp?reason=at+least+one+field+is+NULL&redirect=Request.QueryString(\"redirect\")")
>>
>>
>>I get an error
>>
>>Error Type:
>>Microsoft VBScript compilation (0x800A03EE)
>>Expected ')'
>>/rick/RDC_f_cookie_session_table5.asp, line 37, column 132
>>
>>
>>what am I doing wrong?
>>or, better yet,
>>how do I get it to work?
>>
>>TIA,
>>Rick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform