Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » Coding Tips   (RSS)

Modifying SharePoint RSS Feeds using a custom control adapter - Implementing Delta Encoding

We frequently get questions from customers if it is possible to modify the data sent in the RSS feed to the client. SharePoint itself allows to specify the columns which can be included in the Description field, the number of items to return as a maximum

How to deal with invalid characters in SOAP responses from ASP.NET web services

ASP.NET webservices use XML 1.0 which restricts the character set allowed to the following chars: [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.

How to create a browser cache save URL to a javascript or css file in SharePoint

Often it is necessary to ensure that updates to files on the server get populated to the client asap. Especially when it comes to dependencies to custom javascript of CSS files and server controls. SharePoint itself does this by adding a query string

Interesting SPWeb leak pattern with Areas in SPS 2003

Recently I came across another very interesting coding pattern which is very similar to the interesting SPSite leak I showed a couple of days ago. public void workOnArea(Area area) { if ( area.Web != null) { string url = area.Web .Url; area.Web .Dispose();
Posted by Stefan_Gossner | 2 Comments
Filed under: ,

SPDisposeCheck v1.3.1 is released - and Whitepaper on Best Practices when using disposable objects in SharePoint has been updated

[via Paul Andrew's blog] SPDisposeCheck is a tool to help SharePoint Developers follow memory management best practices when using the SharePoint API with IDisposable objects including SPSite and SPWeb. This tool is not supported by Microsoft and is recommended

Querystring parameters you should not use in your SharePoint application

Today I have been working on a support case where customer experienced exceptions in sharepoint when passing in specific query string parameters which are evaluated by his web parts. The URL looked similar to this: http://servername/Pages/MyPage.aspx?ID=<number>

Interesting SPSite leak pattern

Today I came across a very interesting coding pattern: public void enumSiteCollection(SPSiteCollection spSites, int min, int max) { for (int i = min; i<max; i++) { if ( spSites[i] != null) { DoSomething( spSites[i] ); spSites[i] .Dispose(); } } } On

Guarantee dispose using try / finally blocks

Lots of articles have been written in the past which outline the importance of proper dispose for SharePoint SPSite and SPWeb objects in custom code. One important topic which hasn't been discussed very often till now is how to avoid missing a dispose

SPDisposeCheck tool has been official announced

I have discussed problems with missing dispose for SPWeb and SPSite objects earlier on my blog (e.g. here and here ) and Roger has provided a guidance for specific coding patterns which can cause problems such problems. In the last couple of month I have

Learning Track: SharePoint for Developers – Part 1

www.MyRampUp.com now hosts a brand-new learning track: SharePoint for Developers, Part I Ramp Up is a free, online, community-based program that can help users save time in learning Microsoft technology. The easy-to-access content (provided by subject-matter

How to programmatically retrieve the root site of a Variation

The Admin UI of the site collection provides easy access to the variation settings. But the object model does not provide easy access to these settings. There are many scenarios where it would be (e.g.) very interesting to know which site is the root

Pimp My Content Deployment Job

As a follow up to my article series about the content deployment and migration API here are some tips on how you can "fine-tune" the out of the box content deployment jobs. This will include information about how adjust settings in Content Deployment

Adjusting the MOSS ROBOTS meta tag for 3rd party search engines - using a Control Adapter (last update: April 11th)

When developing a public facing website using the publishing features of MOSS it might be required to emit a ROBOTS meta tag that prevents internet search engines from indexing specific pages. The standard RobotsMetaTag control included in WSS generates

My Code Samples (previously hosted on GotDotNet)

As some of you already noticed: GotDotNet is now down and the code samples previously hosted there have been migrated to the MSDN code gallery. For your convenience here is an overview page of all the code samples which now link to the new location

Code Samples

As some of you already noticed: GotDotNet is now down and the code samples previously hosted there have been migrated to the MSDN code gallery. For your convenience here are links to all my code samples: MCMS Add WYSIWYG to the HtmlPlaceholderContr ol
More Posts Next page »
 
Page view tracker