472,365 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,365 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 1292

"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> ...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.