user2169532
user2169532

Reputation:

How to caputure page level events on a user control on that same page

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

Answers (1)

Garrison Neely
Garrison Neely

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

Related Questions