N- Textbox Reset Code in .Net C#


// Function For ClearSection

private void  function ClearSection()
        {
foreach (var control in this.Controls)
            {
                if (control is TextBox)

                    ((TextBox)control).Text = "";
            }
     }

 protected void Clear_Click(object sender, EventArgs e)
        {

                ClearSection();

        }


N- Textbox Reset Code in .Net C# N- Textbox Reset Code in .Net C# Reviewed by NEERAJ SRIVASTAVA on 9:39:00 AM Rating: 5

No comments:

Powered by Blogger.