Categories

Automatic webpart deployment on SharePoint

To ease the development process of SharePoint web parts there is a simple way to automatically deploy those.

The following batch file assumes that you are deploying to the GAC directly.

Create this batch file called deploy.bat:

@echo off rem Pass these parameters: $(ProjectDir) $(TargetName)

rem Copy the assemblies to GAC [...]

Sharepoint publishing

This blog entry shows a simple example of programmatic page creation in Sharepoint. To do this you need to activate the publishing infrastructure for the site collection and the publishing feature for the site you want to create pages for.

The following example shows the code to add a page called test.aspx and fill it’s fields [...]

HTML parsing

It can be a cumbersome task to parse HTML files into some kind of .NET object structure. The trouble with HTML files is that they usually are not  valid XHTML and thereby do not comply to the XML standard. There is a great toolkit avaible that accomplishes this task. It is called HtmlAgilityPack.

What it does [...]