Skip navigation

ASP.net Add Controls to HTML Form at Runtime

Add Controls at runtime to ASPX page. This code will allow you to add a control to your ASPX page at runtime. The key is to place a PlaceHolder control(s) on the form where you want to place the new controls. We called the placeholder PH1 for this example.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish