Adding Html from Code Behind in Asp.net

前端 未结 5 837
面向向阳花
面向向阳花 2020-12-17 09:38

I want to add HTML structure and control like this from code behind into a panel

First Name
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-17 09:55

    Make the div runat="server"

    and add the controls inside div like below

    d.Controls.Add();
    

提交回复
热议问题