A
Angel
Hi
I created UserControl which have some events.
I dragged and dropped it to the page but a reference to this control did not
appear in the code behind.
Only references to other VC components appeared
How can I get a reference to this control from then code behind if VS did
not automatically placed reference to usercontrol the page class definition.
I would need this reference(MyUserControl) to set a EventHandler like this
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
this.MyUserControl.ItemSelected += (this.ItemSelectedHolder);
}
Thanks
Angel
I created UserControl which have some events.
I dragged and dropped it to the page but a reference to this control did not
appear in the code behind.
Only references to other VC components appeared
How can I get a reference to this control from then code behind if VS did
not automatically placed reference to usercontrol the page class definition.
I would need this reference(MyUserControl) to set a EventHandler like this
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
this.MyUserControl.ItemSelected += (this.ItemSelectedHolder);
}
Thanks
Angel