2

I developed a simple webpart using the Visual Web Part template in Visual Studio 2010 and have been testing it within SharePoint 2010.

I want to know if this web part could be deployed to SharePoint 2007 from the .cab generated by VS2010, and if so, how?

2 Answers 2

2

It can't directly, because it will contain bindings to the SharePoint 2010 DLLs which of course don't exist under SharePoint 2007. However the good news is that most of your work can be kept.

SharePoint Development with Visual Design User Controls on SharePointDevWiki describes how to do the equivalent of visual web parts for SP2007. Have a look at the components explained in that article and you'll see how they already match up with your solution. You just need to repackage it.

If you wish to use VS2010 to do this, know that it doesn't support targeting SP2007. I recommend using WSPBuilder for this purpose.

1
  • Thanx, Can't vote you up though ;) need more reputation
    – Anonymous
    Sep 10, 2010 at 14:57
0

Have a look at Jan Tielen's Smart Part, it allows AsCX files to be embedded in SharePoint.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.