PC Review


Reply
Thread Tools Rate Thread

Control Event

 
 
shapper
Guest
Posts: n/a
 
      29th Feb 2008
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
 
Reply With Quote
 
 
 
 
Manish
Guest
Posts: n/a
 
      29th Feb 2008
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
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
system event log, Event ID 7000, Service Control Manager Ed Parker Windows XP Performance 1 20th Nov 2006 12:08 AM
Control where change event does not trigger click event? =?Utf-8?B?c3dvcmRmaXNo?= Microsoft Powerpoint 2 17th Jul 2006 06:21 PM
Pass a form value from a user control to parent control - Event Order issues ab_j@flyingrobot.com Microsoft ASP .NET 0 29th Oct 2004 06:38 PM
Control Exit event kills Button Click Event in Access2002 Forms =?Utf-8?B?TWlrZSBFbGxpb3R0?= Microsoft Access Form Coding 4 20th Oct 2004 05:08 PM
Help: Control lost doesn't raise event after being moved to dynamically loaded user control Thanh Nguyen Microsoft ASP .NET 0 1st Apr 2004 03:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:18 PM.