Literal content is not allowed within a UserControl

前端 未结 4 1535
有刺的猬
有刺的猬 2021-01-18 02:38

How to allow my control contains a text inside it\'s tags?

Text

My control contains a complex t

4条回答
  •  轮回少年
    2021-01-18 03:13

    Have a property on your user control called Text, and set that like

    Text
    

    or server side

    my.Text = "some text"; 
    

提交回复
热议问题