Author: siorli | Posted on: 8/12/2010 10:44:13 AM | Views : 261

 just as the title says, I want to do something like :
 
Protected Sub WebPartManager1_WebPartMoved(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WebParts.WebPartEventArgs) Handles WebPartManager1.WebPartMoved For Each c As Control In e.WebPart.Controls Panel1.Controls.Add(CType(c, WebControl)) Next End Sub
I get the error :
Cannot modify the controls collection of a GenericWebPart.  To create a new GenericWebPart, use the WebPartManager.CreateWebPart() method
...

Go to the complete details ...