Reputation:
Is it posible to caputure button click event that is on a page, to a User Control which is with in that page.
Upvotes: 0
Views: 41
Reputation: 3289
If you are trying to pass a parent's button click event to a child, you can do it.
In the User Control, make a method called HandleParentButtonClick
(passing necessary parameters). In the parent's OnClick event, call the User Control's HandleParentButtonClick
method.
Upvotes: 1