Question

I am thinking about using SmartParts (http://www.codeplex.com/smartpart) to directly Host ASP.NET user controls in SharePoint. This needs however that I manually copy all user controls to all WFE servers and place them in a special folder in the Web application root folder.

Do you see any problems with this approach? How about its effect on performance? Anyone faced issued with it? or liked it?

Was it helpful?

Solution

I've never used SmartPart so can't comment on it exactly. However there should be no need to manually copy anything if you are using a packaging solution such as WSPBuilder which can handle all this for you.

There's some pretty good doco on the non-SmartPart route:

Either way there should be no or negligible perf issues as it's all the same bits in the end.

OTHER TIPS

Here's a nice pro/con article.. commented on by Jan himself.

I never use it. It's a pain to debug and deploy and, something like WSPBuilder makes it unnecessary.

SmartParts are web parts like any other web part. The user controls are just another artifact, that you drop into CONTROLTEMPLATES in a subdirectory. Both should be packaged and provisioned in solutions and using features (if you want the web part added to web part gallery).

When you deploy your solution and activate your feature content is automagically added to safe controls, bin/gac, web part gallery, controltemplates etc on all Web Front End servers.

I havent heard of performance overhead on loading a user control in contrast to adding controls in CreateChildControls.

some links: Solutions and Web Part Packages

Using Solution Packages to Deploy Features and Content in Windows SharePoint Services 3.0

How to: Create a Simple Feature

Working with Features

hth Anders Rask

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top