How to create line breaks between dynamically generated labels in a placeholder?

前端 未结 3 840
谎友^
谎友^ 2021-02-19 01:45

This is the code below in code behind file\'s Page_Load event:

        LinkButton linkButton = new LinkButton();
        linkButton.ID = \"LinkButto         


        
3条回答
  •  悲&欢浪女
    2021-02-19 02:11

    How to: Add Controls to an ASP.NET Web Page Programmatically

    In some instances, you might want to create both static text and controls. To create static text, you can use either a Literal or a Label Web server control. You can then add these controls to the container as you would any other control. For information about view state in controls created at run time, see Dynamic Web Server Controls and View State.

提交回复
热议问题