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
Literal Control cannot use any HTML elements in .net Programming


asp.net Programming
Literal Control

Questions Related to Literal: 



Literal control Constructor:


Here we describe two impotent Constructor of Asp.net Literal Control
Asp.net Programming
Constructor of Literal


   

 Old Post :

Popular posts from this blog