Reorder namespaces of pages and controls

This commit is contained in:
2015-06-08 07:29:29 +02:00
parent 37425c21c6
commit 8767f29e45
17 changed files with 52 additions and 67 deletions

View File

@@ -0,0 +1,41 @@
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Scrummer.Controls
{
public class CLabel : Label
{
#region Declarations
private string _tagName = "span";
#endregion
#region Properties
public string Tag
{
get { return _tagName; }
set { _tagName = value; }
}
#endregion
#region Life cycle
public override void RenderBeginTag(HtmlTextWriter writer)
{
if (string.IsNullOrEmpty(_tagName) == false)
{
this.AddAttributesToRender(writer);
writer.RenderBeginTag(_tagName);
}
else
{
base.RenderBeginTag(writer);
}
}
#endregion
}
}