Checkbox value in ASP classic

I'm trying to display the value of checkbox on an admin page where people can click a checkbox to make current record active.

The checkbox is always empty though the first value is true but all the others are false.
<input type="checkbox" name="Active" value= "true" <%if rs("Active") = "true" Then %>checked<% End If %>
 
If I just do rs(Active) I get the corrcet values.  I need to get the checkboxes selected if the value is true.

Open in new window

GDB08Asked:
Who is Participating?
 
Wayne BarronConnect With a Mentor Author, Web DeveloperCommented:
try this

<input type="checkbox" name="SaleCheck"<% If rs("Active") Then Response.Write "checked=""checked""" %> />

Carrzkiss
0
 
GDB08Author Commented:
Thanks :-)
0
 
Wayne BarronAuthor, Web DeveloperCommented:
You are very welcome.
I use to have problems with dealing with Checkbox, so when I see an opertunity
To help someone out with similuar issues as I have had, I jump at the oppertunity.

Have a good one.

Carrzkiss

Author Comments:
Thanks :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.