Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2006
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Switching pages help please :)

    Hi,

    I have two pages on a shopping cart type database etc. The first page called Product.asp is where it shows you a more detailed description of the product your interested it. The second page i have just created and added to the shopping cart is called productprint.asp: this shows none of the background colors/images just the text.

    The trouble im having is that the product.asp page is used for more than one product so in the address bar it appears like this:

    http://www.mysite.com/product.asp?zo..._name=Original

    when i do that same link above but with productprint.asp i get the page that is setup up for printing. What i want to do is:

    On the product.asp page have a button that says print and when its pressed it replaces the product.asp with productprint.asp but it keeps all the stuff after product.asp so it is still printing that item.

    If anyone has any ideas that would be great

    Many thanks
    joe

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Append
    ?<%= Request.QueryString %>
    after the code for your button click.

    What's your code for the click look like right now?
    You should just be able to append to it, but it depends on exactly how you set it up. If you're using an entire form action, append to that instead.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/


  •  

    Posting Permissions

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