Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
DWMC Dynamic checkboxes
Old 07-14-2005, 01:00 PM DWMC Dynamic checkboxes
VegaLA's Avatar
Skilled Talker

Posts: 64
Trades: 0
Hi all,
having problems getting some checkboxes to display values from a sql server DB.
I have 3 checkboxes on a form, and the first record has two of them checked and the middle one empty so

Chk1 = 1
chk2 = 0
chk3 = 1
but they all display unchecked when I test the asp file.
The checkbox properties are as below.

chk1
checked value = checkbox
Dynamic - check if : <%= (rstConcept.Fields.Item("chk1").Value) %>
Equal to : 1

chk2
checked value = checkbox
Dynamic - check if : <%= (rstConcept.Fields.Item("chk2").Value) %>
Equal to : 1

chk3
checked value = checkbox
Dynamic - check if : <%= (rstConcept.Fields.Item("chk3").Value) %>
Equal to : 1

Any help welcomed...
VegaLA is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-15-2005, 12:25 AM
Kaiman's Avatar
Extreme Talker

Posts: 237
Trades: 0
Try posting to the ASP SQL forum for Windows DB issues or the PHP MySQL forum for 'Nix issues.

Kaiman

Storm King Design
Computer Repair and Networking - Glenwood Springs, CO
Kaiman is offline
Reply With Quote
View Public Profile
 
Old 07-15-2005, 02:48 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,381
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
<input type="checkbox" name="chkN" id="chkN" value="X"
<%
if rstConcept.Fields("chkN") = true then
response.write " checked=" & chr(34) & "checked" & chr(34)
end if
%>
/>
coded assuming XHTML
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to DWMC Dynamic checkboxes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11457 seconds with 12 queries