473,383 Members | 1,829 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,383 software developers and data experts.

Tri-State Check Box

I need to make a tri-state check box. (It's values will be off,
checked-always on, or 1-run once)

Would I be correct in assuming the best way to do this is to make some kind
of custom control that displays a "checkbox". The control would have JS in
it to change a graphic image that represents the box. If this is the case,
how would I read in the selected value once the form is posted? I'm
planning on having a couple on the same form and I really don't want to
autopost when each box is clicked on...too much overhead...

Thanks.

-Rob T.
Nov 18 '05 #1
2 1588
Use the JS to set a hidden field with an appropriate value.

-Cam

Rob T wrote:
I need to make a tri-state check box. (It's values will be off,
checked-always on, or 1-run once)

Would I be correct in assuming the best way to do this is to make some kind
of custom control that displays a "checkbox". The control would have JS in
it to change a graphic image that represents the box. If this is the case,
how would I read in the selected value once the form is posted? I'm
planning on having a couple on the same form and I really don't want to
autopost when each box is clicked on...too much overhead...

Thanks.

-Rob T.

Nov 18 '05 #2
Good idea...I could program the control to create a hidden field (with a
unique ID) for each checkbox...then just have a little routine to loop
through all the Request.Form items....

Thanks.

"cameron" <ca****************@appdepot.com> wrote in message
news:On**************@TK2MSFTNGP11.phx.gbl...
Use the JS to set a hidden field with an appropriate value.

-Cam

Rob T wrote:
I need to make a tri-state check box. (It's values will be off,
checked-always on, or 1-run once)

Would I be correct in assuming the best way to do this is to make some kind of custom control that displays a "checkbox". The control would have JS in it to change a graphic image that represents the box. If this is the case, how would I read in the selected value once the form is posted? I'm
planning on having a couple on the same form and I really don't want to
autopost when each box is clicked on...too much overhead...

Thanks.

-Rob T.

Nov 18 '05 #3

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

Similar topics

0
by: Christian Hammers | last post by:
Hello I would like to call a unix shellscript from within a PHP script and - write data to its STDIN - read data from its STDOUT *and* STDERR - get its exit code afterwards proc_open seems...
0
by: Mitch Amiano | last post by:
Tri-XML 2005 is on for July 28-30th, in Raleigh, NC. The conference index is at <http://www.trixml.org/confindex.shtml>. Curious readers can get an idea of the conference from a review of...
7
by: Lyle Fairfield | last post by:
I suppose something like this may have been posted before. I am unaware of it. It's intended to duplicate the gradient filter that MS provides in their manifestation of CSS. Yes, I know it...
11
by: Kevin D. Quitt | last post by:
At least, when you're hungry. -- #include <standard.disclaimer> _ Kevin D Quitt USA 91387-4454 96.37% of all statistics are made up Per the FCA, this address may not be added to any...
2
by: spleen | last post by:
Hiya, Im a newbie to C so please excuse my ignorance... Ok, so I have several C files, with my functions in, one has main in of course! and I have 2 structs as outside of the funtions...
2
by: Alexander Hunziker | last post by:
Hello everybody, I'm trying to program a linked list, but unfortunately it segfaults when I run the program. The code is basically the same as one can find in several places in the internet....
0
by: 455 | last post by:
Hello all. Sorry if this question gets a little long. I've been having real trouble with this problem mostly because I can't get a solid piece to start from. I'm new to C# (was previously a...
12
by: freqzz | last post by:
i got a little proble to implement memory allocation using array. Here's the situation, i got a sample data stored in textfile: tri1 (1,7,1) (2,8,2) (3,7,3) tri2 (2,8,2) (5,7,5) (3,7,3) tri3...
8
by: freqzz | last post by:
#include <windows.h> #include <gl\gl.h> #include <gl\glut.h> #include <stdlib.h> #include <math.h> #include <vector> #include <iostream.h> #include <fstream.h> #include <stdio.h>
13
by: Cell | last post by:
I have structures like this in my program - typedef vector vectorstruct { double x, y,z; } vector; typedef struct verticesstruct { vector v;
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.