Literal control
Literal control
In Asp.net Programming Literal control use to show data on
web page (asp.net page).we programmable bind text in to Literal. In this web control
we can bind anything As like Image, Text etc.
Literal Declare in asp.net page:For Get Literal:
<asp:Literal ID="LiteralJunior" runat="server"></asp:Literal>
Here we take a Literal control that’s id is “LiteralJunior”,
Literal ID Requirement of Asp.net Control:
In Asp.net we assign a unique id for each Asp.net control, and
Access this control by id on .aspx.cs (coding page).
Properties
of Literal control:
Runat:
Runat refer to this control Execute at server site.
Text:
Text property refers what you want to show in this.
As we know that Label can by Access by client site but
Literal not. But some time the Label and Literal but work similarly. Both are
use to display Text data on asp.net web page.
Class hierarchy of Asp.net Literal
The class hierarchy for this control is as follows:
Object ->
Control ->
Literal
Object ->
Control ->
Literal
Literal Control cannot use any HTML elements in .net
Programming
Literal Control |
Questions Related to Literal:
- literal control in asp.net c#
- literal control javascript
- literal control in mvc3
- literal control in asp.net example
- literal control in asp.net using c#
- literal control is not a known element
- literal control question
- Using jQuery change Background color of DIV
- JQuery Change Div Background Color Randomly
- JQuery Change Div Background Color Randomly
- C# Variables,How to declare in C#:
- C# language Program Structure
- What keyword,How many keywords in C#
Literal control Constructor:
Here we describe two impotent Constructor of Asp.net Literal Control
Constructor of Literal |