我是否应该使用它,如果我想存储真正的长文本?
Should I use it if I wanna store really long text?
最满意答案
我会使用<asp:literal enableviewstate='false' ...因为它显然比<asp:label ...更轻量级<asp:label ...
字面控件比标签轻得多,它意味着直接向浏览器写出文本/ html。 标签比Literal稍小,但具有WebControl的所有优点,例如样式选项等。
还应该注意的是,标签将用<span> ... </span>包装您的内容,而文字不包含。
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.
更多推荐
存储,真正,wanna,电脑培训,计算机培训,IT培训"/> <meta name="description"
发布评论