Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Checkbox value in ASP classic

Posted on 2009-05-14
3
Medium Priority
?
1,202 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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/…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses

971 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