Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Inherit from Table, net Catching child butten event

Thread Tools

Inherit from Table, net Catching child butten event

a serr
Posts: n/a
I'm creating a custom control Inheriting from Table and implementing
INamingContainer that has a button added to a TableCell.
( public class SmartDataTable : Control, INamingContainer
protected override void CreateChildControls( )
TableCell myCell = new TableCell();
this.MyBtn.Click += new
TableRow myRow = new TableRow();
} )
The button posts the form back to the server, but I cannot seem to catch the
event in my CustomTable control.

The other option I have found is to inherit from Control (making a composite
control) but the how do I get my control to have all of the properties of the
Table at the top level?

A. Serr

Reply With Quote

Thread Tools

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
Butten Event not fired ASP.NET 2.0 VS 2008 Michael Ahrens ASP .Net Web Controls 2 04-02-2009 07:14 AM
Catching a RequiredFiled Validator event in PageLoad or some other event? Lars Netzel ASP .Net 3 07-22-2004 10:48 PM
Placeholder child of child control event problem. caldera ASP .Net Building Controls 1 05-28-2004 07:56 AM
How do I: Main thread spawn child threads, which child processes...control those child processes? Jeff Rodriguez C Programming 23 12-09-2003 11:06 PM
Custom Control - inherit child properties? Andrew ASP .Net Building Controls 6 07-17-2003 02:48 AM