Skip to main content

Posts

Showing posts from May, 2009

Backup sharepoint site and restore it on another server

Follow the steps to take sharepoint site bckup 1-->Open command prompt 2-->Migrate to sharepoint bin directory C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN 3-->Enter following command to take backup of site on "xx" server on port number : "yyy" stsadm -o backup -url "http://xxx:yyy" -filename c:backup.bak 4-->To restore the site use following command stsadm -o restore -url myothersite/ -filename backup-filename.bak (For New Site) Note: In place of myothersite replace your site name use above command for new site .. use -overwrite for already existing site stsadm -o restore -url myothersite/ -filename backup-filename.bak -overwrite (For Existing Site)

Randomly Displaying a Single SharePoint Item on Refresh

This is how: 1. Create a new Data View web part in SharePoint Designer that displays all records in the format you want. We will end up only showing one record, so keep that in mind when you are laying this out. 2. Open the Filter dialog 3. Do not add any clauses, instead check the Add XSLT Filtering box and click Edit 4. Create your XSLT filter. You can just paste in the following code: [position() = (substring(ddwrt:FormatDateTime(ddwrt:TodayIso(),1033,":mm:ss"),6,2) mod count(/dsQueryResponse/Rows/Row))+1] 5. Click Ok and save the page in SharePoint Designer 6. Check your work in your browser. Refresh the page to see the item rotate.