I have a number of visual webparts and I'm looking to add these automatically to a page whenever that page gets created.
Is it best to add this to the page layout in a webpartzone?
I have tried creating a itemadded event receiver to the list but I can't seem to reference my custom webparts. I can view the webparts fine in the webpart gallery under the custom section but I can't work out how to reference these along with the WebPartManager methods.
ListViewWebPart lvp = new ListViewWebPart() works...
This doesn't compile - no reference to my custom webpart is available seemingly MyCustomWebPart wp = new MyCustomWebPart();
Any ideas? Ideally I'd like to do this in the receiver so I can ad