This SharePoint blog has been moved to <a href="http://www.anhero.org">http://www.anhero.org</a>, but this blog will not be deleted, you could still access it. I do not update it. Sorry!

Posted in | Comments(0)»
1. Memory Management – Always, Dispose SPSite and SPWeb Objects if you have created them in your code. You can employ certain coding techniques to ensure object disposal. These techniques include using the following in your code: ..more
Tags: sharepoint2010

Posted in | Comments(0)»
The SPList.GetItems method takes an SPQuery object, which defines the CAML query to run against the SharePoint list. Instead of querying only one list, you can use the SPWeb.GetSiteData method, which takes an SPSiteDataQuery parameter. With such site queries, it is possible to query several lists in one call. Imagine you wish to display the latest documents (say, modified within the last seven days) across multiple document libraries in one grid view ..more
One of the most complex SharePoint web controls is the SPGridView control. Many developers fear it because of its complexity and lack of good documentation. In this section you’ll get a practical introduction to this web control and some good reproducible examples of customizing this control for your own needs. ..more
Copying an attachment is simply a combination of the previous techniques.There is no direct copy method—only reading an attachment into a stream and writing it back into the new attachment. ..more
Tags: sharepoint2010

Posted in | Comments(0)»
In the same way that you can read an attachment, you can add an attachment to a list item. This is the preferred way to overcome the limitations of the common upload dialog and implement something more sophisticated ..more
Tags: sharepoint2010

Posted in | Comments(0)»
This morning I tried to upload a video file to our SharePoint 2010 install in preparation for a presentation tonight and then realised that the default 50mb file size limit was still set so while I was changing the settings to allow larger files I thought I would do a quick post on how/where the setting is and what to change. ..more
Posted in | Comments(0)»
If you are customizing a master page and you find that the breadcrumb is being displayed with the Pages node and the name of the ASPX page like this ..more
Tags: sharepoint

Posted in | Comments(1)»
Since I originally published this, I’ve found that you can simply store the date in a dynamic string and then test the string to see if it is empty. ..more
Tags: sharepoint

Posted in | Comments(0)»
Start by provisioning the MS SMTP server in your local infrastructure. If you are using a single server, you can provision it on that server. ..more
Tags: sharepoint

Posted in | Comments(0)»