asp syntax

Results 1 to 4 of 4

Thread: asp syntax

  1. #1
    kmk Guest

    Default asp syntax

    what is the correct syntax for redirecting to another page passing variable value combination????<BR> should this be in quotes?<BR>should the value/variable pair be in quotes??? <BR>mypage.asp?V1=V1Value&V2=V2Value&Vr3=Vr3Value& Vr4=V4Value<BR><BR>Thanks!!!

  2. #2
    Join Date
    Dec 1969

    Default RE: asp syntax

    &#060;%<BR>Response.Redirect("mypage.asp?V1=V1Valu e&V2=V2Value&Vr3=Vr3Value&Vr4=V4Value")<BR>%&#06 2;

  3. #3
    Mark Guest

    Default RE: asp syntax

    If V1Value, V2Value, V3Value, V4Value are parameters (not values), I suggest that you use Server.URLEncode(V1Value) to make sure that each parameter is properly formatted for URL requirements.<BR>e.g.<BR>&#060;%<BR>Dim strRedirect<BR>strRedirect = "mypage.asp?V1=" & Server.URLEncode(V1Value) & "&V2=" & Server.URLEncode(V2Value"<BR>Response.Redirect(str Redirect)<BR>%&#062;

  4. #4
    khm Guest

    Default RE: asp syntax

    Yes these are parameters passed. <BR> Server.URLEncode. Is this the best way to handle this situation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts