hi,
i have my .aspx page inside 2 user controls with one gridview each.
now i want to call the function of user control 2 from user control 1.
how can i do this?
thanks,
krunal
hi,
i have my .aspx page inside 2 user controls with one gridview each.
now i want to call the function of user control 2 from user control 1.
how can i do this?
thanks,
krunal
UserControl2 objUserControl2 = new UserControl2();
var control = usercontrol.findcontrol("ControlName");
Check the castings
Check the above code, i hope it helps you
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.