Split VAR.WebForms.Common to a class library.

This commit is contained in:
2020-03-01 11:54:12 +01:00
parent df927722ba
commit e414663d12
37 changed files with 333 additions and 116 deletions

View File

@@ -0,0 +1,41 @@
using System.Web.UI;
using System.Web.UI.WebControls;
namespace VAR.WebForms.Common.Controls
{
public class CLabel : Label
{
#region Declarations
private string _tagName = "span";
#endregion Declarations
#region Properties
public string Tag
{
get { return _tagName; }
set { _tagName = value; }
}
#endregion Properties
#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 Life cycle
}
}