| 123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // System.Web.UI.LiteralControl.cs
- //
- // Author:
- // Bob Smith <[email protected]>
- //
- // (C) Bob Smith
- //
- using System;
- using System.Web;
- namespace System.Web.UI
- {
- public class LiteralControl : Control
- {
- private string _text = String.Empty;
- public LiteralControl() {}
- public LiteralControl(string text)
- {
- _text = text;
- }
- public virtual string Text
- {
- get
- {
- return _text;
- }
- set
- {
- _text = value;
- }
- }
- protected override void Render(HtmlTextWriter writer)
- {
- writer.Write(_text);
- }
- }
- }
|