SYSK 331: How To Expose A Client-Side Event From Your ASP.NET Control

Consider the following scenario – you create your own calendar control and you’d like to raise an event when a date is selected (e.g. OnDateClicked)… and you’d like for the users of your calendar control to process the event using JavaScript on the client (or think of any other scenario of when a custom client-side event would be useful).

There are plenty samples on how to fire a server-side event, but none that I can find on how to raise one on the client.The code below shows how to make it happen…