Google Brother Up

2008/01/11

Checkbox in to a boolean variable

bool isactive;
if (chkCategoryActive.Checked)
{
fc.IsActive = true;
}
else
{
fc.IsActive = false;
}

or it can also be written as

fc.IsActive2 = Convert.ToBoolean(chkActive.Checked);

No comments:

Drop Down List

1. http://www.janetsystems.co.uk/Articles/NetArticles/tabid/74/itemid/161/modid/449/Default.aspx