By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,498 Members | 1,558 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,498 IT Pros & Developers. It's quick & easy.

saving data from multiple dynamically created input contols

P: 20
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
Share this Question
Share on Google+
1 Reply


sicarie
Expert Mod 2.5K+
P: 4,677
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

Post your reply

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