0

Hi,
I am trying to access the database and try to retieve the value .But i have a number of check boxes and i have to display the value depending on whether it is true or false and then mark check box accordingly .
so how can i do it .

eg
<%
Do While not recSet.EOF

Response.write ("<type=""checkbox"" > <% If recSet(varaible)=1 then mark checked % > "</checkbox>" ) ' can i do this or is there a better way of doing .

Loop
%>

2
Contributors
1
Reply
2
Views
12 Years
Discussion Span
Last Post by afgmail
0
<% 
Do While not recSet.EOF
  Response.write ("<type=""checkbox"" >")
  If recSet(variable)=1 then
    Response.Write(" checked") 
  End If
  Response.Write("</checkbox>")
Loop
%>

Hi,
I am trying to access the database and try to retieve the value .But i have a number of check boxes and i have to display the value depending on whether it is true or false and then mark check box accordingly .
so how can i do it .

eg
<%
Do While not recSet.EOF

Response.write ("<type=""checkbox"" > <% If recSet(varaible)=1 then mark checked % > "</checkbox>" ) ' can i do this or is there a better way of doing .

Loop
%>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.