What is a literal control ? I was reading about the Little Controll but I'm not sure why they are used I used this code for a list of controls in one page and - I have a page that has a label and a button When I use it
foreach (control in control of page control) {responses. Type (control.GetType (). ToString () + "- & lt; b & gt;" + control.ID + "& lt; / b & gt; & lt; br / & gt;"); If (Control is Little Control) {Answer. ("Text:" + ((control) control. Text. Ostring () + "-" + server. Html encode ((control) control. Text + "
I think that in reality literal controls are generated and whatever control is added to my page. I literally had only text property under control is.
I still can not believe why literal controls is required and used? Why is Little Controls used ? Controls a little control before and after the control in my page? And why they have only text properties?
The HTML element, text, and any other representation from the literal control string in an asp.net page The server does not require processing.
For this also
A label a & lt; Span & gt; The tag allows you to display some text to the program that you want to display. A literal control gives exactly the same static HTML as you want, there is no general benefit to use one on another, in some circumstances it can be more useful than the other. For example, if If you want to display static text and do not want to make any changes to its program, you may want to use a little control.
Comments
Post a Comment