Query String Question

Results 1 to 2 of 2

Thread: Query String Question

  1. #1
    Join Date
    Dec 1969

    Default Query String Question

    Hi all.<BR><BR>I am using a Response.Redirect to have a user to enter some information before being allowed to see a page.<BR><BR>The initial page is: index.asp?Client=Client<BR><BR>I use the following to check a session variable in the global.asa:<BR><BR>If Session("bolInfo") = False Then<BR> Response.Redirect "info.asp?" & Request.ServerVariables("SCRIPT_NAME") & "?Client=" & strClient<BR>End If<BR><BR>Result:<BR>info.asp?/applications/search/admin/index.asp?Client=Client<BR><BR>As you can see, the URL above has two ? in it. So, when I try to use Request.QueryString("Client") to get the value of Client, it comes back blank.<BR><BR>Any suggestions for this?<BR><BR>Thanks!<BR><BR>Chris

  2. #2
    shm Guest

    Default RE: Query String Question

    Try this:<BR>Response.Redirect "info.asp?Path=" & Request.ServerVariables("SCRIPT_NAME") & "?Client=" & strClient<BR><BR>instead of: <BR><BR>Response.Redirect "info.asp?" & Request.ServerVariables("SCRIPT_NAME") & "?Client=" & strClient

Posting Permissions

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