ASP.NET - Raise an event from a user control to the calling page
* This article, and all our great .NET Development documentation, Is available on the .NET Development menu
Raising an event from a user control back to the calling page is one of those ASP.NET patterns that every developer eventually needs, yet it’s rarely explained clearly. User controls are great for encapsulating UI and logic, but they often need to notify the parent page when something happens — a menu click, a selection, a change in state. This article shows the cleanest way to expose an event from a user control and handle it in the parent page using VB.NET. The pattern is simple, reliable
|