AspNetCore.Docs/aspnet/web-forms/videos/how-do-i/how-do-i-handle-events-in-m...

1.5 KiB

uid title author description ms.author ms.date ms.assetid msc.legacyurl msc.type
web-forms/videos/how-do-i/how-do-i-handle-events-in-master-and-content-pages [How Do I:] Handle Events in Master and Content Pages | Microsoft Docs rick-anderson In this video Chris Pels will show how events are handled in master and individual content pages. Even though the end result of a master and individual conte... aspnetcontent 02/21/2008 9b5f1ca6-b394-4b33-8b60-fd0587341482 /web-forms/videos/how-do-i/how-do-i-handle-events-in-master-and-content-pages video

[How Do I:] Handle Events in Master and Content Pages

by Chris Pels

In this video Chris Pels will show how events are handled in master and individual content pages. Even though the end result of a master and individual content page is a single ASP.NET page rendered in the user's browser the event handling in each type of page is handled separately. If a control is located in the master page the corresponding event handler is located in the master page by default. The same is true for controls in the content page. See two approaches to having the events for a control located in the master page handled in the code behind of the content page. This allows "communication" between the master page and content page.

▶ Watch video (23 minutes)