Content is not allowed between the opening and closing tags for user control

后端 未结 6 1785
你的背包
你的背包 2020-12-16 15:47

I want to build a user control suppose MyDiv.ascx. This control renders the div tag and do few more code behind stuff like adding few attributes etc which is not a matter of

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 16:29

    Add a Text property to your control and linked this text property to a label run at server that will be between the opening and closing div.

提交回复
热议问题