calling a method in a usercontrol from another user control?
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
suppose i have 2 usercontrol called usercontrol1 and usercontrol2. i want to call a method of usercontrol2 from usercontrol1.is it possible ?? if yes then pls tell me how could i do this with sample code in detail.
tbhattacharjee
-
suppose i have 2 usercontrol called usercontrol1 and usercontrol2. i want to call a method of usercontrol2 from usercontrol1.is it possible ?? if yes then pls tell me how could i do this with sample code in detail.
tbhattacharjee
I think a usercontrol should be working totally independent (as per OOAD principles). However if you still want to do that you can raise event from usercontrol1 that gets handled in ASPx Page which will call the method from usercontrol2. I hope this helps. Shirish.