Welcome to mirror list, hosted at ThFree Co, Russian Federation.

LiteralControl.cs « System.Web.UI « System.Web « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 180c700dc9a9033623996f636363b405a27e4a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// System.Web.UI.LiteralControl.cs
//
// Author:
//   Bob Smith <bob@thestuff.net>
//
// (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);
                }
        }
}