Delete text boxs dynamically on click in

In this post, i'm going to share to code snippet for delete textbox dynamically on click in using C#.
This example is simple and easily understandable code using with c#

public void DeleteTextBox()
    string strCtrlName;
    TextBox txtCtrl;

    for (int i = 0; i < 12; i++)
        strCtrlName= "Textbox" + i;
        txtCtrl = (TextBox)FindControl(strCtrlName);
        txtCtrl.Text = "";



Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - and
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like Powered by Blogger.
ASK Questions