您的位置:首页 > 其它

MOSS修改createpage页面

2009-02-21 17:07 246 查看
修改MOSS的createpage.aspx页面,创建新页面时可以到自己创建的文档库。从C盘找到文件,先复制备份一下。开始修改:

<%@ Assembly Name="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Page Language="C#" Inherits="Microsoft.SharePoint.Publishing.Internal.CodeBehind.CreatePagePage" MasterPageFile="~/_layouts/application.master" %> <%@ Import Namespace="Microsoft.SharePoint.WebControls" %> <%@ 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" %> <%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="LinksTable" src="/_controltemplates/LinksTable.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/InputFormControl.ascx" %> <%@ Register TagPrefix="wssuc" TagName="LinkSection" src="/_controltemplates/LinkSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/ButtonSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ActionBar" src="/_controltemplates/ActionBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBar" src="/_controltemplates/ToolBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %> <%@ Register TagPrefix="wssuc" TagName="Welcome" src="/_controltemplates/Welcome.ascx" %>
<%@ Register Tagprefix="CMS" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="CmsInternal" Namespace="Microsoft.SharePoint.Publishing.Internal.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Osrv" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint.Publishing" %>
<script runat="server">
string _folderUrl ;
int _layoutId ;
string _pageName ;
void CreatePageToCurrentFolder(object sender, EventArgs e)
{
_folderUrl = "" + Request.QueryString["RootFolder"];
_layoutId = Convert.ToInt32( dropdownList.SelectedValue );
_pageName = this.urlNameTextBox.Text.Trim() + ".aspx" ;
CreatePage();
}

PageLayout GetPageLayout( PublishingWeb publishingWeb , int layoutId)
{
PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();

foreach( PageLayout l in layouts )
{
if( l.ListItem.ID == layoutId){
return l ;
}
}
return null ;
}

void CreatePage()
{ //bool o = PublishingWeb.IsPublishingWeb(base.Web) ;
PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(base.Web);
PublishingSite site = new PublishingSite(base.Web.Site);
//if (publishingWeb.GetPublishingPages()["Pages/my1.aspx"] == null)
//Create the default page //SPContentTypeId contentTypeID = new SPContentTypeId("0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900916CECA7C77446059633C4287903AA2A");
//PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
//PageLayout selectedPageLayout = layouts[0];
PageLayout selectedPageLayout = GetPageLayout( publishingWeb , _layoutId ) ;
string fullPagePath = _pageName ;
if( _folderUrl != "" )
fullPagePath = _folderUrl + "/" + _pageName ;
PublishingPage newPage = publishingWeb.GetPublishingPages(1).Add( fullPagePath , selectedPageLayout);
newPage.Title = this.titleTextBox.Text.Trim() ;
newPage.Update();
SPListItem item = publishingWeb.PagesList.GetItemById( newPage.ListItem.ID );
item["Title"] = this.titleTextBox.Text.Trim() ;
// item["主题"] = this.urlNameTextBox.Text.Trim() ;
//item.Update();
//Set the default page
SPFile welcomeFile = base.Web.GetFile(newPage.Url);
//publishingWeb.DefaultPage = welcomeFile;
string webUrl = publishingWeb.Url;
if (!webUrl.EndsWith("/"))
webUrl += "/";
Page.Response.Redirect(webUrl + newPage.Url + "?ControlMode=Edit&DisplayMode=Design");
//publishingWeb.Update();
}
</script>

<asp:Content contentplaceholderid="PlaceHolderPageTitle" runat="server">
<asp:Literal runat="server" ID="pageTitle" />
</asp:Content>
<asp:Content contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
<asp:Literal runat="server" ID="pageTitleinTitlePage" />
</asp:Content>
<asp:Content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:ScriptLink language="javascript" name="commonvalidation.js" runat="server" />
<SharePoint:ScriptLink language="javascript" name="datepicker.js" Localizable="false" runat="server" />
<SharePoint:ScriptLink language="javascript" name="PickerTreeDialog.js" runat="server" />
<SharePoint:ScriptLink language="javascript" name="BForm.js" runat="server" />
<SharePoint:ScriptLink language="javascript" name="Serialize.js" runat="server" Localizable="false" />
<SharePoint:ScriptLink language="javascript" name="SpellCheckEntirePage.js" runat="server" />
<SharePoint:CssRegistration name="portal.css" runat="server" />
<script type="text/javascript" Language="javascript">
function Visascii(ch)
{
return (!(ch.charCodeAt(0) & 0x80));
}
function Visspace(ch)
{
return (ch.charCodeAt(0) == 32) || ((9 <= ch.charCodeAt(0)) && (ch.charCodeAt(0) <= 13));
}
function stripWS(str)
{
var b = 0;
var e = str.length;
while (str.charAt(b) && (Visascii(str.charAt(b)) && Visspace(str.charAt(b))))
b++;
while ((b < e) && (Visascii(str.charAt(e-1)) && Visspace(str.charAt(e-1))))
e--;
return ((b>=e)?"":str.substring(b, e ));
}
var L_NoFieldEmpty_TEXT = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,common_nofieldempty_TEXT%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
function CheckForEmptyField(text_orig,field_name)
{
var text = stripWS(text_orig);
if (text.length == 0)
{
alert(StBuildParam(L_NoFieldEmpty_TEXT, field_name));
return false;
}
return (true);
}
function CheckForEmptyFieldNoAlert(text_orig)
{
var text = stripWS(text_orig);
if (text.length == 0)
{
return false;
}
return (true);
}
var L_WrongEmailName_TEXT = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,common_wrongemailname_TEXT%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
function CheckForAtSighInEmailName(text_orig,field_name)
{
var text = stripWS(text_orig);
if (!CheckForEmptyField(text_orig,field_name)) return false;
var indexAt = 0;
var countAt = 0;
var countSpace = 0;
var len = text.length;
while(len--)
{
if (text.charAt(len) == '@')
{
indexAt = len;
countAt++;
}
if (text.charAt(len) == ' ')
countSpace ++;
}
if ((countAt == 0) ||
(indexAt == 0) ||
(indexAt == (text.length-1))
)
{
alert(StBuildParam(L_WrongEmailName_TEXT, field_name));
return false;
}
if (countSpace !=0 )
{
alert(L_TextWithoutSpaces1_TEXT + field_name);
return false;
}
return (true);
}
function _spBodyOnLoad()
{
var buttonCreatePageClientId = "<%=buttonCreatePage.ClientID%>";
var button = document.getElementById(buttonCreatePageClientId);
if (button!= null && button.setActive != null)
{
button.setActive();
}
var titleTextBoxClientId = "<%=titleTextBox.ClientID%>";
var textbox = document.getElementById(titleTextBoxClientId);
if (!textbox.disabled)
{
textbox.focus();
}
var updateCheckboxId = "<%=updatePreviouslyConvertedPage.ClientID%>";
UpdatePreviouslyCreatedPageOnClick(document.getElementById(updateCheckboxId), true);
var emailCheckboxId = "<%=processingSendMail.ClientID%>";
SetEmailControlState(document.getElementById(emailCheckboxId));
}
function ValidateTarget(obj)
{
if(obj != null && obj.length >=1)
{
var local = document.getElementById("TargetID");
local.value = obj;
return true;
}
return false;
}
function SetDisabledStateInSpan(disable, spanName)
{
var element = document.getElementById(spanName);
elementsInSpan = element.all;
for (var i = 0; i < elementsInSpan.length ; i++)
{
elementsInSpan[i].disabled = disable;
}
}
function SetVisibleStateInSpan(visible, spanName)
{
var element = document.getElementById(spanName);
elementsInSpan = element.all;
var ds = "";
if (!visible)
{
ds = "none";
}
for (var i = 0; i < elementsInSpan.length ; i++)
{
elementsInSpan[i].style.display = ds;
}
}
function UpdatePreviouslyCreatedPageOnClick(eElement, IsLoad)
{
if (eElement != null)
{
ShowHideInputFormSection("<%=locationPickerSection.ClientID%>", !eElement.checked);
ShowHideInputFormSection("<%=pageTitleSection.ClientID%>", !eElement.checked);
STSValidatorEnable("<%=pageUrlNameRequiredValidator.ClientID%>", !eElement.checked, false);
STSValidatorEnable("<%=pageUrlNameValidator.ClientID%>", !eElement.checked, false);
if (!IsLoad)
{
STSValidatorEnable("<%=pageExistsValidator.ClientID%>", !eElement.checked, false)
}
}
}
function UpdateUrl()
{
var urlNameTextBoxClientId = "<%=urlNameTextBox.ClientID%>";
var urlTextBox = document.getElementById(urlNameTextBoxClientId);
var titleTextBoxClientId = "<%=titleTextBox.ClientID%>";
var titleTextBox = document.getElementById(titleTextBoxClientId);
if (urlTextBox.value == "")
{
var suggestUrlValue = "";
for (var i=0;i<titleTextBox.value.length;i++)
{
var currentChar = titleTextBox.value.charAt(i);
if (IndexOfIllegalCharInUrlLeafName(currentChar) == -1)
{
suggestUrlValue += currentChar;
}
else if (currentChar == '.' && i > 0 && i < (titleTextBox.value.length-1))
{
suggestUrlValue += currentChar;
}
}
suggestUrlValue = suggestUrlValue.replace(/ /g,"");
suggestUrlValue = suggestUrlValue.replace(//./g,"");
if (!UrlContainsIllegalStrings(suggestUrlValue))
{
urlTextBox.value = suggestUrlValue.substring(0,123);
}
}
}
function SetEmailControlState(eElement)
{
if (eElement != null)
{
SetDisabledStateInSpan(!eElement.checked, "<%=disableIfNoEmailDesired.ClientID%>");
}
}
function setSrcAttributeOnRealImage(delegateElement, value)
{
var imageElementId = "<%=previewImageTarget_real.ClientID%>"
imageElement = document.getElementById(imageElementId);
imageElement.src = value;
}
function setInneHTMLOnRealDescription(element, value)
{
spanElement = document.getElementById("descriptionTarget_real");
spanElement.innerHTML = value;
}
</script>
</asp:Content>
<asp:Content contentplaceholderid="PlaceHolderPageDescription" runat="server">
<span style="color:red"><asp:Literal runat="server" ID="pageDescriptionError" /></span>
<asp:Literal runat="server" ID="manageConverterSettingsTunnelLinkLabel" />
<Osrv:PageError ID="pageErrorControl" runat="server" />
</asp:Content>
<asp:Content contentplaceholderid="PlaceHolderMain" runat="server">
<table class=propertysheet border="0" width="100%" cellspacing="0" cellpadding="0" id="diidProjectPageOverview">
<!-- RCA-only section - offer to update previously converted page -->
<wssuc:InputFormSection ID="updateExistingPageSection" Title="<%$Resources:cms,createpage_updateexisting_sectionheader%>"
Description="<%$Resources:cms,createpage_updateexisting_sectiondescription%>"
runat="server">
<Template_InputFormControls>
<Template_Control>
<wssawc:InputFormCheckBox ID="updatePreviouslyConvertedPage" LabelText="<%$Resources:cms, createpage_updatepreviouslycreatedpage_label%>" onclick="javascript:UpdatePreviouslyCreatedPageOnClick(this, false)" runat="server" >
<SharePoint:EncodedLiteral runat="server" text="<%$Resources:cms, createpage_existingpageurl_label%>" EncodeMethod='HtmlEncode'/>
<SPAN dir="ltr">
<asp:Label ID="previouslyConvertedPageUrl" runat="server"/>
</SPAN>
<asp:Label ID="rcaOverwriteWarning" runat="server"/>
</wssawc:InputFormCheckBox>
<Osrv:DelegateValidationControl id="pageToUpdateNotCheckedOutValidator" IsInputForm="True" runat="server" />
<Template_Control>
</Template_InputFormControls>
</wssuc:InputFormSection>
<!-- Location Picker -->
<wssuc:InputFormSection ID="locationPickerSection" Title="<%$Resources:cms,convertersettings_location_sectionheader%>"
Description="<%$Resources:cms,createpage_rcalocation_sectiondescription%>"
runat="server">
<Template_InputFormControls>
<asp:PlaceHolder id="locationSelectorControl" runat="server"/>
<SPAN dir="ltr">
<asp:Label ID="locationAdminSelectionLabel" runat="server"/>
</SPAN>
<Osrv:DelegateValidationControl id="targetLocationHasPagesListValidator" IsInputForm="True" runat="server" />
</Template_InputFormControls>
</wssuc:InputFormSection>
<!--PageTitleAndDesc-->
<wssuc:InputFormSection ID="pageTitleSection" Title="<%$Resources:cms,createpageandpagesettings_titleanddescription_sectionheader%>"
Description="<%$Resources:cms,createpageandpagesettings_titleanddescription_sectiondescription%>"
runat="server">
<Template_InputFormControls>
<wssuc:InputFormControl LabelText="<%$Resources:cms,createpageandpagesettings_title_label%>" LabelAssociatedControlID="titleTextBox" runat="server">
<Template_Control>
<wssawc:InputFormTextBox Title="<%$Resources:cms, createpage_title_textboxdefault%>" class="ms-input" ID="titleTextBox" Columns="35" Runat="server" MaxLength="255" onchange="UpdateUrl()" onfocusout="UpdateUrl()" />
</Template_Control>
</wssuc:InputFormControl>
<wssuc:InputFormControl LabelText="<%$Resources:cms,createpageandpagesettings_description_label%>" LabelAssociatedControlID="descriptionTextBox" runat="server">
<Template_Control>
<wssawc:InputFormTextBox Title="<%$Resources:cms, createpage_description_textboxdefault%>" class="ms-input" ID="descriptionTextBox" Runat="server" TextMode="MultiLine" Columns="40" Rows="3" MaxLength="512" />
</Template_Control>
</wssuc:InputFormControl>
<wssuc:InputFormControl LabelText="<%$Resources:cms,createpageandpagesettings_urlname_label%>" LabelAssociatedControlID="urlNameTextBox" runat="server">
<Template_Control>
<div noWrap="true">
<asp:Label ID="parentUrlLabel" runat="server"/>
<wssawc:InputFormTextBox Title="<%$Resources:cms, createpage_urlname_textboxdefault%>" class="ms-input" ID="urlNameTextBox" Columns="35" Runat="server" dir="ltr" MaxLength="123" />
<Label>.aspx</Label>
</div>
<div>
<wssawc:InputFormRequiredFieldValidator id="pageUrlNameRequiredValidator" ControlToValidate="urlNameTextBox" Display="Dynamic" Runat="server"/>
<wssawc:UrlNameValidator id="pageUrlNameValidator" ControlToValidate="urlNameTextBox" Display="Dynamic" runat="server" />
<CMS:DocumentLibraryFileExistValidator id="pageExistsValidator" DocumentLibrary="<%# PagesLibrary %>" AppendFileExtension=".aspx" ErrorMessage="<%$Resources:cms, createpage_errormessage_pagename_already_exists%>" ValidIfExists="false" ControlToValidate="urlNameTextBox" Display="Dynamic" runat="server" />
</div>
</Template_Control>
</wssuc:InputFormControl>
</Template_InputFormControls>
</wssuc:InputFormSection>
<!--Layout Template-->
<wssuc:InputFormSection ID="layoutPickerSection" Title="<%$Resources:cms,createpageandpagesettings_pagelayout_sectionheader%>"
runat="server">
<Template_Description>
<SharePoint:EncodedLiteral runat="server" text="<%$Resources:cms, createpageandpagesettings_pagelayout_sectiondescription%>" EncodeMethod='HtmlEncode'/>
<br />
<br />
<img style="width: 3in;" id="previewImageTarget_real" alt="<%$Resources:cms, generic_previewimage_alttext%>" runat="server"/>
<div id="descriptionTarget_real" class="ms-vb" />
</Template_Description>
<Template_InputFormControls>
<wssuc:InputFormControl runat="server">
<Template_Control>
<CMSInternal:DropDownListWithDetails DropDownListId="dropdownList" Tooltip="<%$Resources:cms,createpageandpagesettings_pagelayout_sectionheader%>"
ClientCallbackOnPreviewImageChanged="setSrcAttributeOnRealImage" ClientCallbackOnDescriptionChanged="setInneHTMLOnRealDescription"
runat="server" id="pageTemplatePicker">
<Template_Control>
<asp:DropDownList id="dropdownList" runat="server" Size="10" />
<span id="previewImageTarget" ></span>
<span id="descriptionTarget" ></span>
</Template_Control>
</CMSInternal:DropDownListWithDetails>
</Template_Control>
</wssuc:InputFormControl>
</Template_InputFormControls>
</wssuc:InputFormSection>
<Osrv:DelegateValidationControl id="layoutValidation" IsInputForm="True" runat="server" />
<!-- Variations: Label to create base page in -->
<wssuc:InputFormSection ID="labelPickerSection" Title="<%$Resources:cms,createpage_variationlabel_sectionheader%>"
Description="<%$Resources:cms,createpage_variationlabel_sectiondescription%>"
runat="server">
<Template_InputFormControls>
<wssuc:InputFormControl LabelText="<%$Resources:cms,createpage_variationlabel_label%>" LabelAssociatedControlID="labelDropDownList" runat="server">
<Template_Control>
<asp:DropDownList ID="labelDropDownList" AutoPostBack="false" runat="server">
</asp:DropDownList>
</Template_Control>
</wssuc:InputFormControl>
</Template_InputFormControls>
</wssuc:InputFormSection>
<!-- Variations: Images and Attachments Section -->
<wssuc:InputFormSection ID="resourceSection" runat="server" Title= "<%$Resources:cms,resourcesection_header%>"
Description= "<%$Resources:cms,resourcesection_description%>" >
<Template_InputFormControls>
<wssuc:InputFormControl LabelText="<%$Resources:cms, resourcesection_title%>" runat="server">
</wssuc:InputFormControl>
<Template_Control>
<wssawc:InputFormRadioButton ID="referenceRadioButton" LabelText="<%$Resources:cms, new_variation_page_radio_button_reference_resource%>" GroupName="Resource_Group" runat="server">
</wssawc:InputFormRadioButton>
<wssawc:InputFormRadioButton ID="copyRadioButton" LabelText="<%$Resources:cms, new_variation_page_radio_button_copy_resource%>" GroupName="Resource_Group" runat="server">
</wssawc:InputFormRadioButton>
</Template_Control>
</Template_InputFormControls>
</wssuc:InputFormSection>
<!--Processing -->
<wssuc:InputFormSection ID="processingSection" Title="<%$Resources:cms,createpage_processing_sectionheader%>"
Description="<%$Resources:cms,createpage_processing_sectiondescription%>"
runat="server">
<Template_Description>
<SharePoint:EncodedLiteral runat="server" text="<%$Resources:cms, createpage_processing_sectiondescription%>" EncodeMethod='HtmlEncode'/>
<a href="javascript:HelpWindowKey('WCMSCAProcessing');"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:cms, MultPages_MoreInfo_LinkText%>" EncodeMethod='HtmlEncode'/></a>
</Template_Description>
<Template_InputFormControls>
<asp:Label ID="processingAdminSelectionLabel" runat="server"/>
<wssawc:InputFormRadioButton ID="processingSync" LabelText="<%$Resources:cms, createpage_processingsync_radiotext%>" GroupName="ProcessingRadioGroup" runat="server"/>
<wssawc:InputFormRadioButton ID="processingAsync" LabelText="<%$Resources:cms, createpage_processingasync_radiotext%>" GroupName="ProcessingRadioGroup" runat="server"/>
<wssuc:InputFormControl runat="server">
<Template_Control>
<wssawc:InputFormCheckBox ID="processingSendMail" LabelText="<%$Resources:cms, createpage_sendemail_label%>" onclick="javascript:SetEmailControlState(this);" runat="server"/>
</Template_Control>
</wssuc:InputFormControl>
<span id="disableIfNoEmailDesired" runat="server">
<wssuc:InputFormControl LabelText="<%$Resources:cms,createpage_emailnames_label%>" LabelAssociatedControlID="emailPicker" runat="server">
<Template_Control>
<wssawc:PeopleEditor id="emailPicker" runat="server" SelectionSet="User,SecGroup,SPGroup" MultiSelect="true" width="400px" ValidatorEnabled="true" />
</Template_Control>
</wssuc:InputFormControl>
</span>
</Template_InputFormControls>
</wssuc:InputFormSection>
<!-- The Save/Cancel Buttons -->
<wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
<Template_Buttons>
<input type="button" id="checkSpellingButton" class="ms-ButtonHeightWidth ms-slDlg-BrowseButton" value="<%$SPHtmlEncodedResources:cms, cmsslwpaddeditlink_checkspellingbutton_text%>" runat="server"/>
<asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="CreatePageToCurrentFolder" Text="<%$Resources:cms, createpage_createbutton%>" id="buttonCreatePage" AccessKey="<%$Resources:cms,createbutton_accesskey%>"/>
<asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="HandleCancelButtonClick" Text="<%$Resources:cms, multipages_cancelbutton_text%>" id="buttonCancel" CausesValidation="false" AccessKey="<%$Resources:cms,cancelbutton_accesskey%>"/>
</Template_Buttons>
</wssuc:ButtonSection>
<SharePoint:FormDigest runat=server/>
</table>
</asp:Content>

只是加入了保存时的click事件,可以保存到指定文件夹。

修改时走了一些弯路,设置新建页面的Title时用从网上复制过来的代码老出错,最后改为注释掉的代码,把SPListItem方式设置属性给注释掉,问题解决。还有一点,不要在spd中修改,最好在vs2005中改。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: