Simple Provider Consumer Visual Webparts

11 Jun

Because of a question on I decided to create a provider consumer webpart in his most simple form.    Create an empty SharePoint project in Visual studio. Add two Visual WebParts:    ProviderVisualWebpart ConsumerVisualWebpart     In this most simple form of a provider … Read More »

Permormance issue GetItemById

7 Sep

Be careful with the use of GetItemById(), there are two options to use it: SPList.Items.GetItemById() SPList.GetItemById() The difference between the two is that the SPList.Items.GetItemById() loads every item into memory and then filters the set. Trust me: this can cause … Read More »