I am very new to SP Development using VS 2010. I have a Sharepoint Foundation 2010 dev environment but the live environment is SP MOSS 2007 (so any code need to work on this)
I am developing a web part to allow users to type a name and pick a document library and then have the code create a standard template (Left Column, Header, Footer, Top Row, 3 Columns) web part page in that document library. There will also be some Web Parts that i need to add to this page and set the params for.
So far i have writen the code to get the SPList (document library) and check that a page of the name doesn't already exist, but i am stuck on how to actually create the web part page? Also, is it best to create the page and add the web parts etc on the fly, or can/should i create the page in my Package and deploy that?
thanks for any help :)