开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜