Check Box
-
Hi Friends, I have one doubt,i having a web page then i m having number of check boxes.In that checkboxes i have checked some checkboxes,how to store the checked one to the database in a single column and how to count number of checkboxes are checked in a web page.Kindly tell me how to find? Thank You Take Care Thanks & Regards Senthil Kumar
-
Hi Friends, I have one doubt,i having a web page then i m having number of check boxes.In that checkboxes i have checked some checkboxes,how to store the checked one to the database in a single column and how to count number of checkboxes are checked in a web page.Kindly tell me how to find? Thank You Take Care Thanks & Regards Senthil Kumar
Suppose u have the sixth column as a checkbox column then do the following.
for (int count = 0; count < a.Rows.Count; count++) { CheckBox c = (CheckBox)grdsubbassinfo.Rows[count].Cells[5].FindControl("ch1"); }
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
-
Hi Friends, I have one doubt,i having a web page then i m having number of check boxes.In that checkboxes i have checked some checkboxes,how to store the checked one to the database in a single column and how to count number of checkboxes are checked in a web page.Kindly tell me how to find? Thank You Take Care Thanks & Regards Senthil Kumar
How are you outputting the checkboxes? Is it in a checkboxlist, or are they individual.
-
How are you outputting the checkboxes? Is it in a checkboxlist, or are they individual.
it is individual checkbox
-
Suppose u have the sixth column as a checkbox column then do the following.
for (int count = 0; count < a.Rows.Count; count++) { CheckBox c = (CheckBox)grdsubbassinfo.Rows[count].Cells[5].FindControl("ch1"); }
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
hi pankaj, thanks for reply,i have one doubt what is 'a'which mentioned above.Rows.Count means to count the rows what is "a". Take Care Thanks & Regards Senthil Kumar
-
Suppose u have the sixth column as a checkbox column then do the following.
for (int count = 0; count < a.Rows.Count; count++) { CheckBox c = (CheckBox)grdsubbassinfo.Rows[count].Cells[5].FindControl("ch1"); }
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
Sorry Pankaj,i m not having the checkboxes in the grid.
-
it is individual checkbox
Not too sure exactly what you are doing here, I have a feeling there may be a better way. If you have random numbers of checkboxes on your page, you could potentially loop through the Controls collection of the Page and find look at the checked values for all controls of type CheckBox.
-
Hi Friends, I have one doubt,i having a web page then i m having number of check boxes.In that checkboxes i have checked some checkboxes,how to store the checked one to the database in a single column and how to count number of checkboxes are checked in a web page.Kindly tell me how to find? Thank You Take Care Thanks & Regards Senthil Kumar