Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Checkbox value in ASP classic

Posted on 2009-05-14
3
Medium Priority
?
1,200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Wayne Barron earned 2000 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 31

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

670 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