G
greg
Hi,
I designed as we control that dedrived from asp.net web button control. Then
I created a designer for this control, in the designer I orverride
DoDefaultAction methond, the problem is when i double click the button
control on at the design time, the doDefaultAction never gets called, here
are my designer code:
public class MyDesigner : System.Web.UI.Design.WebControls.ButtonDesigner
{
public override void DoDefaultAction()
{
DoMyActions();
}
}
and here is the button control code:
[Designer(typeof(MyDesigner))]
public class WebCustomControl1 : System.Web.UI.WebControls.Button
{
private string message = "Confirm1?";
[Bindable(true),
Category("Appearance"),
DefaultValue("Confirm1?")]
public string ConfirmMessage
{
get{return this.message;}
set{this.message = value;}
}
}
anything wrong with my code?
Thanks
I designed as we control that dedrived from asp.net web button control. Then
I created a designer for this control, in the designer I orverride
DoDefaultAction methond, the problem is when i double click the button
control on at the design time, the doDefaultAction never gets called, here
are my designer code:
public class MyDesigner : System.Web.UI.Design.WebControls.ButtonDesigner
{
public override void DoDefaultAction()
{
DoMyActions();
}
}
and here is the button control code:
[Designer(typeof(MyDesigner))]
public class WebCustomControl1 : System.Web.UI.WebControls.Button
{
private string message = "Confirm1?";
[Bindable(true),
Category("Appearance"),
DefaultValue("Confirm1?")]
public string ConfirmMessage
{
get{return this.message;}
set{this.message = value;}
}
}
anything wrong with my code?
Thanks