Solved

Checkbox value in ASP classic

Posted on 2009-05-14
3
1,180 Views
Last Modified: 2012-05-07
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

0
Comment
Question by:GDB08
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Wayne Barron earned 500 total points
ID: 24383781
try this

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

Carrzkiss
0
 

Author Closing Comment

by:GDB08
ID: 31581396
Thanks :-)
0
 
LVL 30

Expert Comment

by:Wayne Barron
ID: 24384199
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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now