Simple Provider Consumer Visual Webparts

11 Jun

Because of a question on http://sharepoint.stackexchange.com/questions/14325/created-connectable-webparts-but-the-connections-menu-item-is-not-showing 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 »