Home > Archive > ASP .NET > February 2008 > Control Event
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| shapper 2008-02-29, 8:27 am |
| Hello,
I am working on a Custom control which inherits from Composite
Control.
I perform a few actions on Init, Load and PreRender events of this
control.
How can I access this events inside my custom control code?
Thanks,
Miguel
| |
| Manish 2008-02-29, 7:21 pm |
| Hi Miguel,
You can try the following code to achieve this.
public class MyControl : CompositeControl
{
public MyControl()
{
//
// TODO: Add constructor logic here
//
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
}
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
}
}
Regards,
Manish
www.ComponentOne.com
"shapper" wrote:
> Hello,
>
> I am working on a Custom control which inherits from Composite
> Control.
> I perform a few actions on Init, Load and PreRender events of this
> control.
>
> How can I access this events inside my custom control code?
>
> Thanks,
> Miguel
>
|
|
|
|
|