View Single Post
  #1 (permalink)  
Old July 24th, 2008, 08:55 AM
Ozzy Bongo Ozzy Bongo is offline
Registered User
 
Join Date: Jul 2008
Location: Akoka, Lagos, Nigeria.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Ozzy Bongo
Default LinkButton PostBack handler in custom control

Hi,

Pls I'm having a problem with dynamically created LinkButtons in
a WebControl.Actually I'm implementing a Tab control with multiple tabs and I'm using LinkButtons for the Tab headers... u get the picture.
So, when a LinkButton for a tab is clicked, its supposed to fire an event that will be handled by the tabcontainer to change the ActiveTabViewIndex i.e. to switch views to another tab.

Problem is the markup generated looks okay( the href=__doPostBack part), but for reasons I cannot explain, the event handler is not been called, both from the TabView control itself and the TabContainer.

Tried implementing IPostBackEventHandler, but did'nt help too.
Any help will be greatly appreciated.

Thanks,

Ozzy