OPEN TO WORK

Available for new opportunities! Let's build something amazing together.

Quick Tip: Converting SharePoint 2010 Application Page to SharePoint 2007

Application Page
post

This post is over a year old, some of this information may be out of date.

When you need to convert an application page from SharePoint 2010 to SharePoint 2007, these are the steps that need to be done:

  1. Change the “SharePoint.WebControls” and the “SharePoint.Utilities” assemblies version numbers from “14.0.0.0” to “12.0.0.0”;
  2. Remove the “Microsoft.Web.CommandUI” assembly line: {{< caption-new “/uploads/2011/05/051011_0946_ConvertingS1.png” “Assembly Reference to be removed” “data
    /jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAIAAABol6gpAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAKklEQVR4nAEfAOD/ANTJpdXJycTL2sbJ18nN18jM18nM18XJ2MPG2svNyHDhF+b0TloVAAAAAElFTkSuQmCC” “605” “13” >}}
  3. Change the “DynamicMasterPageFile” attribute name to “MasterPageFile”, and replace the value with the following: {{< caption-new “/uploads/2011/05/051011_0946_ConvertingS2.png” “MasterPageFile Attribute” “data
    /jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAIAAABol6gpAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAKklEQVR4nAEfAOD/AP7k3/7d3v7g4PHm8+XZ9OTX8uHU8+PX8uTV8evi9qZsGyO8Nv2MAAAAAElFTkSuQmCC” “328” “20” >}}

The result should be something like this:

<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplicationPage1.aspx.cs" Inherits="estruyf.Project.ApplicationPage1" MasterPageFile="~/_layouts/application.master" %>

Report issues or make changes on GitHub

Found a typo or issue in this article? Visit the GitHub repository to make changes or submit a bug report.

Comments

Elio Struyf

Solutions Architect & Developer Expert

Loading...

Let's build together

Manage content in VS Code

Present from VS Code