How to pass value of a variable from one usercontrol to another usercontrol. for example: I have 2 usercontrols UC1.ascx, UC2.ascx and both ascx are registered and called in one aspx page. UC1 have a public variable (pubVariable1) and a button. UC2 has a public variable (pubVaraible2) and a public function (pubFunction).
How to pass value of pubVariable1 to pubVariable2 on a click event of a button in UC1. Note: button and pubVariable are in UC1?