Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Regarding adding webpart

  Asked By: Geena    Date: Dec 20    Category: Sharepoint    Views: 639

I am trying to add a web part programmatically to sharepoint portal's
top level site. But, whenever I try to add a web part to the home page
of the site it gets added to the webpart gallery instead.If anybody has
any clues as to why this is happenning



3 Answers Found

Answer #1    Answered By: Antonio Kelly     Answered On: Dec 20

What method are you using to add  the web  part? An example would be good...

Answer #2    Answered By: Buddy Moon     Answered On: Dec 20

I am using the windows sharepoint  services weppartpage webservice to
add a webpart  to a particular page.
Following is the code:
Dim ObjAdWpParts As New
AdditionOfWebPart.localhost.WebPartPagesWebService 'Creating an
object of the webservice.
ObjAdWpParts.AddWebPart(pageUrl, webPartXml,

Here pageUrl is the adress of the page where the webpart needs to be
added, webpart xml is the xml of the web  part as string and storage
mode is shared.

Answer #3    Answered By: Vishala Verma     Answered On: Dec 20

How are you trying to add  it. .................

Didn't find what you were looking for? Find more on Regarding adding webpart Or get search suggestion and latest updates.