my user control (usercontrol1.a scx) is added dynamically into a
placeholder on page_load. within usercontrol1.as cx there is a button.
When a user presses this button I want the page to reload with a
different user control (usercontrol2.a scx)
if i add the button to the main page I can do this within the button
event handler:
myPlaceHolder.C ontrols.RemoveA t(0);
myPlaceHolder.C ontrols.Add(Loa dControl("userc ontrol2.ascx")) ;
but if I put this code inside the button event handler in my
usercontrol1.as cx it doesnt work. how do i communicate my event
handler code from my user control to the parent page placeholder
please?
thanks
placeholder on page_load. within usercontrol1.as cx there is a button.
When a user presses this button I want the page to reload with a
different user control (usercontrol2.a scx)
if i add the button to the main page I can do this within the button
event handler:
myPlaceHolder.C ontrols.RemoveA t(0);
myPlaceHolder.C ontrols.Add(Loa dControl("userc ontrol2.ascx")) ;
but if I put this code inside the button event handler in my
usercontrol1.as cx it doesnt work. how do i communicate my event
handler code from my user control to the parent page placeholder
please?
thanks
Comment