Wednesday, 5 August 2015

How to check atleast one checkbox is checked in asp.net ?

if (!chkListQualification.Items.Cast<ListItem>().Any(i => i.Selected))
{
  lblMessage.Text = "Please select at least one qualification.";
  return ;
}

No comments:

Post a Comment

Thanks for comments.