In sharepoint2010 I am using a webpart and custom toolpart[]. The following code is for toolpart array
public override Microsoft.SharePoint.WebPartPages.ToolPart[] GetToolParts()
{
ToolPart[] tp = new ToolPart[3];
WebPartToolPart wptp = new WebPartToolPart();
CustomPropertyToolPart cptp = new CustomPropertyToolPart();
SampleToolPart customTP = new SampleToolPart();
tp[0] = customTP;
tp[1] = cptp;
tp[2] = wptp;
return tp;
}
When I edit the webpart user can configure data to be shown in the webpart page. But I am not able to view the recent changes in the page after clicking apply and Ok only the modified data is shown in the page. In the CreateChildControls() event only I have added the controls in it.
Could anyone help me to solve this issue ?