How to assign a master page to a existing .aspx page ?
Add this to your existing aspx Page declaration:
MasterPageFile="~/SomeMasterPage.Master"
Should also mention that to add page specific content to your Page you also need to add any Content tags (defined in your Master Page) to your aspx page also:
<asp:Content ID="myContent" ContentPlaceHolderID="someContent" runat="server">
// Page Content goes here
</asp:Content>
If you don't put these in then the default content from your Master Page is used instead.
Using the page level directive in an aspx page:
<%@ page language="C#" masterpagefile="~/Default.Master" codebehind="..." inherits="..." title="..." %>
When assigning an existing .aspx page to a master page all the basic elements of a web-page now resides with the master page like head, body, title etc. Hence if your page is using these elements for purpose like giving title to the webpage, defining javascripts in the tag... all these operations now need to be done on the master page. But if you need to assign these elements the respective values at child - page level then you need to define a content place holder in the head tag of the master page. Another content place holder should be placed within the body of the master-page.
At the child-page you will be having two content place holders, one for head and other for body. After which you will need to put the needful code in the respective content place holders.
Further if your application is too big u may need the concept of implementing nested master pages.... for more refer this