17,981 reputation
1721
bio website TheBlackKnightSings.com
location Copenhagen, Denmark
age 51
visits member for 2 years, 11 months
seen 13 hours ago
stats profile views 942

I'm a SharePoint developer who has been programming professionally since 1981, with foucs on SharePoint since 2006.

Current jobs:

  • "Principal SharePoint Developer" at Denmarks leading SharePoint consultancy firm (ProActive) in Copenhagen/Denmark.
  • Author/Instructor for DevelopMentor doing SharePoint courses for developers

Other links:


Mar
26
comment Page.ClientScript.RegisterClientScriptInclude in Sandbox?
There is no way you can make sure that the resource isn't loaded twice if it's something like jQuery where others may include it in their web parts. If you want to prevent yourselves from loading the resource twice then you need to render JavaScript which checks/sets a "global" flag and then load the resource dynamically if it's the first time on the page.
Mar
21
comment What is the difference between properties.OpenWeb() and properties.Web?
SharePoint don't generally deprecate things just because there now is a better option
Jan
10
comment CAML Query OrderBy ignoring non set values
Then use the formular =IF(ISNUMBER(ArticlePriority),ArticlePriority,999999)
Jan
4
comment Saving changes made in a webpart
So if all you do in the click event is to set a flag that the button was clicked, then you can check that in a later event when the provided is provided and ready to provide the data
Jan
4
comment Saving changes made in a webpart
What about in the OnPreRender event?
Dec
14
comment Split page into columns
Due to the dynamic and flexible nature of pages in SP2013 MS has decided that the Design view didn't make sense and therefore they removed it
Dec
14
comment Split page into columns
Which kind of page do you want to create? And yes SharePoint designer works fine wieh SharePoint Server unless the administrators has disabled it (and you have the rights to use it)
Nov
7
comment Why we shouldn't use SPWeb witryna = SPContext.Current.Web;
YES, neither Using nor Dispose. Whether you use SPWeb witryna = SPContext.Current.Web; or var witryna = SPContext.Current.Web; doesn't matter that's exactly the same. (I just prefer var when the type is obvious). Using SPWeb witryna = SPContext.Current.Web; isn't opening anything it's just making a local variable point to the already opened web, which is passed to all the controls on the page and therefore should be Dispose by your code.
Nov
7
comment Why we shouldn't use SPWeb witryna = SPContext.Current.Web;
See additions to answer
Nov
7
comment How to show documents in a webpart like Sharepoint does?
You can't populate that client side, but you may populate a dummy row on the server and the use that as a template for adding additinal rows client side. The advantage over doing all of the generation client side is that you html will follow changes made in SharePoint
Nov
5
comment HTTP-500 after creating new web applications
Check the Windows Event Logs.
Nov
5
comment owner field value disappears when coping document to another SC
How do you copy the document? It'll be almost impossible to keep the IDs of users in two site collections in sync as thats the ID of the user in the User Information List and depends on the order the users visit/are used in the site
Nov
5
comment RSS Viewer Can't load
Does your sharepoint servers have access to the internet? The RSS webpart is loading it's data on the server not on the client.
Nov
5
comment Automatically Activate Feature when subsite created
Feature Stapling doesn't work with WebTemplates
Nov
5
comment Sandboxed solutions get all sharepoint lists in sitecollection
Thanks for removing the leak.
Nov
4
comment Sandboxed solutions get all sharepoint lists in sitecollection
It very much depends on the classes involved and what you need to do. But I usually prefer to do all the processing while looping through the webs (can be through a delegate). Sometimes it's better to keep the webs for which you return lists alive and dispose them in your own dispose method.
Nov
4
comment CAML Query for Values Not “In” (with sufficiently different title to let me post the question)
From a SQL performance point of view <In> is purely suntactic sugar, but SharePoint can handle a lot more values in <In> before it breaks.
Nov
4
comment Sandboxed solutions get all sharepoint lists in sitecollection
Note that you'll not be able to use the returned list for anything without causing SharePoint to revitalize the disposed web, which then will leak.
Nov
1
comment Trouble with Claims Auth
What url are you getting the error at? Should be http://SITE_URL/_trust/. Anything in the ULS logs?
Nov
1
comment I loss the listitem which was added to list using Item Added Event Receiver
I don't understand your problem, maybe create a new question with your updated code, what you want to do and what the problem is.