Yes but I have alot of checkboxes on some of these webpages. I was thinking something like:
but have no idea on how to have the variable match the current checkbox. With your idea I would still need a line for each checkbox. I want it not to matter how many.Code:foreach (Control ctrl in this.Controls) { if (ctrl is CheckBox) { CheckBox chk = new CheckBox(); chk = (CheckBox)ctrl; if (chk.Checked) { } } }




Reply With Quote