hai friends,
I am having 2 user controls.
uc1--> having one textbox and button.
uc2--> one label
I have consumed user controls to my webform1.aspx file.
Now,
When user enters text in textbox of uc1 and clicks button, the textbox value should be displayed in uc2 label control.
Please provide me answer.
Thank you.


Vithal WadjeRank #19 · 47.2K reputationPosted Mar 2, 2015, 4:45 AM EST
Label lbl=uc1I.FindControl("LabeldIdofUC2") as Label
lbl.Text=textbouc1.Text;
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 2, 2015, 6:45 PM EST
Hi,
This can be also done writing user control custom event.
Please refer
http://www.codeproject.com/Articles/1959/ASP-NET-User-Controls-Notify-One-Control-Of-Change
hope this will help you.