Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Add BDC List webpart to sharepoint site using code

  Asked By: Shasta    Date: Aug 07    Category: Sharepoint    Views: 1505

We have customised sharepoint templates. Whenever user creates new site BDC List webpart should automaticaly create to the new site. For that I need to write code to display BDC list data.

I want to add BusinessDataListWebPart Programmaticaly to the site. I have following code but i don't know how to add Business Data Type Application to the webpart using code.

BusinessDataListWebPart webPart = new BusinessDataListWebPart();
NamedLobSystemDictionary lobSystems = ApplicationRegistry.GetLobSystems();
foreach (LobSystem system in lobSystems.Values)
NamedLobSystemInstanceDictionary instances = system.GetLobSystemInstances();
foreach (LobSystemInstance instance in instances.Values)
if (instance.Name == "BDCTestInstance")




No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Add BDC List webpart to sharepoint site using code Or get search suggestion and latest updates.