Between native and 3rd party options there are probably 86 ways to backup SharePoint. However sometimes you want something simple and guarenteed. The Export to Spreadsheet option is an example – its basic but works – kind of cosey. So I wrote a console app that lets me quickly dump the contents of a Site to a series of CSV files and zips them.
All Posts Tagged
Tag: ‘Sharepoint’
Using a Console Application to perform SharePoint Tasks
Often it is forgotten that you can also access SharePoint via a standard console application. This can be very handy when making bulk changes to a list that are a one off event, as you can make the change without negotiating the UI or you can schedule the job as a Task rather than working through a Timer job. Console apps can also be very handy in testing complicated logic prior to binding to an event, such as a button OnClick.
SharePoint 2007 AJAX Timer Fires Only Once?
When I punched the solution into SharePoint 2007 I found that the UpdateTimer_Tick method would only run once. I must admit I spent some time on it, rebuilding, tweaking, debugging – I even built the solution in a new stock ASP site – everything looked ok but in SharePoint 2007 it still only run once. After some research on I found references to the issue being the _spFormOnSubmitWrapper method on the SharePoint init.js file. I dont like editing the out-of-the-box files in SharePoint, so I continued my research into ways the method could be overridden locally.
SharePoint 2007 Clear Timer Job Status Entries
A way of removing Timer Job Status failure entries when your SharePoint Custom Timer Job went Bad.
SharePoint – Generic Item Add / Update
There are numberous ways to create or update an existing item. What can be an issue is catering for the various source of the values – you may want to add/update an item based on the values from a form, another SPListItem, a collection, or property / object values. This simple method allows you to add/update item on the fly (inc copy one Item to another) without having to manage large number of Converts and Casts.
SharePoint – Run with Elevated Permissions vs Impersonate
For some time Ive been using the standard code of SPSecurity.RunWithElevatedPrivileges but my research has found its better to impersonate rather than elevate. Ive been running this new impersonate instead of elevate code for several months now and have found no problems whatsoever, in fact it has ran far smoother.
Create your own Login link on SharePoint / WSS Sites
If you have a SharePoint or WSS site with anonymous access enabled you often want to give a simple logon process for users – something like the /wp-admin of WordPress. If you don’t want to go through the Forms Authentication process you can create a similar experience just using a simple WebPart and a published Page.
Redirect Anonymous Users on a Public SharePoint Site
Enabling anonymous users on a public SharePoint or WSS site can be a simple yet difficult thing. Simple, in that it involves just a few tick boxes, difficult in that it can expose a lot more of the site that your wish to show. I created a WebPart that detects anonymous users and redirects them to a given page to ensure there are no security gaps.

Recent Comments