Page Event

  • Thread starter Thread starter holly
  • Start date Start date
H

holly

Hi,
I have a page, I put a web table control on it (design
time).
Inside this page's Page_Load method, I use LoadControl
create a control, create a table row, a table cell, add
control to the cell then add cell to the row. At the end,
I add the row to the table.
When I run the code, I found out that the control's
Page_Load method is never fired. It will call control's
OnPreRender.
Why is that?
Thanks
Holly
..
 
because you created it during page load, onload event has already been
fired. add your control at oninit

-- bruce (sqlwork.com)
 
Back
Top