public void ClearTextBoxes(Control.ControlCollection cc)
{
foreach (Control ctrl in cc)
{
TextBox tb = ctrl as TextBox;
if (tb == null)
messagebox.show("Empty Textbox Found");
}
}
but It Throws an error -"Object refference not set an instance of an object"