Link to home
Start Free TrialLog in
Avatar of mickygene
mickygene

asked on

finding the value of a checkbox

I am trying to find a value of a checkbox. But, since it can be a multitude of checkboxes, I do not know how to call the name of the textbox field and then say checked.
Below is what I have:
if(sender.GetType() == typeof(System.Windows.Forms.CheckBox)) //Verifies if it is a checkbox
{
       at.Old_value = ((Control)sender).Name.Checked?????  I need the value here.

}
When I step through it, I can see on sender, the value gives me {"" Checked="False"} How do I get this value?
ASKER CERTIFIED SOLUTION
Avatar of Snarf0001
Snarf0001
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial