Dynamically add HTML to ASP.NET page

前端 未结 4 476
感动是毒
感动是毒 2020-12-14 19:03

Could someone please advise what the \"correct\" method is for adding HTML content to an ASP.NET page dynamically?

I am aware of the following declarative method.

4条回答
  •  不知归路
    2020-12-14 19:45

    Another option

    //.aspx
    
    
    
    //.aspx.cs
    protected Literal myText;
    myText.Text = "Hello, World!";
    

提交回复
热议问题