Author: renjithrajan88 | Posted on: 2/12/2010 12:56:47 AM | Views : 271

public void ClearAllControls(Control ctrl)
    {
        foreach (Control eachctrl in ctrl)
        {
            if (eachctrl is TextBox)
            {
                ((TextBox)(eachctrl)).Text = "";
            }
            if (eachctrl is DropDownList)
            {
                ((DropDownList)(eachctrl)).SelectedIndex = 0;
            }
  &n ...

Go to the complete details ...