Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 28-03-2009
Member
 
Join Date: Jan 2009
Posts: 22
How to Build a Dynamic Checkbox ?

How to Build a Dynamic Checkbox ? I want to populate checkbox dynamically in ASP

Can anyone know coding for this ?


Thanks
Reply With Quote
  #2  
Old 28-03-2009
Member
 
Join Date: May 2008
Posts: 29
Re: How to Build a Dynamic Checkbox ?

This code will help you populate your checkbox dynamically and will show you a customized message based on your selection.

Code:
<html>
<body>
You have a form with checkboxes that you want to populate dynamically. Here's one way... 

<%orderStatus = Request.Form("status")
'taking the value of status
<form action="process.asp" action="post">
<input type="checkbox" name="status" value=1 >
<% If orderStatus = "1" Then Response.Write "CHECKED" %>>Car<br>
'checking the value if it is one writing that you had checked car
<input type="checkbox" name="status" value=2 >
<% If orderStatus = "2" Then Response.Write "CHECKED" %>>Scooter<br>
'checking the value if it is two writing that you had checked scooter <input type="checkbox" name="status" value=3 >
<% If orderStatus = "3" Then Response.Write "CHECKED" %>>None<br>
</form>


The value of orderStatus determines which checkbox was checked.
</body>
</html>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Build a Dynamic Checkbox ?"
Thread Thread Starter Forum Replies Last Post
CheckBox in SilverLight KALYAN23 Software Development 6 17-08-2010 05:19 PM
Flash CheckBox in Flex AARON Carter Windows Software 6 15-07-2010 11:24 AM
Hidden Checkbox Grayed Out Waman Operating Systems 3 22-10-2009 11:21 AM
add Checkbox in Ms Excel spreadsheet Novino Windows Software 4 02-09-2009 09:43 PM
Input Type Checkbox raviranch Software Development 5 14-04-2009 03:07 PM


All times are GMT +5.5. The time now is 07:26 AM.