Click here to Skip to main content
15,905,419 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
there is a master page and two pages from this masterpage
ex x.aspx y.aspx

these pages has x usercontrol y usercontrol

how to call y usercontrol load event from x usercontrol
Posted
Comments
Sergey Alexandrovich Kryukov 30-May-14 18:08pm    
Why? There is not such concept as "call an event"; it is not a method/procedure/function/operator. What exactly do you want to achieve?
—SA
Member-2338430 30-May-14 18:18pm    
there is a problem x usercontrol has upload profile image module y usercontrol right top side menü profile image and settings exit vs...
if you upload profile image this menü image not change menu usercontrol postback not run image not change
Member-2338430 30-May-14 18:27pm    
I dont understand I select a image and click button first time . y usercontrol image not change
secondly click button. y usercontrol image loading there is a problem like postback????
Member-2338430 30-May-14 18:29pm    
can ı say like that inside x usercontrol
UserControl uc = (UserControl)this.Parent.FindControl("y usercontrol");
uc.Page.Load(uc, EventArgs.Empty);
Yes, did it work?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900