troubleshooting Question

Handling events from usercontrol

Avatar of Pacemaker9007
Pacemaker9007Flag for Czechia asked on
ASP.NETVisual Basic.NET
8 Comments2 Solutions358 ViewsLast Modified:
Hello experts,
I have a tabcontainer on my page, to which I dynamically add tabpanels. Each tabpanel is then filled with a usercontrol containing a gridview. This works fine (also thanks to the help of experts here in EE). My problem now is that I have a button in the gridview which does not fire. It is wired to a OnRowCommand but when clicked nothing happens. My idea was to raise an event in the OnRowCommand and then handle it in my page. I have also tried this with adding a button to the usercontrol, but its buttonclick even does not fire either (I have put a breakpoint and it just never reaches it). The page does a postback, the tabcontainer_Init loads the usercontrol and the usercontrols page_load event fires, but nothing else is done. Any help will be greatly appreciated.
ASKER CERTIFIED SOLUTION
GiftsonDJohn

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros