Hits

May 2, 2012

Remove Pages on SharePoint Feature Deactivation

Summary

Say you have a Site-scoped feature which creates pages. To remove these pages on deactivation, use the following code:

Apr 30, 2012

XSLT Timeout Errors

Summary

Any SharePoint WebParts which contain an XSLT to transform XML data may sporadically fail with this error message: “Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.”.

You will also see System.StackOverflowException errors in the SharePoint log.

Mar 9, 2012

Localization in the Database Design

Summary

Imagine that you are designing a database for a multi-lingual application. A simple table design is given below.

Non Localized Table

Now take the PetCategories table for instance. How would we store localized versions of the category name?

Pet Categories

Edit Mode - SharePoint Page

Summary

How to force a SharePoint page into Edit mode

http://url.com?ToolPaneView=2&pagemode=edit

Jan 6, 2012

Open Source for .Net Development

Summary

I wanted to list good alternatives to the Microsoft stack for developing websites with Microsoft ASP.Net MVC technology.

Jan 3, 2012

Threadsafe Invocation

Summary

In my opinion, all Windows Forms applications should be designed in a thread-safe manner instead of having everything run on the main UI thread. Use the following code to update the form's controls from your worker thread.

Dec 22, 2011

ASP.Net MVC4 Mobile Tutorial - Part 3

Summary

Continuing from our discussion around a sample ASP.Net MVC4 Mobile application, this final post will discuss the final piece; the UI and how it all comes together.

ASP.Net MVC4 Mobile Tutorial - Part 2

Summary

In the last post, we covered the database design and the Entity model for the sample ASP.Net MVC4 Mobile application. We will continue with the Service layer in this post.

ASP.Net MVC4 Mobile Tutorial - Part 1

Summary

The ASP.NET MVC 4 Developer Preview introduces also new template for mobile web applications which use jQuery Mobile – a special jQuery library for building mobile user interfaces.

In this posting I will show you how to build a new mobile web application based on my real world experience of tracking the feeding activities of my 4 month old baby.

Dec 20, 2011

Elmah Exception Logging with Azure

Summary

If you have an ASP.Net project mapped to an Azure worker role, then Elmah is a great exception handling framework for providing near code-less, world class exception handling for your project. Read on for a step-by-step guide.