Value of Checkbox Set to two fields 
Author Message
 Value of Checkbox Set to two fields

Hi,

I have a table on my ASP page that is dynamically generated depending on the
parameters the user sets (the values they enter in input boxes).  The first
column of this table is a checkbox followed by a few more fields.  The checkbox:

'I can't copy and paste my code (% and HTML tags) because it comes out jarbled in
the posting so I'm simplifying...

name=Choose value=rsDistro.Fields("sku").Value" type=checkbox

As you see above the value of the checkbox column is only set to one field, the
sku field.  This is a problem since there are two primary keys that make a unique
record in this recordset (order_date and sku).  How do I set the value of the
checkbox to both primary keys?

(
Background on why I'm trying to figure out the above:
I'm writing client-side javascript and server-side VBScript.  Once I figure this
out I want to be able to update this record:

Dim intSKU, dtOrderDate, sql
intSKU = Request.Form("sku")
dtOrderDate = Request.Form("order_date")
...
sql = "UPDATE table1 SET qty = intQty WHERE sku = intSKU and order_date =
dtOrderDate"
...
)

Thank you for any help you can give.

Lynn



Mon, 20 Oct 2003 07:22:51 GMT  
 Value of Checkbox Set to two fields
Hi

Seperate the values with a comma for example
and take it from there

value='" + rs("bla1") + "," + rs("bla2") + "'

--
--
Best Regards
  Vidar Petursson
 ==============================
   Microsoft Internet, Client, SDK MVP
 ==============================
 http://www.icysoft.com
 http://www.dna.is



 ==============================
  No matter where you go there you are
 ==============================
--


Hi,

I have a table on my ASP page that is dynamically generated depending on the
parameters the user sets (the values they enter in input boxes).  The first
column of this table is a checkbox followed by a few more fields.  The
checkbox:

'I can't copy and paste my code (% and HTML tags) because it comes out
jarbled in
the posting so I'm simplifying...

name=Choose value=rsDistro.Fields("sku").Value" type=checkbox

As you see above the value of the checkbox column is only set to one field,
the
sku field.  This is a problem since there are two primary keys that make a
unique
record in this recordset (order_date and sku).  How do I set the value of
the
checkbox to both primary keys?

(
Background on why I'm trying to figure out the above:
I'm writing client-side javascript and server-side vbscript.  Once I figure
this
out I want to be able to update this record:

Dim intSKU, dtOrderDate, sql
intSKU = Request.Form("sku")
dtOrderDate = Request.Form("order_date")
...
sql = "UPDATE table1 SET qty = intQty WHERE sku = intSKU and order_date =
dtOrderDate"
...
)

Thank you for any help you can give.

Lynn



Mon, 20 Oct 2003 17:19:16 GMT  
 Value of Checkbox Set to two fields
Thanks!!
Quote:
-----Original Message-----
Hi

Seperate the values with a comma for example
and take it from there

value='" + rs("bla1") + "," + rs("bla2") + "'

--
--
Best Regards
  Vidar Petursson
 ==============================
   Microsoft Internet, Client, SDK MVP
 ==============================
 http://www.icysoft.com
 http://www.dna.is



 ==============================
  No matter where you go there you are
 ==============================
--



Hi,

I have a table on my ASP page that is dynamically generated depending on the
parameters the user sets (the values they enter in input boxes).  The first
column of this table is a checkbox followed by a few more fields.  The
checkbox:

'I can't copy and paste my code (% and HTML tags) because it comes out
jarbled in
the posting so I'm simplifying...

name=Choose value=rsDistro.Fields("sku").Value" type=checkbox

As you see above the value of the checkbox column is only set to one field,
the
sku field.  This is a problem since there are two primary keys that make a
unique
record in this recordset (order_date and sku).  How do I set the value of
the
checkbox to both primary keys?

(
Background on why I'm trying to figure out the above:
I'm writing client-side javascript and server-side vbscript.  Once I figure
this
out I want to be able to update this record:

Dim intSKU, dtOrderDate, sql
intSKU = Request.Form("sku")
dtOrderDate = Request.Form("order_date")
....
sql = "UPDATE table1 SET qty = intQty WHERE sku = intSKU and order_date =
dtOrderDate"
....
)

Thank you for any help you can give.

Lynn

.



Tue, 21 Oct 2003 03:01:07 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Displaying text/input field depending on checkbox value

2. compare two fields values

3. checking for a null value of a field (in an ado recordset set) with jscript /

4. Setting a dynamic value in a text field

5. setting value of hidden form field with mozilla

6. I am trying to feed a text field with data from two other fields

7. Making hidden fields visible based on a form field value

8. can't assign a value to the (field.value)

9. checkbox check populates hidden field

10. SQL 7.0 Bit Field/ASP Form Checkbox

11. Locking checkbox field

12. Form validation: comparing two text fields

 

 
Powered by phpBB® Forum Software