Adding Html from Code Behind in Asp.net

前端 未结 5 816
面向向阳花
面向向阳花 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:46

    For appending HTML to your panel, add a LiteralControl control to your panel:

    string yourHTMLstring = "
    ...."; pnlUserdata.Controls.Add(new LiteralControl(yourHTMLstring));

提交回复
热议问题