Search code examples
c#asp.netdynamic-controls

Dynamically adding a textbox to a panel on button click


I just don't understand how this is done. I've gone through several questions here and from a few other websites.

Basically, a company will be adding process steps, and I want there to be a textbox with a button next to it that reads "Add another step." Once clicked, a new textbox will appear beneath the current one, and the button will be moved next to the new text box. What do I need to do?


Solution

  • Okay, finally found an answer I can understand. Using listviews seems to be a good way to go. I found this website

    Link

    And I got the results I wanted.