1, code debugging to determine the process
CD C:\WINDOWS\system32\inetsrv
Appcmd list WP
Pause
Note: Save the batch file and view the process. bat, double-click when used
2, like the list of new open mode pop-up script
<script type= "Text/javascript" >
function Openframedialog ()
{
var options =sp. UI. $create _dialogoptions ();
Options.url= "http://www.baidu.com";
options.height=160;
Options.dialogreturnvaluecallback=function.createdelegate (null,closedialogcallback);
Sp. Ui. Modaldialog.showmodaldialog (options);
}
function Closedialogcallback (result,target)
{
if result===sp. Ui. DialogResult.OK)
{
javascript:settimeout (' Javascript:return true; ', 8000);
Messageid=sp. Ui. Notify.addnotification ("creating list<b>" +target+ "</b> ...");
}
if (Result ===sp. Ui. DialogResult.Cancel)
{
SP. Ui. Notify.addnotification ("Operation was cancelled ...", false, "", null)
}
}
</script>
<a Href= "Javascript:openframedialog ();" >open dialog</a>
Note: Run on the Moss page
3, the Site Backup restore command
PowerShell's command:
Backup: Backup-spsite http://localhost:10086-Path C:\100861.bak
Restore: Restore-spsite http://localhost:10087-Path C:\10086.bak-Force-DatabaseServer Sharepoint2010-databasename
Wss_content_10087test
Stsadm's command:
Backup: C:\Program files\common files\microsoft Shared\Web Server Extensions\14\bin>stsadm-o Backup-url-
FileName C:/80.bak
Restore: C:\Program files\common files\microsoft Shared\Web Server Extensions\14\bin>stsadm-o Restore-url localhost-
FileName C:/80.bak-overwrite
Central Administration-> Backup and restore
Note: The backup function of the management Center can be restored through PowerShell and Stsadm commands, and the restore function of the central management Center needs to hit the SP1 patch.
4, SharePoint 2010 Object Model programming
A reference to. NET 3.5 is recommended, and if you use. NET 4.0, you will not be able to use the Microsoft.SharePoint class library after compiling perfessional development this book
The record is that SharePoint does not support. Net 4.0.
5, the browser automatically compatible to IE7
<meta http-equiv= "x-ua-compatible" content= "ie=7"/>
6, Code Modification 2010 site style is 2007
SPSite site = new SPSite (site set path);
SPWeb Web = site. OpenWeb (the site path to set);
Web. Uiversion = 3; Change to 2007 style
Web. Update ();
7, show the error, do not show the Friendly interface (2007 changes in the first two, 2010 modify three)
To modify the web.config, locate the following three nodes and modify them to the following values:
<safemode callstack= "true"/>
<customerrors mode= "Off"/>
<compilation debug= "true"/>
In this way, detailed error messages are displayed.
8, maximum permissions to see the "site operation"
<sharepoint:spsecuritytrimmedcontrol authenticationrestrictions= "authenticatedusersonly" Permissions= " Fullmask "
runat= "Server" id= "Yincangwangzhancaozuo" >
<span class= "Siteactionmenu" >
<publishingsiteaction:siteactionmenu runat= "Server"/>
</span>
</SharePoint:SPSecurityTrimmedControl>