C# – Remove My ASP.NET Application master page

asp.netcvisual studiovisual studio 2010

How do I remove My ASP.NET Application master page?

It appears by default on output screen of Microsoft Visual Studio 2010

enter image description here

Best Answer

Change the MasterPageFile of your Default.aspx (or whatever your aspx file is). You can choose to create your own master file or remove the content control from aspx

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TempTest._Default" %>