Saturday, December 02, 2006 5:02 PM Jan Tielens

Announcing the Return of the SmartPart

Finally the latest version of the SmartPart is here: the Return of the SmartPart, also know as SmartPart v3, also know as SmartPart for SharePoint 2007. For those of you who are new to the SmartPart: the SmartPart is an open source web part that can host any ASP.NET Web User Control. What is the advantage of creating web parts by making use of the SmartPart? Well if you are familiar with the "traditional" web part development technique you probably know that you have to write lots of code, there is no designer support in Visual Studio. The SmartPart allows you to create a Web User Control (ASCX) in Visual Studio by making use of the designer, and deploy it to a SharePoint site. This release of the SmartPart is targetted for SharePoint 2007, both Windows SharePoint Services v3 (WSSv3) and Microsoft Office SharePoint Server 2007 (MOSS). Since the initial release almost 40.000 SharePoint developers have downloaded the SmartPart, get your copy today (for free of course) from the GotDotNet Workspace (in the releases section)! For those of you who have attended my session about web part development on TechEd: Developers in Barcelona, this is the version that I showed over there.

For more information about the deployment of the Return of the Smartpart, check out this post which also has a link to a small screencast. Keep an eye on my blog or www.smartpart.info for more information, examples and screencast about creating web parts the smart way!

Filed under: ,

Comments

# re: Announcing the Return of the SmartPart

Monday, December 04, 2006 7:34 AM by Jason Dossett

Good to see the return of SmartPart! We found the previous version invaluable for quickly developing UI-intensive web parts. The deployment info for SmartPart was good, but I was wondering if you have thoughts for deploying the user controls that get hosted by SmartPart? There doesn't appear to be a built-in mechanism for deploying user controls, and we're finding the solution\feature framework to be surprisingly un-extensible -- there doesn't seem to be a solution event receiver class like there is for feature, for example. It may just be the lack of documentation at this point, but we also can't find if there's any way to get to the files in the solution package itself from the object model.

# re: Announcing the Return of the SmartPart

Monday, December 04, 2006 2:11 PM by Dawn Strianese

This control seems to be very useful.  Will source code be posted or available?

Thanks.

# re: Announcing the Return of the SmartPart

Tuesday, December 05, 2006 1:43 AM by Shailendra

Well I was waiting for smart part!! Its works as it promised.

# re: Announcing the Return of the SmartPart

Tuesday, December 05, 2006 8:17 AM by Kailash

Great work Jan! Keep it up!

# re: Announcing the Return of the SmartPart

Tuesday, December 05, 2006 8:20 AM by Palani

We have created a user control with Atlas, and we successfull added it using smart part. But the problem is some part of the Atals are not working properly... It will be great full if  u get some way to work it out..

In Atlas control if we remove "EnablePartialRendering='True'  " its works fine, the problem after removing this is "Post back is happening"... which makes the usercontrol work slower

thanks in advance

# re: Announcing the Return of the SmartPart

Thursday, December 07, 2006 2:15 PM by Samir

Hello,

I have been trying to get my existing User Controls that were originally developed under Son of SmartPart and I have tried migrating them to Return of SmartPart, however, I have had no success since attempting to do this.  I have been using the Microsoft Enterprise Library in the past with strong naming to call my data access methods, but none of my SmartParts seems to be working any longer.  Is there a way I can trace this to find out what suddenly stopped working by migrating them to WSS 2007?  I have checked the Event Logs and nothing is being reported there which should indicate that there are no security permission issues or compilation errors.

Are there any other ideas on how to resolve this?

Thank You.

# re: Announcing the Return of the SmartPart

Wednesday, December 20, 2006 6:27 PM by Dawn Strianese

I have a user control that references Microsoft.Practices.EnterpriseLibrary.Data.dll, which is installed in the GAC, on the machine that is hosting Sharepoint 2007. The user control works from asp.net, but I get an error when I try to display this control using the new SmartPart control. The error message is as follows:

Error: unable to load ~\/UserControls\WebUserControl3.ascx

Details: c:\Inetpub\wwwroot\wss\VirtualDirectories\8001\usercontrols\WebUserControl3.ascx(9): error CS0234: The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

Any information you can provide will be greatly appricated.

Thanks,

Dawn

# re: Announcing the Return of the SmartPart

Thursday, December 21, 2006 4:35 PM by Connie

Can 2 smart parts "talk" to each other on a single page?

# re: Announcing the Return of the SmartPart

Sunday, January 07, 2007 1:16 PM by mosson

I have some difficulties using SPS Views with User Controls and SmartPart.

View returns only all items when using User Controls. When i execute exactly same codes in custom WebPart, it works fine..

Need help for resolving that!

# re: Announcing the Return of the SmartPart

Thursday, January 11, 2007 11:27 AM by Alex

Is there any information on integrating SmartPart with the Office Sharepoint Desginer?  We are using this to edit our pages, and SmartPart doesn't seem to work too well with it.

Thanks

# re: Announcing the Return of the SmartPart

Monday, January 15, 2007 2:20 AM by han

Hi,

is there any demo on developing the usercontrols with code behind and integrating with other assembly(Microsoft Application Block)?

i would be appreciated if that is one because i currently dont agree of uploading my ascx.cs (source) file to UserControls folder. I might miss out something, but to my knowledge of "Return Of Smart Part" it requires my source file as well, else it cannot load the my usercontrols into the smartpart, correct me if i am wrong.

# re: Announcing the Return of the SmartPart

Thursday, January 25, 2007 1:26 PM by sunilprabha

SAVE LOT OF TIME , ND GREAT

# re: Announcing the Return of the SmartPart

Thursday, February 01, 2007 12:54 PM by AndyA

Does Return of SmartPart provide communication for the different types of interfaces provided in SharePoint, such as IWebPartField, IWebPartRow, IWebPartTable, and IWebPartParameters.

# re: Announcing the Return of the SmartPart

Tuesday, March 06, 2007 4:07 AM by petert

Hi,

How to use <SafeControl... with ASP.NET 2.0 project, the assemblys are spread all over machine.

How to build/deploy user control in ASP.NET 2.0 for use in SmartPart.

I have a problem because of confusion made by publishig Web, assembly name, single page assemblies,...etc,etc

In ASP.NET 1.1. it was easy, one project directory, one assembly output, AssemblyInfo.vb file and easy of use <SafeControl...

Any information you can provide will be greatly appreciated

Thanks

# re: Announcing the Return of the SmartPart

Wednesday, March 21, 2007 4:27 AM by Markus

Unless your ASP.Net site uses dll's that are typically located in your site's bin directory, you dont need to modify SafeControls other than for SmartPart.  Just write a user control (.ascx with code behind - either .ascs.cs or .ascx.vb).

If your user control depends on dll's, then you can deploy these in your production web sites bin folder and reference them in the _layouts/web.config.

If you trust your dll's and if they are strongly typed, you can deploy them in the GAC and reference them in the safe control section in the web.config in your web sites root directory.

Hope this helps

# re: Announcing the Return of the SmartPart

Tuesday, March 27, 2007 12:08 PM by snehalthebest

Smart Part Rocks,

One more question for Jan,

I used your smartpart on my Sharepoing moss2007/wss 3.0 and it works like charm.

Can I have .cs file for my .ascx to put all my code in there?

I tried doing that it gave me an error: Can not load your user control.

Does it have have inline coding, or is there way I can put my code in my code behind .cs file?

Please provide any feedback.

...Snehal

# re: Announcing the Return of the SmartPart

Thursday, April 12, 2007 8:41 PM by Markus

You do not need to code inline.  Put your .ascx.cs file in the UserControl directory along with your .ascx.

You can also deploy and leverage separate class.cs files for web services or other custom code.  Deploy these in C:\Inetpub\wwwroot\wss\VirtualDirectories\80\App_Code

Markus

# re: Announcing the Return of the SmartPart

Sunday, April 15, 2007 10:07 AM by Prakash Patil

Hi,

 I loaded usercontrol  in smartpart (Return of smartpart). but my usercontrol contains some comlpex controls like calendar and retrieving data from database.

when i am loading user control first time, sharepoint page is not refreshing .

( i have take the url and paste it in new browser then refresh) then page is loading correctly its happening only first time.

any body suggest me what is the problem

Regards

Prakash Patil

# re: Announcing the Return of the SmartPart

Monday, June 11, 2007 11:13 PM by Alex Thomas

I am using the latest version of smartpart(return of smartpart) with MOSS 2007. It works well Jan !! Thanks. I can connect to database only when i set the impersonate=false in the web.config of wss virtual folder. By default its true for moss 2007 and when its true, the sqlconnection.Open fails !!! I am using a custom app pool for my site and it has database access

Any idea? Please help.. I am burning my head for past several days on this guys.. please help

# re: Announcing the Return of the SmartPart

Tuesday, June 19, 2007 5:55 AM by ramya

when i did manual installation,i am facing problems like...when i selected the SmartPart webpart from the sharepoint site..an error is displayed "The selected webpart is not  safe registered "

Please suggest a solution.

# re: Announcing the Return of the SmartPart

Tuesday, July 03, 2007 9:57 AM by Pwisz

Can someone let me know where to find SmartPart v3(return of SmartPart)?  The GotDotNet link has been taken down.

# re: Announcing the Return of the SmartPart

Sunday, July 08, 2007 7:19 PM by sunny

Hi,

Iam using Smart part but when im using session variable

the smart part is not working.

Im storing the check box selected in session

variable and displaying the relavent record.

Could you please help me how to use?

Thank you

Sunny

# re: Announcing the Return of the SmartPart

Wednesday, July 18, 2007 11:02 PM by vladimir

GotDotNet Workspace (in the releases section)!  

not accessible where I can download it else?

# re: Announcing the Return of the SmartPart

Monday, July 23, 2007 4:49 AM by Peter

Yes I am also looking for a new download location since the link to GotDotNet is no longer working . Any News about this ???  thanks

# re: Announcing the Return of the SmartPart

Tuesday, July 24, 2007 11:13 AM by Cliff

I am also looking a download location for Son of SmartPart. It would appear that the smartpart.info website is also not functional.

Thanks for helping.

# re: Announcing the Return of the SmartPart

Sunday, August 05, 2007 1:23 AM by Titova

# re: Announcing the Return of the SmartPart

Thursday, August 16, 2007 6:01 AM by tumharadost

Hi

I have create one smartpart (producer) on one page and the other smartpart (consumer) on second page.  On click of submit on my producer form on page first, it should take me to page second and producer smart part should consume data.

It does not work for cross page.  Can anyone suggest. It works perfectly fine when both producer and consumer are available on the same page.

# re: Announcing the Return of the SmartPart

Tuesday, August 21, 2007 8:49 AM by kalees

hi,

I have created a web usercontrol and put it into the usercontrols folder in the sharepoint site. my user control has datagrid with database connection. when i tried to deploy the usercontrol using smartpart it was uploading successfully. When I select my usercontrol from the smartpart dropdown and press the apply button it is not showing any error but my usercontrol is not displaying. It showing empty.

am i missing anything? or i have to use add control?

Please anybody help me!

Regards,

Kalees

# re: Announcing the Return of the SmartPart

Saturday, September 01, 2007 9:37 PM by tad

I need to develop an application using impersonation to post to a list.  Can I use impersonation on the smartpart ? Thanks.

# re: Announcing the Return of the SmartPart

Thursday, September 13, 2007 7:09 PM by marc

looks like a great tool where can we download it since GotDotNet is link is not working

# A new SharePoint site developed by some of my colleagues at ADA ICT at Virtual Generations

Pingback from  A new SharePoint site developed by some of my colleagues at ADA ICT at  Virtual Generations

# re: Announcing the Return of the SmartPart

Wednesday, September 19, 2007 8:46 PM by GrovesP

SmartPart3 v1.2 Beta

www.codeplex.com/smartpart

# re: Announcing the Return of the SmartPart

Monday, October 01, 2007 9:36 AM by Rune

Markus wrote

"If you trust your dll's and if they are strongly typed, you can deploy them in the GAC and reference them in the safe control section in the web.config in your web sites root directory."

I have tried this but whatever I do I get an error message that says "cant find type or namespace..........." I can see that the assembly is in the GAC and the SafeControl item is added in the same config file where the SmartPart itself is added. Does anyone know what I am doing wrong?

# re: Announcing the Return of the SmartPart

Thursday, October 25, 2007 1:54 AM by Troy

I have managed to get SmartPart to work for individual web parts in SharePoint but cannot get two web parts connected successfully. It all appears to work okay until I try and select a record from the first web part. When I do this nothing is displayed in the second web part. I have been using an example from the book "Real World SharePoint 2007" and have copied the example to the letter. Does anyone have any suggestions for me. I desperately need to get this working in very near future.

Thanks

# re: Announcing the Return of the SmartPart

Tuesday, November 06, 2007 4:32 PM by J

I ran into the Error: unable to load ~\/UserControls\WebUserControl3.ascx  error on a secondary server, but i removed everything started from scratch and it worked. I think it happened because I deviated from the instructions somewhat.

# re: Announcing the Return of the SmartPart

Friday, January 04, 2008 9:00 AM by Thor

How can I refer other assemblies and classes. I need the System.Directoryservices.....

# re: Announcing the Return of the SmartPart

Tuesday, January 15, 2008 1:50 AM by Ivanov Denis

I`m using last version return of smartpart with my sharepoint. Everything is fine, but there is no support my language (russian).

Jan, can you set property "EnableScriptGlobalization" of ScriptManager in web part to "True"? Thank you.

# Nick&#8217;s Tech Blog &raquo; ASP.NET validation controls prevent publishing pages from saving | SharePoint 2007 Mostly

Pingback from  Nick&#8217;s Tech Blog  &raquo; ASP.NET validation controls prevent publishing pages from saving | SharePoint 2007 Mostly

# Son of SmartPart (aka SmartPart v3) &laquo; Jason Barkes Practical Development

Pingback from  Son of SmartPart (aka SmartPart v3) &laquo; Jason Barkes Practical Development