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 May 9th, 2005, 06:04 AM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Special CheckBox Problem

Hi,

In a Shopping Cart there is a following CheckBox:

  <input name="pd<%=localCart( CARTPID, i )%>" type="checkbox" value="1">Delete</td>

If the CheckBox is “checked” the Client can update the Quantity with a Button.

Haw can I verify, that this Checkbox “checked” is?

The following didn’t works!

 If request("pd<%=localCart( CARTPID, i )%>") = "on" THEN

Could you help me to solve the problem?

Thanks


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

I think the code should be:

<%
If request("pd" & localCart( CARTPID, i )) = "on" THEN
.
.
.
end if
%>





Om Prakash
 
Old May 18th, 2005, 03:40 AM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Om Prakash!
For
If request("pd" & localCart( CARTPID, i ))= "on" THEN

I receive the following Massage:

Fehlertyp:
Laufzeitfehler in Microsoft VBScript (0x800A0009)
Index außerhalb des gültigen Bereichs: 'i'
/art/sessioncart.asp, line 595

keyquestion

 
Old May 19th, 2005, 01:12 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Hi,

 I am not clear with the error description, but please check whether u are getting value in localCart( CARTPID, i )

Om Prakash
 
Old May 24th, 2005, 06:31 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If request("pd" & localCart( CARTPID, i ))= "on" THEN

everything in the above code is okay except thing you are comparing with...
it should be like this since you have put in "1" on as value of your checkbox

If request("pd" & localCart( CARTPID, i ))= "1" THEN







Similar Threads
Thread Thread Starter Forum Replies Last Post
checkbox problem sarvesh189 ADO.NET 1 March 21st, 2005 03:44 AM
Checkbox problem peterB Access VBA 3 February 20th, 2005 05:17 AM
storing special special characters in nvarchar... ACE2084 SQL Server 2000 2 February 9th, 2005 11:45 AM
HELP!!! the problem of handling special character kemin Classic ASP Databases 1 December 13th, 2003 01:31 PM
CheckBox Insert Problem blink Classic ASP Databases 1 September 4th, 2003 12:34 PM





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