Solved

Checkbox value in ASP classic

Posted on 2009-05-14
3
1,181 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

18 Experts available now in Live!

Get 1:1 Help Now