SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a custom site page in sharepoint 2010 and added the following code to it

<WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly" ID="Main" Title="loc:Main" >
   <WpNs0:DashBoard runat="server" ID="g_55249317_828e_4af6_a7bc_94bff9a8468b"    
                 Description="TicketTale DashBoard WebPart"
                 Title="TicketTale DashBoard WebPart"             
                 WebPart="true" __designer:IsClosed="false" partorder="2">

and i have created a custom webpart which is included in the webpartzone above the webpart is working fine but the problem is the webpart became static meaning that i can't modify or delete it, although when i add it manually to the same page or any other page ,i can modify or delete it normally,

help please!!!

share|improve this question

When you add a webpart like this it is by design you cannot edit it, you are turning it from a webpart into a control.

If you want to add it programatically the only way is through powershell/event handler or form/console application.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.