What is LiteralControl? Why is it used?

前端 未结 7 2392
暖寄归人
暖寄归人 2020-12-15 06:11

What is a LiteralControl? I was reading about LiteralContols but I am not sure why they are used. I used this code to list the controls in a page and - I have

7条回答
  •  执笔经年
    2020-12-15 06:52

    You will get a LiteralControl for any HTML markup that is not part of an ASP.NET server control. It's just how the framework renders the HTML shrubbery of your page. The Text property is just this HTML, which also includes any whitespace.

提交回复
热议问题