aspx thread: LoadControl, always IsPostBack?
Hi !
I have a user control that works fine when i statically insert it in other
page.
When I try to use
DimRowsCtrl cfg = (DimRowsCtrl) Page.LoadControl("~/AxisCfg.ascx");
It seems that LoadControl doesn't fire the user control's Page_Load !
IsPostBack
This is my user controls' page_load
if ( ! IsPostBack )
{
// NEVER GETS HERE !!!!
}
else
{
// ALWAYS GETS HERE
}
I saw that the !IsPostBack part is never executed, even the first time,
enters the else part
Any idea ?
Thanks
Mariano
|





