Monday, July 26, 2010

Getting the ASP .NET CheckBox Value

I tried to figure this out on the net. There was a lot of info to wade through for such an easy question.

Short answer: just use the Checked property to set or get the value, e.g.

MyCheckBox.Checked = true;

bool val = MyCheckBox.Checked;

No comments:

Post a Comment