Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: LoadControl, always IsPostBack?


Message #1 by "mzibecchi" <mariano.zibecchi@n...> on Tue, 11 Feb 2003 15:27:37
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

  Return to Index