ASP.NET MasterPage
@ You can put anything you want to share in the .master file.
@ Starting the .master file with <%@ Master Language="VB" %>, you code the rest of the master page just as you would any other .aspx page.
@ You can use server controls, raw HTML, text, images, events or anything else you normally would use for any .aspx page. This means that your master page can have a Page_Load event as well or any other event that you deem appropriate.