Monday, March 26, 2012

<nativehr>0x80070057</nativehr><nativestack></nativestack> ArgumentException

If you encounter an error like this:

<nativehr>0x80070057</nativehr><nativestack></nativestack> ArgumentException

While developing query with Linq To Sharepoint, most probably you have a wrong target platform; you must target ALL your project to x64 platform.

Monday, March 12, 2012

Sharepoint 2010 DataFormWebPart doesn't show all the items

Some time ago I developed a custom page with a DataFormWebPart paged and groping enabled; with my surprise I found that clicking on "next page" icon a javascript error was raised on the javascript console.

After some investigation I discovered that the javascript embedded into the <a> element was malformed.

The charter ' was correctly encoded %27 in the source html but when redered by the browser and then decoded the javascript function fail.

The code below is a simple workaround for the bug