programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Website by URL, How to Play YouTube Videos in by using Jquery , Jquery Change div background on mouseover in , JQuery UI Datepicker (Calendar) etc.

Monday, July 28, 2014

Literal control

Literal control

In Programming Literal control use to show data on web page ( page).we programmable bind text in to Literal. In this web control we can bind anything As like Image, Text etc.
Literal Declare in 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 Control:

In we assign a unique id for each 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 web page.
Class hierarchy of Literal
The class hierarchy for this control is as follows:

Object ->
          Control ->
Literal Control cannot use any HTML elements in .net Programming Programming
Literal Control

Questions Related to Literal: 

Literal control Constructor:

Here we describe two impotent Constructor of Literal Control Programming
Constructor of Literal


 Old Post :