ASP.NET: Converting Web Forms to Content Pages
This is for my own reference while we convert some old sites to shiny new stuff. But, other people might find this useful. Every web page in the site was created as an ASP.NET Web Form. No Master Pages were used. To ensure a consistent look-and-feel and consolidate common pieces of code (such as the code that checks whether or not a user is logged in), the Web Forms should be converted to Content Pages. Follow the steps below to convert an existing Web Form to a new Content Page. Open the Web Form to the markup view. Add the following to the @Page directive at the top of the form: MasterPageFile="~/Site.Master" The resulting @Page directive should look something like this: <%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Logon.aspx.vb" Inherits="SGBP.Logon" %> Remove...