Out Of The Box Sharepoint (?)

August 11, 2008

Did you know SharePoint has its own DOM?

Filed under: Sharepoint — Tags: , , — Peter Kruisman @ 8:59 am

Andrew Connel wrote  about Sharepoint 2007 and his own DOM in Understanding how Web Parts are rendered why to never use Render() and a bit on accessibility.

Most interesting in his atricle is that when webpart developers override the render() method the default table markup for a webpart is replaced.
Consequently developers cannot use the default  <div>ID generated by  Sharepoint to get to the Web Part via client-side code. Use RenderContents() or CreateChildControls()… instead.

August 5, 2008

SharePoint.Performance: Optimizing Web Parts

Filed under: Sharepoint — Tags: , , — Peter Kruisman @ 3:31 pm

Eric Shupps writes about performance characteristics of custom-built web parts. Read his blog entry!

August 1, 2008

Webpart development – Object reference not set to an instance?

Filed under: Sharepoint — Tags: , , — Peter Kruisman @ 12:10 pm

OOTB the webpart template from the “Visual Studio 2005 Extensions for Windows SharePoint Services” can give you a terrible headache when you try to redeploy a webpart in development. Doing so you can get the error “Object reference not set to an instance” line 0 column 0  ;-( 

This thread http://forums.msdn.microsoft.com/en-US/sharepointdevelopment/thread/878172b4-95de-4023-8d0b-4f3ec4aaf11c/ can save your day, especially the contribution from Paul Liebrand http://cid-06457d244696ab3c.skydrive.live.com/self.aspx/WSS/MissingFeature.exe The MissingFeature application works for me and got me in less than a minute on track again with OOTB webpart development.

Blog at WordPress.com.