[SOLVED] Presenting binary values

This is a discussion on "[SOLVED] Presenting binary values" within the Classic ASP section. This forum, and the thread "[SOLVED] Presenting binary values are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Dec 7th, 2004, 08:35
Anonymous User
Guest
Posts: n/a
[SOLVED] Presenting binary values

Based on a query on a SQL server, I can only get binary values to show as a text field 'FALSE' or 'TRUE'. How can I get it to show as something like a radio button instead?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Dec 7th, 2004, 10:29
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
show some code please
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Dec 7th, 2004, 17:13
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You need to use an if then statement to set the checked property of the radio button based on the value from your db.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Dec 7th, 2004, 17:50
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Code: Select all
<input type="radio"<% if mydbvalue then response.write " checked=""checked"" value="1" %> />
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
presenting, binary, values

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Saving values from checkboxes into MySql karinne PHP Forum 7 Jan 26th, 2008 16:58
Presenting product Craigj1303 Web Page Design 4 May 22nd, 2007 15:09
Setting Form Values to Previously Entered Values masonbarge PHP Forum 6 Oct 17th, 2006 17:36
Assign string values to integer values of a session variable Andy K Classic ASP 1 Jul 13th, 2005 08:29
Send Binary Data vor Classic ASP 1 Aug 21st, 2003 14:38


All times are GMT. The time now is 01:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved