Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2005, 09:17 AM
Registered User
 
Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing values to another page

i have a problem with the following coding:

<a href="EditCart.asp?cartid=<% rs("cartid")%>&quantity=txtQuantity.Value">

in EditCart.asp page, i enable to retrieve the cartid value correctly however it is empty for the quantity value.

could you guys help me to solve the problem.

thanks

 
Old February 4th, 2005, 01:13 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

I think u need some javascript to do this.. which will pass txtQuantity.Value in the next page.


Om Prakash
 
Old February 5th, 2005, 05:02 AM
Registered User
 
Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by om_prakash
 I think u need some javascript to do this.. which will pass txtQuantity.Value in the next page.


Om Prakash
how to pass the value to another page using javascript?

 
Old February 5th, 2005, 02:00 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

<a href="javascript:Test('EditCart.asp?cartid=<% rs("cartid")%>');">

Javascript function can be:

function Test(path)
{
  window.location.href=path + '&quantity='+ document.yourformname.txtQuantity.value);

}



Om Prakash





Similar Threads
Thread Thread Starter Forum Replies Last Post
Data access page help. passing feild values [email protected] Access 0 November 26th, 2006 05:29 PM
Passing values between Asp to Aspx page jayaraj General .NET 2 May 25th, 2004 01:16 AM
Passing values between Asp to Aspx page jayaraj VS.NET 2002/2003 2 May 23rd, 2004 06:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.