Вход на сайт
Infragistics PropertyBrowser control
NEW 09.05.06 08:45
в ответ krys 04.05.06 14:58
Просто наследуй от цонтролла и добавляй свои Проперты
[DefaultProperty("Text"), ToolboxData("<{0}:CheckBoxEx runat=\"server\" />")]
public class CheckBoxEx : System.Web.UI.WebControls.CheckBox, IPostBackEventHandler
{
public string CommandArgument
{
get { return this.ViewState["CommandArgument"] as string; }
set { this.ViewState["CommandArgument"] = value; }
}
public string CommandName
{
get { return this.ViewState["CommandName"] as string; }
set { this.ViewState["CommandName"] = value; }
}
}
[DefaultProperty("Text"), ToolboxData("<{0}:CheckBoxEx runat=\"server\" />")]
public class CheckBoxEx : System.Web.UI.WebControls.CheckBox, IPostBackEventHandler
{
public string CommandArgument
{
get { return this.ViewState["CommandArgument"] as string; }
set { this.ViewState["CommandArgument"] = value; }
}
public string CommandName
{
get { return this.ViewState["CommandName"] as string; }
set { this.ViewState["CommandName"] = value; }
}
}