ASP.Net Page Life Cycle and Chart Clicking Bug
Posted: Thu Jul 14, 2005 10:08 am
Normal ASP.Net page lifecycle for a button click is
OnInit
PageLoad
ButtonClick
SaveViewState
but a click on a TeeChart has the event occur last
OnInit
PageLoad
SaveViewState
ChartClick
This affects us in that we cannot store any data within the page at this point or indeed alter any attributes of controls etc. The only solution we have is to redirect to another page changing the url. Calling SaveViewState() a second time also has no affect.
Is this event order by design? Can I intercept the click earlier in the page lifecycle? It really is a pain and totally different to any other web control.
Regards,
Darren
OnInit
PageLoad
ButtonClick
SaveViewState
but a click on a TeeChart has the event occur last
OnInit
PageLoad
SaveViewState
ChartClick
This affects us in that we cannot store any data within the page at this point or indeed alter any attributes of controls etc. The only solution we have is to redirect to another page changing the url. Calling SaveViewState() a second time also has no affect.
Is this event order by design? Can I intercept the click earlier in the page lifecycle? It really is a pain and totally different to any other web control.
Regards,
Darren