Calling a method in parent page from user control

前端 未结 10 1169
暖寄归人
暖寄归人 2020-11-28 23:01

I\'ve a user control registered in an aspx page On click event of a button in the user control, how do i call a method which is there in the parent page\'s code

10条回答
  •  無奈伤痛
    2020-11-28 23:22

    Scott Allen has a useful article on event bubbling from a user control to the parent page, which elaborates on the answer provided by Stephen M. Redd:

    • Event Bubbling From Web User Controls in ASP.NET (C#)

提交回复
热议问题