Say you have a Site-scoped feature which creates pages. To remove these pages on deactivation, use the following code:
Musings of a Software Architect
On this blog you will find tips on everyday software development using .Net technology, posts on higher level Microsoft products such as Biztalk and Sharepoint, design pattern discussions, Sql Server posts, training tips and the odd troubleshooting help.
May 2, 2012
Apr 30, 2012
XSLT Timeout Errors
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
Imagine that you are designing a database for a multi-lingual application. A simple table design is given below.
Now take the PetCategories table for instance. How would we store localized versions of the category name?
Edit Mode - SharePoint Page
How to force a SharePoint page into Edit mode
http://url.com?ToolPaneView=2&pagemode=edit
Jan 6, 2012
Open Source for .Net Development
I wanted to list good alternatives to the Microsoft stack for developing websites with Microsoft ASP.Net MVC technology.
Jan 3, 2012
Threadsafe Invocation
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
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
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
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
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.