User Control And Master Page ASP.Net

<%@ Page Language="C#" %>

    protected void Page_PreInit(object sender, EventArgs e)
    {
        Page.MasterPageFile = "~/Default.master";
    }