Wednesday, 29 August 2012

Clear Control Values

void ResetControl(Control control)
        { 
            foreach (Control ctrl in control.Controls)
            {

                if (ctrl is TextBox)
                {
                    (ctrl as TextBox).Value = string.Empty;
                }

}
        }

No comments:

Post a Comment