K
kw
Page X loads WebControl Y which loads WebControl Z.
WebControlZ defines a button:
protected System.Web.UI.WebControls.LinkButton SearchByAssr;
here comes the problem:
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
this.ButtonZ.Click += new System.EventHandler(this.ButtonZ_Click);//CRASH!
ButtonZ is null
I don't get it...why is ButtonZ null?
WebControlZ defines a button:
protected System.Web.UI.WebControls.LinkButton SearchByAssr;
here comes the problem:
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
this.ButtonZ.Click += new System.EventHandler(this.ButtonZ_Click);//CRASH!
ButtonZ is null
I don't get it...why is ButtonZ null?