I have a main page with a placeholder and several user controls that
inherit from a class called BaseReportControl.
I put, for example, 'summary.ascx' in variable SubReport
and use this code to load the control.
ctlReport = CType(LoadControl(SubReport), BaseReportControl)
PlaceHolder2.Controls.Clear()
PlaceHolder2.Controls.Add(ctlReport)
ctlReport.DoSomething
From summary.ascx I have a link button that will call the same code to
load detail.ascx. From detail.ascx there is a button that will likewise
call the same code to reload summary.ascx.
Everything works fine, except when I try to get to detail.ascx a second
time. It takes two clicks. The first time the page posts back but the
click event does not fire.
Any ideas on how I could track this down? Where could I see the
difference between these two clicks?
Another note: I have to keep track of which control is loaded and
reload it with every post back, but this looks ok.
TIA,
Jim
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!