Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / October 2006

Tip: Looking for answers? Try searching our database.

ITemplate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben Schumacher - 13 Oct 2006 20:01 GMT
Ok smart guys and gals ...

I have a GridView control with a dynamically created checkbox column.  The
checkbox is created using ITemplate interface.  In my class that implements
the ITemplate interface I set the AutoPostBack property of the checkbox to
True.  When the checkbox is clicked, I want to handle the CheckChanged event
of the checkbox on the webform (.aspx) that contains the GridView control.
I can easily use the addhandler instruction in the ITemplate interface class
to handle the CheckChanged event, but how do I bubble the event out to the
actual .aspx page that contains the gridview control????????????

I have been googling for hours.  It seems no one has any idea how to do
this.  I would be so incredibly grateful for any insight into my problem.

Ben
Teemu Keiski - 13 Oct 2006 21:19 GMT
See *.aspnet, replied on:
http://aspadvice.com/blogs/joteke/archive/2006/10/13/Command_2D00_capable-CheckB
ox-with-GridView.aspx


Signature

Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

> Ok smart guys and gals ...
>
[quoted text clipped - 14 lines]
>
> Ben
Michael Hamrah - 15 Oct 2006 20:33 GMT
If this is something you're doing a lot of you may want to consider
Event Pooling.  It creates an object that acts as a broker between
controls that raise events and controls that handle events, so you
don't need a direct reference to each one. It's kind of like a more
suped up version of event bubbling.

Here's an implementation that works well:

http://www.codeproject.com/csharp/EventPool.asp

Michael Hamrah

> See *.aspnet, replied on:
> http://aspadvice.com/blogs/joteke/archive/2006/10/13/Command_2D00_capable-CheckB
ox-with-GridView.aspx

[quoted text clipped - 23 lines]
> >
> > Ben

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.