The proper way to do is is to have the usercontrol raise an event the page
can hook into. Something like this would go into your usercontrol:
protected System.Web.UI.WebControls.Button hide;
public event EventHandler onHideClick;
private void hide_Click(object sender, System.EventArgs e) {
if (this.onHideClick != null){
this.onHideClick(this, e);
}
}
and then your page could hook into the onHideClick event:
uc1.onHideClick +=new EventHandler(uc1_onHideClick);
private void uc1_onHideClick(object sender, EventArgs e) {
//do stuff
}
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
<jw*****@gmail.com> wrote in message
news:d3**************************@posting.google.c om...
Hi,
How would the following be accomplished. I have a parent aspx page,
that dynamically loads 3 user controls (through LoadControl) depending
on a certain criteria. I want the click of a button on one user
control to make another user control invisible. How can the parent
aspx page capture that click event so that it can know to do
something. thanks