|
 |
asp_web_howto thread: Checkbox help please....
Message #1 by TL Jackson <actionjackson@a...> on Sun, 23 Dec 2001 04:16:34 -0500
|
|
>I was wondering if anybody can help me on this. I know it's simple but I
>been at this for several hours. I have a database with a field called
>"pro_done" which is a "yes/no" box. I'm trying to call this field up and
>determine if it's checked or not. If it is checked then I want it to
>display that on the page in a checkbox. If you take a look at this
>page: http://access.nku.edu/auto/admin/viewrequest.asp You will see a
>"Yes" by each of the boxes that has a check in the database. I get this
>by the following code:
'<td width="20%" align="center"><input type="checkbox" name="done"
value="1"><% If rs("pro_done") then Response.Write "Yes"%></td>
But I'm not looking for it to put the word "Yes" next to the box. I'm
looking for it to check the box. So, can anybody help me?
T.L.
Message #2 by "Paul R Beaulieu" <paulbeaulieu@s...> on Sun, 23 Dec 2001 10:18:17 -0500
|
|
Javascript...
document.formname.checkboxname.checked = true
This will force the checkmark to display in the checkbox.
Paul.
-----Original Message-----
From: TL Jackson [mailto:actionjackson@a...]
Sent: December 23, 2001 4:17 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Checkbox help please....
>I was wondering if anybody can help me on this. I know it's simple but I
>been at this for several hours. I have a database with a field called
>"pro_done" which is a "yes/no" box. I'm trying to call this field up and
>determine if it's checked or not. If it is checked then I want it to
>display that on the page in a checkbox. If you take a look at this
>page: http://access.nku.edu/auto/admin/viewrequest.asp You will see a
>"Yes" by each of the boxes that has a check in the database. I get this
>by the following code:
'<td width="20%" align="center"><input type="checkbox" name="done"
value="1"><% If rs("pro_done") then Response.Write "Yes"%></td>
But I'm not looking for it to put the word "Yes" next to the box. I'm
looking for it to check the box. So, can anybody help me?
T.L.
$subst('Email.Unsub').
Message #3 by TL Jackson <actionjackson@a...> on Mon, 24 Dec 2001 13:13:09 -0500
|
|
I fixed the problem. The problem wasn't in the original file. It was in
my include files.
T.L.
|
|
 |