Passing 2 IDs back to an ASP

Results 1 to 4 of 4

Thread: Passing 2 IDs back to an ASP

  1. #1
    Janeen Guest

    Default Passing 2 IDs back to an ASP

    I need to be able to pass 2 IDs (GroupID and CategoryID) back to an ASP page after modifying/deleting a record. I&#039;ve no problem passing the CategoryID back but can&#039;t manage to get both back.<BR>Here&#039;s my code: What should go in to GroupID=<BR><BR>Response.Redirect "cat.asp?GroupID="CategoryID=" & Request.QueryString("CategoryID")<BR><BR>I&#039;ve tried it with GroupID=" &Request.QueryString("GroupID") but it didn&#039;t work.

  2. #2
    Eddie Campbell Guest

    Default RE: Passing 2 IDs back to an ASP

    You are not setting a value for GroupId, and you also need to delimit the querystring with &&#039;s to seperate the various values.<BR><BR>Response.Redirect "cat.asp?GroupID=" & Request.QueryString("GroupId") & "&CategoryID=" & Request.QueryString("CategoryID")<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Passing 2 IDs back to an ASP

    Values that are being passed back are separated with an Ampersand, so it should be something like:<BR>response.redirect "cat.asp?GroupID=" & Request("GroupID")& "&CategoryID="&Request("CategoryID")

  4. #4
    Janeen Guest

    Default Thanks

    Thanks, that sorted it out a treat.

Posting Permissions

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