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
%>

<% 
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
%>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.