473,508 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

choose only check box ?

Hi all,

I have two check boxes in my form namely "AcceptCheckBox" and the
"RejectChckBox" . basically these checkboxes are in every row of the
table
The first coloum contains the checkboxes having name as "AcceptChckBox"
and only their respective values differ.
The second colum contains the checkboxes having name as "RejectChckBox"
and only thier respective values differ.

Now, i want that .. only one of the checkboxes either "acceptchckbox"
or "RejectCheckBox" OF A PARTICULAR ROW, should be selected.

How can this be done ?

PS , dont say me to use array for checkboxes. I cant do that.
regards,
Gaurav

Jul 23 '05 #1
1 1215
On 22/06/2005 13:26, Gaurav wrote:

[snip]
Now, i want that .. only one of the checkboxes either "acceptchckbox"
or "RejectCheckBox" OF A PARTICULAR ROW, should be selected.


Then you should be using radio buttons. Use checkboxes when more than
one option can be selected, and radio buttons when you have a set of
exclusive options. You would need to alter the names so that they
identified with a particular row, and the value 'accept' and 'reject'
would probably be appropriate for the two different controls.

Alternatively, you could use a single checkbox that either represented
the option to accept (that is, checked means accept), or reject.

Programatically swapping the checked state of two checkboxes is not a
good idea.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2

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

Similar topics

2
1963
by: Ruthless | last post by:
Hello. I've got a question about xsl:choose I've got an element <person> with the sequence of <first_name><last_name><date_bith> and <info> and the info is not obligatory(minOccurs="0") ...
6
1934
by: Penny | last post by:
Hi all, I've built a simple search <Form> on a web page that is intended to allow the user to search a record store database. There is a drop down box where the user can choose either 'Artist'...
0
966
by: palo | last post by:
Hello I wrote a little script (that will be used only under Windows if at all) where the user should choose a directory and the script will then process some data files in the directory and write...
2
1267
by: AA Arens | last post by:
I have two tables, one consists of company info like name and phone number. Another table where I have to fill in the contact persons. Part of the form is to choose the company he works for (From...
74
3724
by: ljh | last post by:
Why would you choose SQL Express (which requires an installed application to work) over the simplicity of an Access database which has no dependencies?
7
2141
by: Marek Zawadzki | last post by:
Hi all, In your opinion: what is current status of frameworks for PHP and which one would you choose? I am looking for an all-purpose, MVC-based framework I could learn and use for all the...
5
1042
by: dancer | last post by:
I'm using ASP.Net and VB.net I have 18 choices - 18 checkboxes. The user can choose 1, a few, or all. What is the best structure to record and write the response? Select/Case statement? Or is...
0
1292
by: R2d2Rabeau | last post by:
Hi all, I have an application that manipulates excel files without any problem. The problem is for a certain folder where files are giving me an error: When I check those files Excel ask me to...
1
2620
by: =?Utf-8?B?SkxvYm8=?= | last post by:
How can i open a dialog box to choose a printer? -- JLobo
2
747
by: spowel4 | last post by:
I need a way for a user to click and choose a time, much like they can click and choose a date using a calendar. Can someone point me to a control or something else?
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.