How to add controls dynamically to ASP.NET form?

后端 未结 6 1791
说谎
说谎 2021-01-12 02:16

I do not know how to add controls dynamically to the form using C# .net. Can anyone help me? I know this with vb.net but I need to know the syntax in C#.

6条回答
  •  日久生厌
    2021-01-12 02:37

    It's generally acceptable to add the controls to a panel, be it that the panel has been added to the page in the markup or programmatically.

    See the following link for the C# syntax

提交回复
热议问题