Using Page_PreInit to assign the master page programmatically (C#)
<%@ Page Language="C#" %> <script runat="server"> protected void Page_PreInit(object sender, EventArgs e) { Page.MasterPageFile = "~/Default.master"; } </script>