Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I created a user control in visual studio I want to deploy to sharepoint 2007. This is my first one and I created the project using the repository pattern and POCO. Does sharepoint support this type of webpart implmentation or does all the logic have to be in the code-behind of the user control? The web part deployed successfully (dll in the GAC) but it is not available as a web part in the site. When I try to force it through SPD, the form errors out.

Thanks.

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

I would recommend you to use WSPBuilder for creating Web Part project in Visual Studio...

Once you installed WSPBuilder, inside Visual Studio you will have WSPBuilder Project Templates, from there select required template... It will create WSP file for you, and you can deploy the WSP easily to get the Web Part!

Give it a try, it should solve all your problems!

share|improve this answer
    
I should have mentioned I was using wsp builder. Thanks! –  steveareeno Jan 5 '13 at 16:21
    
Actually, I wasn't using WSPBuilder. when I created a new WSPBuilder project I was able to create the user control and deploy it to the SP server. Therefore, I am marking yours as the answer also. Thanks! –  steveareeno Jan 8 '13 at 21:58
    
That's what I was thinking, WSPBuilder is quite straight forward... No problem! :) –  Arsalan Adam Khatri Jan 9 '13 at 8:56
add comment

I would also recommend you try SmartPart which is a codeplex project that allows you to host any ASP.NET web user control as a SharePoint web part.

share|improve this answer
    
Now that I look at the name of the original web part (developed by my predecessor), which mine is a modification of, it was named "MySmartPart" in SharePoint. I have a sneaking suspicion he used SmartPart :). Thanks! –  steveareeno Jan 5 '13 at 16:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.