codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  repopulate checkboxes from database  mikoniko at 15:21 on Wednesday, November 19, 2003
 

1. I created an edit form whereby the end user can update multiple checkboxes of the same name, different values, different ID's.

2. The edit form dynamically creates checkbox options from a database

3. I'm storing a string of checkbox values selected by the end user in the database. Example string: 1,2,3,4,5

3. On edit of this form I need to first dynamically create the list of checkboxes from the database and two, check off those checkboxes previously selected by the end user from the string stored in the database for that end user.

I realize this may involve some splitting but how do I get the splitted out values to match up and check off the appropriate boxes? Just in case, when I created the tables that populate the checkboxes I also added a column that numbered them in case it would come in handy later.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: onload event
•  Active Widgets
•  Re: onmouseover change image and text
•  Line Printer Interface
•  import contacts of msn/yahoo
•  Call windows apps from web apps
•  Re: ASP.NET web controls
•  netscape 6 browser problem
•  Re: Print .doc file from the website using System.Diagnostics.Process


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005