This simple but powerful control, sometimes generates false expectatives, around itself. I've seen in some forums, people using'em instead the Labels, cause "Performance Issues". But; nevertheless the Literal is simpler than the Label control, the performance enhacements got with the former control is not very significative.
Then, which is the power of the Literal Control? The importance of Literal, beyond performance, is that you can write html formatted text (i.e. A paragraph with
and stuff like this... have u tried to make a line change in a label containing lots of text and needing to be formatted -making bold some words in instace?) in a more controllable way than using Response.Write as an example.
Thus, you put the literal control wherever you want and control some behavior over it (Like it's content, if it is visible or not, etc).Sadly, style sheet controlling is not available for this control (There is a lack of the property CssStyle which is present in most of common controls as labels).
But is logic u need to keep the consistence of your web site and don't create a font mixing which will be worst for the user feelling who will prefer read your page written by pencil. A simple way to do this, is make the Literal be part of a Panel. The panel will acept the css property and the Literal, will inherit this appearence.
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario