473,471 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Database Results - Show checkbox

I am reading data from an MDB Access database into an ASP page. Four fields
in the database are Yes/No fields, and I want to show those on the ASP page
as check boxes. How do I do this?

The best I've been able to do so far is use some javascript code to print an
"X" if the value in the field is "true".

Any help appreciated.

Graham
Jul 22 '05 #1
2 1727
http://www.powerasp.com/content/code...-check-box.asp

you can slo get fancy and use a vbscript functions to more easily handle the
situation

"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:ez**************@TK2MSFTNGP15.phx.gbl...
I am reading data from an MDB Access database into an ASP page. Four
fields in the database are Yes/No fields, and I want to show those on the
ASP page as check boxes. How do I do this?

The best I've been able to do so far is use some javascript code to print
an "X" if the value in the field is "true".

Any help appreciated.

Graham

Jul 22 '05 #2
Thanks - that works great!

Graham

"Kyle Peterson" <kp*****@hotmail.com> wrote in message
news:eu*************@TK2MSFTNGP15.phx.gbl...
http://www.powerasp.com/content/code...-check-box.asp

you can slo get fancy and use a vbscript functions to more easily handle
the situation

"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:ez**************@TK2MSFTNGP15.phx.gbl...
I am reading data from an MDB Access database into an ASP page. Four
fields in the database are Yes/No fields, and I want to show those on the
ASP page as check boxes. How do I do this?

The best I've been able to do so far is use some javascript code to print
an "X" if the value in the field is "true".

Any help appreciated.

Graham


Jul 22 '05 #3

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

Similar topics

3
by: Eddie Biscomb | last post by:
I have a db of tens of thousands of entries. It's not too hard to pull all the entries and build a table that displays them one at a time, but in my case, that will be a huge waste of space. What...
3
by: Harold A. Mackey | last post by:
I'm having a time finding some examples of checkbox results in a database. I first tried setting up the fields as bit in the stored procedures. I have not been able to determine the output of a...
9
by: Pam Ammond | last post by:
I need the code to update the database when Save is clicked and a text field has changed. This should be very easy since I used Microsoft's wizards for the OleDBAdapter and OleDBConnection, and...
3
by: Imran Aziz | last post by:
Hello All, I display a list of entries with a checkbox against them using a repeater control bound to a database table. Based on the value of database table I want to either show the checkbox for...
1
by: snsit1 | last post by:
Hello - i am wondering if anyone can help, I am fairly new to javascript / html and am having difficulty getting selected options ticked using check boxes out to a .txt file and have another script...
2
by: BOS | last post by:
Hi there, I just create a form that contains name, Address, City, State, Zip, Question Checked box, and dropdown list selection for the user to fill-out the answer in the texbox, checkbox or...
0
by: TechnoAtif | last post by:
<?php include "dbconnect.php"; include "commonFunc.php"; ?> <!----------------------------------> <table width="80%" border="1" cellpadding="2" cellspacing="0"> <tr > <td...
1
Curtis Rutland
by: Curtis Rutland | last post by:
How To Use A Database In Your Program Part II This article is intended to extend Frinny’s excellent article: How to Use a Database in Your Program. Frinny’s article defines the basic concepts...
1
by: ghjk | last post by:
my php page has 7 check boxes. I stored checked values to database and retrive as binary values. This is the result array Array ( => 0 => 1 => 0 => 1 => 0 => 0 => 1 ) 1 means checked....
0
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
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,...
0
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.