Exposing events in ascx files

Results 1 to 2 of 2

Thread: Exposing events in ascx files

  1. #1
    Join Date
    Dec 1969

    Default Exposing events in ascx files

    How to I expose an event in an ASCX file from the parent page (aspx)? E.g. there's a button in the ascx file and I want to raise the clicked event from the parent page.

  2. #2

    Default RE: Exposing events in ascx files

    Do you want to fire the button&#039;s handler or handle the button&#039;s click?<BR>If it&#039;s to fire, then why not expose a method in the control, and just call that method from the page and from the ascx&#039;s event handler.<BR><BR>The second example is much better.<BR>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcondefiningcustomevent.asp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts