Link content page with master page
File: Default.master <%@ Master Language="C#" AutoEventWireup="true"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Acme Pirate Store</title> </head> <body> <form id="form1" runat="server"> <div> <img src="http://www.java2s.com/style/logo.png" /><br /> <asp:contentplaceholder id="ContentPlaceholder1" runat="server"> </asp:contentplaceholder> </div> </form> </body> </html> File: index.aspx <%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" Title="Product Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceholder1" Runat="Server"> <br /> Product: <asp:DropDownList ID="ddlItem" runat="server" Width="140px"> <asp:ListItem Text="P"></asp:ListItem> <asp:ListItem>A</asp:ListItem> <asp:ListItem>B</asp:ListItem> <asp:ListItem>C</asp:ListItem> </asp:DropDownList><br /> <br /> Quantity: <asp:TextBox ID="txtQuantity" runat="server" Width="82px" /> <br /><br /> </asp:Content>