开发者

accessing control on page A.ASPX from a WEBUSERCONTROL.ASCX

开发者 https://www.devze.com 2023-02-08 08:13 出处:网络
How can I access a control on page a.aspx from a webusercontrol.ascx I do not know the technical term used to describe this, if any,

How can I access a control on page a.aspx from a webusercontrol.ascx

  • I do not know the technical term used to describe this, if any,
  • the webusercontrol.ascx page contains a button.

    • onclick of the button, placeholder on main page must display the "required content".
  • if this were on the same page no problem.开发者_JAVA百科

but how to access across pages?


Expose an event on your ASCX control, subscribe an event handler method on the ASPX page to the event on that page's instance of that control, implement the method to make the required changes to the parent page.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号