473,382 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

saving data from multiple dynamically created input contols

Hi,

I have created a page with a list of items and next to these items are comment boxes and check boxes which were dynamically created like this:

Expand|Select|Wrap|Line Numbers
  1.                   check = new CheckBox();
  2.                   check.ID = "Chk" + checkcount;
  3.  
  4.                   if (dr["Checked"].ToString() == "True")
  5.                   {
  6.                       check.Checked = true;
  7.                   }
  8.                   else
  9.                   {
  10.                       check.Checked = false;
  11.                   }
  12.                   cell11.Controls.Add(check);
So now what i want to do is allow the user to check and uncheck the boxes and click an UPDATE button which takes the current state of all the check boxes/text boxes on the page and updates the data accordingly.

Thanks
Mar 22 '07 #1
1 1605
sicarie
4,677 Expert Mod 4TB
Hi,

I have created a page with a list of items and next to these items are comment boxes and check boxes which were dynamically created like this:

Expand|Select|Wrap|Line Numbers
  1.                   check = new CheckBox();
  2.                   check.ID = "Chk" + checkcount;
  3.  
  4.                   if (dr["Checked"].ToString() == "True")
  5.                   {
  6.                       check.Checked = true;
  7.                   }
  8.                   else
  9.                   {
  10.                       check.Checked = false;
  11.                   }
  12.                   cell11.Controls.Add(check);
So now what i want to do is allow the user to check and uncheck the boxes and click an UPDATE button which takes the current state of all the check boxes/text boxes on the page and updates the data accordingly.

Thanks
Did you have a question about the implementation of your UPDATE algorithm?
Mar 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: PT | last post by:
I got a problem. And thats..... First of all, I got these three tables. ------------------- ------------------ ---------------------- tblPerson tblPersonSoftware ...
1
by: Daniel Orner | last post by:
I've got an online system which I'm interested in making available offline - i.e. letting the user download certain HTML forms, fill them out offline, then the next time he logs into the site,...
3
by: Jim | last post by:
My subject probably isn't very descriptive of what I want to do, so let me explain: I wna tto have a website that holds a number of products, grouped by category. On the administration page of...
4
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system...
6
by: Paul | last post by:
Hi I have 2 data grids and several controls on a web page. The grids will vary in size, just wondering if the lower grid could be covered by part of the upper grid depending on its size or is there...
18
by: TORQUE | last post by:
Hi, Im wondering if anyone can help me with a problem. I have a form with more than 50 unbound fields. Some of the fields will be blank from time to time. This seems to be where im having...
1
by: lanmou | last post by:
hi, Iam developing a application where a form displays dynamically created contols and displays data in it from the database. this form allows the user to edit records and any changes made to it...
4
by: assgar | last post by:
Hi I am stuck on a problem. I use 3 scripts(form, function and process). Development on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. The form displays...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.