Files
mono/mcs/class/System.Web/System.Web.UI/LiteralControl.cs
T
2001-08-22 19:46:35 +00:00

40 lines
933 B
C#

//
// 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;
}
}
public override Render(HtmlTextWriter writer)
{
writer.Write(_text);
}
}
}