usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Text;
usingSystem.Web;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
namespace WebCustomControl1
{
[DefaultProperty('Text')]
[ToolboxData('<{0}:WebCustomControl1 runat=server></{0}:WebCustomControl1>')]
public class WebCustomControl1 : WebControl
{
[Bindable(true)]
[Category('Appearance')]
[DefaultValue('')]
[Localizable(true)]
public string Text
{
get
{
String s = (String)ViewState['Text'];
return ((s == null) ? String.Empty : s);
}
set
{
ViewState['Text'] = value;
}
}
protected override void CreateChildControls()
{
CheckBox blah = new CheckBox();
blah.Text = 'CheckText';
blah.ID = 'CheckValue';
this.Controls.Add(blah);
}
protected override void RenderContents(HtmlTextWriter writer)
{
this.EnsureChildControls();
this.RenderChildren(writer);
}
}
}
WHY WE STAND OUT
- Blazor Competitive Upgrade
- Angular Competitive Upgrade
- JavaScript Competitive Upgrade
- React Competitive Upgrade
- Vue Competitive Upgrade
- Xamarin Competitive Upgrade
- WinForms Competitive Upgrade
- WPF Competitive Upgrade
- PDF Competitive Upgrade
- Word Competitive Upgrade
- Excel Competitive Upgrade
- PPT Competitive Upgrade
CONTACT US
- Fax: +1 919.573.0306
- US: +1 919.481.1974
- UK: +44 20 7084 6215
Toll Free (USA):
- 1-888-9DOTNET
- sales@syncfusion.com
Share with