I have created a simple Visual Web Part in Visual Studio 2010. How can I now add this web part programatically to a specific Sharepoint 2010 page? I already have code that generates a One Column Wiki Page with a list view web part.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the SPLimitedWebPartManager object
Try this or this.
Jan Tielens post, while old is still relevant.