Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Switching pages help please :)
02-13-2007, 12:23 PM #1
- Join Date
- Jun 2006
- Thanked 0 Times in 0 Posts
Switching pages help please :)
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:
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
02-13-2007, 02:02 PM #2
- Join Date
- Jun 2005
- Near Chicago, IL, USA
- Thanked 32 Times in 31 Posts
?<%= 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/