473,320 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

checkbox and two variables

Hi All,

I need to assciate two varaibles dyanmically in value of the checkbox.
How can I do that?

For ex., I have the following:

<td><input type='checkbox' name='chk<%=i%>' value='<%=rs("Field1")%>'>

Above, I need to add second fields value from database in value
property of the checkbox.

I will highly appreciate your help.

Thanks a million in advance.
best regards,
mamun

Aug 5 '06 #1
2 1324

"microsoft.public.dotnet.languages.vb" <ma******@hotmail.comwrote in
message news:11**********************@h48g2000cwc.googlegr oups.com...
Hi All,

I need to assciate two varaibles dyanmically in value of the checkbox.
How can I do that?

For ex., I have the following:

<td><input type='checkbox' name='chk<%=i%>' value='<%=rs("Field1")%>'>

Above, I need to add second fields value from database in value
property of the checkbox.
It's not clear what you want. On the face of it you want the one check box
to have two values. That doesn't make sense. Either the value of the check
box is bound to Field1 or Field2 but it can represent both (unless there are
always the same value in which case just show one and assing both when the
form is posted).
I will highly appreciate your help.

Thanks a million in advance.
best regards,
mamun

Aug 5 '06 #2
Anthony Jones wrote on 05 aug 2006 in
microsoft.public.inetserver.asp.general:
"microsoft.public.dotnet.languages.vb" <ma******@hotmail.comwrote in
message news:11**********************@h48g2000cwc.googlegr oups.com...
>Hi All,

I need to assciate two varaibles dyanmically in value of the
checkbox. How can I do that?

For ex., I have the following:

<td><input type='checkbox' name='chk<%=i%>'
value='<%=rs("Field1")%>'>

Above, I need to add second fields value from database in value
property of the checkbox.

It's not clear what you want. On the face of it you want the one
check box to have two values. That doesn't make sense. Either the
value of the check box is bound to Field1 or Field2 but it can
represent both (unless there are always the same value in which case
just show one and assing both when the form is posted).
value='<% = rs("Field1") & "-" & rs("Field2") %>'

??

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Pete | last post by:
I have some session variables which get set on page one of my site. I can set an unset these by passing through a parameter in some URL's. When the user goes to the second page some checkboxes are...
12
by: zig | last post by:
I've posted this on alt.comp.lang.coldfusion, but is predominantly a javascript problem: I have a CF query which returns several rows of records. I wanted to have a checkbox on each record of...
4
by: Jack | last post by:
Hi, I have a checkbox the value which goes to a database via a asp page that builds the sql string. In the front end asp page, the checkbox code is written as follows: <i><input...
3
by: MarkVan | last post by:
I am pretty new to ASP. HTML Page <input type="checkbox" name="chkStat" value="" checked>Low ASP Page chkCheck = request.form("chkStat") response.write chkCheck I get nothing? How do I...
5
by: Darren | last post by:
I have an asp page populated by a sql database. I am using stored procs with Dreamweaver. I know very little Javascript but think that it will help me in this case. I am using a repeating...
6
by: Daz | last post by:
Hi everyone. Firstly, I apologise if this i not what you would call a PHP problem. I get quite confused as to what lives in which realm, so if this shouldn't be posted here, please suggest where...
4
by: Charlotte | last post by:
Hi, I have a problem with a ASP-script, can somewone help me ? here is what I've got: mypage.asp : .... code ... <%
4
by: ATDave | last post by:
So basically I'm just creating a form that I want the results e-mailed to somebody. I have everything working except for the checkmark sections that can have multiple answers. I'm a newbie when...
6
by: thenagus | last post by:
I am working on a youth rights website, and while working on the membership application, I receive an datatype mismatch error. I have pinpointed the error to be related to checkbox values. All...
4
by: CF FAN | last post by:
I want to validate this two checkbox variables on an action page and also an update page <cfinput type="checkbox" name="gender"checked> </label></td> <td>Female</td> ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.