在导入到moss site 的web 应用程序中,将头源代码和尾部修改进行修改
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Hello1.aspx.cs" Inherits="try3._Default" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
....................(内容)
</div>
</form>
</body>
</html>
修改为
<%@ Page masterpagefile="~masterurl/default.master" language="C#" title="Untitled 1" inherits="try3._Default" %>
<asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderMain">
..................(内容)
</asp:Content>