mw******@caldrywall.com wrote:
I am trying to display the value of a true/false value in my table
through the use of the following:
<input type=checkbox name=FieldLabCheck value=" &
objRecordset("FieldLaborSuper") & "></input>
it doesn't work though.... what am I doing wrong???
Failing to read up on html
(
http://msdn.microsoft.com/workshop/a...ode_entry.asp).
An input element with type ="checkbox" has an attribute called "checked",
the presence of which causes the checkbox to be ... well ... checked. I
would create a function that returns "checked" if passed a True boolean, and
"" if passed False:
%>
....
function SetCheckbox(arg)
if arg then
SetCheckbox="checked"
else
SetCheckbox=""
end if
end function
%>
<input type=checkbox name=FieldLabCheck
<%=SetCheckbox(cBool(objRecordset("FieldLaborSuper ") )) %> >
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"