开发者

Is there any limit on how much text asp:label control can hold?

开发者 https://www.devze.com 2023-01-31 09:49 出处:网络
Should I use it开发者_如何学JAVA if I wanna store really long text?I would use <asp:literal enableviewstate=\'false\' ... as it is apparently more lightweight than a <asp:label ...

Should I use it开发者_如何学JAVA if I wanna store really long text?


I would use <asp:literal enableviewstate='false' ... as it is apparently more lightweight than a <asp:label ...

A Literal control is much more light weight than a Label.. it's meant to write out text/html directly to the browser. A Label is little bulkier than a Literal, but has all benefits of a WebControl such as styling options etc.

It should also be noted that a label will wrap your content with <span> ... </span> whereas a literal does not.


A label is the HTML equivalent of a span in when rendered. It holds any valid string.

0

精彩评论

暂无评论...
验证码 换一张
取 消