I. Programme and BACKGROUND
The Literal control represents one of several options for adding content to a page. For static content, you can add tags directly to the page as HTML without using a container. However, if you want to add content
I. Solution
Literal is most commonly used to dynamically add content to pages.
Ii. Background
The literal control represents one of the several options used to add content to a page. For static content, you can add tags to the page as HTML
Excerpt from: http://www.cnblogs.com/Fskjb/archive/2010/03/19/1690233.htmlFirst, the programmeLiteral is most commonly used to dynamically add content to a page.Second, the backgroundThe Literal control represents one of several options for adding
I. Solution
Literal is most commonly used to dynamically add content to pages.
Ii. Background
The literal control represents one of the several options used to add content to a page. For static content, you can use tags as HTML without using
1. Literal Web Server Control Overview (from MSDN)
The Literal Web server control can be used as a container for other content on the page. Literal is most commonly used to dynamically add content to pages.
The Literal control represents one of the
The literal control displays static text on a web page without adding any HTML elements. You can use the serverCodeControl the text statically in programming mode.
Note: If you want to display static text, you can use HTML to render it; the
The difference between the Literal control and the Label control is that the Literal control does not add any HTML elements to the text. (The Label control presents a span element .) Therefore, the Literal control does not support any style
Hiddenfield,Linkbutton,LiteralHiddenfieldIt provides a way to store information on pages, which is similar to other controls, but is not displayed or occupied. It still cannot store sensitive information such as passwords because it is stored in
At the beginning, friends of. NET may not know the differences between literal and label. In fact, they only have one difference, that is, they are converting to the client html
Code Label becomes , and literal does not contain any labels:
To
You can use the Literal control as a container for other content on a Web page. The Literal control is most commonly used to dynamically add content to a Web page. Simply put, the HTML code can be written to the Literal control and presented
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.