Welcome to Atlanta .NET Regular Guys Sign in | Join | Help

Son of SmartPart - A SharePoint lifesaver

Son of SmartPartSo I've just wrapped up a quick little demo of how easy it is to code for SharePoint. Since the focus is on easy, and they're not yet 100% sure if we'd be using SharePoint vs a make-your-own ASP.Net 2.0 site, I decided the best way to go is to use the SmartPart and show off how you can write normal old ASP.Net code and still get it to show up in SharePoint.

Since we're thinking about an ASP.NET 2.0 site and everyone wants to write ASP.NET 2.0 code, I really had to use the Son of SmartPart, which includes the ability to display 2.0 User Controls and 2.0 Web Parts in SharePoint.  Since this is only a demo, I knocked up a quick little user control that replicates a report we have here.  To get SoSmartPart to "see" a user control, all you have to do is drop the .ascx into a UserControl directory on your SharePoint server.  I did that and PRESTO!  My control shows up in the list of available user controls in the SmartPart toolbox area.  I select the desired control and hit Apply.  BAM - error.

It turns out that you can't use the easy drag/drop data access components in a UC and get it to show up in SharePoint - maybe it has something to do with how the page gets rendered.  Whatever.  Change all those components to ones created dynamically in code (what's that, 5 lines?) and everything started working.  I showed this off to my demo audience and everyone is deeply impressed with how easy everything is.

Then I tell them that we can use ASP Web Parts in SharePoint - which gives us the flexibility to move to a ASP.NET 2.0 site if SharePoint gives us unexpected trouble.  And that the next version of SharePoint will be able to use ASP Web Parts natively without this SmartPart layer...  They love it.  I guess development will start soon.

Published 18-05-2006 07:23 by Matt Ranlett
Filed Under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

KDR said:

Glad it went well babe!
May 18, 2006 9:29 AM
 

Jan Tielens' Bloggings said:

I love reading SmartPart success stories! Matt Ranlett has a nice one: "So I've just wrapped up a quick...
May 23, 2006 2:00 AM
 

jtustXUNGA said:

January 2, 2007 3:42 AM
 

genericviagra said:

January 12, 2007 4:51 AM
 

genericviagra said:

January 12, 2007 4:53 AM
 

freeringtoness said:

Free Ringtones  for your mobile phone
http://www.shrunkurl.com?id=6799  [url=http://www.shrunkurl.com?id=6799]free ringtones[/url]
January 18, 2007 8:49 PM
 

freeringtoness said:

Free Ringtones  for your mobile phone
http://www.shrunkurl.com?id=6799  [url=http://www.shrunkurl.com?id=6799]free ringtones[/url]
January 18, 2007 8:51 PM
 

ringtonesses said:

Download Final Fantasy ringtones to your cell phone. Free Ringtones for Nextel, Verizon, Sprint, Cingular and T Mobile.
http://www.shrunkurl.com?id=6800  [url=http://www.shrunkurl.com?id=6800]download free ringtones[/url]
January 19, 2007 6:22 AM
 

ringtonesses said:

Download Final Fantasy ringtones to your cell phone. Free Ringtones for Nextel, Verizon, Sprint, Cingular and T Mobile.
http://www.shrunkurl.com?id=6800  [url=http://www.shrunkurl.com?id=6800]download free ringtones[/url]
January 19, 2007 6:23 AM
 

ringtonesses said:

Download Final Fantasy ringtones to your cell phone. Free Ringtones for Nextel, Verizon, Sprint, Cingular and T Mobile.
http://www.shrunkurl.com?id=6800  [url=http://www.shrunkurl.com?id=6800]download free ringtones[/url]
January 19, 2007 6:23 AM
 

ringtonesses said:

Download Final Fantasy ringtones to your cell phone. Free Ringtones for Nextel, Verizon, Sprint, Cingular and T Mobile.
http://www.shrunkurl.com?id=6800  [url=http://www.shrunkurl.com?id=6800]download free ringtones[/url]
January 19, 2007 6:23 AM
 

tyvernustrer said:

I want to say - thank you for this!

http://ephedrausa.host-page.com/ <a href="http://ephedrausa.host-page.com/">buy ephedra</a> [url=http://ephedrausa.host-page.com/]buy ephedra[/url]
February 12, 2007 8:13 AM
 

tyvernustrer said:

Good website and nice content.

http://ephedrausa.host-page.com/ <a href="http://ephedrausa.host-page.com/">buy ephedra</a> [url=http://ephedrausa.host-page.com/]buy ephedra[/url]
February 14, 2007 8:14 AM
 

genericiag said:

You have an exelent site.

http://bulinialisdsf.blogcu.com/ <a href="http://bulinialisdsf.blogcu.com/">buy online cialis</a> [url=http://bulinialisdsf.blogcu.com/]buy online cialis[/url]
March 13, 2007 10:33 PM
 

genericiag said:

You have an exelent site.

http://bulinialisdsf.blogcu.com/ <a href="http://bulinialisdsf.blogcu.com/">buy online cialis</a> [url=http://bulinialisdsf.blogcu.com/]buy online cialis[/url]
March 13, 2007 10:34 PM
 

genericiag said:

You have an exelent site.

http://bulinialisdsf.blogcu.com/ <a href="http://bulinialisdsf.blogcu.com/">buy online cialis</a> [url=http://bulinialisdsf.blogcu.com/]buy online cialis[/url]
March 13, 2007 10:34 PM
 

genericiag said:

You have an exelent site.

http://bulinialisdsf.blogcu.com/ <a href="http://bulinialisdsf.blogcu.com/">buy online cialis</a> [url=http://bulinialisdsf.blogcu.com/]buy online cialis[/url]
March 13, 2007 10:35 PM
 

Vicodin said:

You have a good site

http://vicoden.sblog.cz/ <a href="http://vicoden.sblog.cz/">Vicodin Without Prescription</a> [url=http://vicoden.sblog.cz/]Vicodin Without Prescription[/url]
March 26, 2007 6:39 AM
 

Vicodin said:

You have a good site

http://vicoden.sblog.cz/ <a href="http://vicoden.sblog.cz/">Vicodin Without Prescription</a> [url=http://vicoden.sblog.cz/]Vicodin Without Prescription[/url]
March 26, 2007 6:40 AM
 

Vicodin said:

You have a good site

http://vicoden.sblog.cz/ <a href="http://vicoden.sblog.cz/">Vicodin Without Prescription</a> [url=http://vicoden.sblog.cz/]Vicodin Without Prescription[/url]
March 26, 2007 6:42 AM
 

Vicodin said:

You have a good site

http://vicoden.sblog.cz/ <a href="http://vicoden.sblog.cz/">Vicodin Without Prescription</a> [url=http://vicoden.sblog.cz/]Vicodin Without Prescription[/url]
March 26, 2007 6:42 AM
 

straversers said:

You have a cool site.

http://www.alluwant.de/mitglieder/44773/ <a href="http://www.alluwant.de/mitglieder/44773/">viagra  herbal</a> [url=http://www.alluwant.de/mitglieder/44773/]viagra  herbal[/url]
March 26, 2007 11:09 PM
 

buy viagra said:

You the best!!

<a href="http://xrl.us/wbsg">buy viagra</a>
<a href="http://xrl.us/wbsg">buy viagra online</a>
<a href="http://xrl.us/wbsg">viagra</a>
May 11, 2007 3:30 PM
 

Axel said:

June 1, 2007 7:36 PM
 

cialis said:

September 15, 2007 6:34 AM
 

soma.rx said:

Great .Now i can say thank you!

[url=http://soma.rxsource.cn/purchase-soma.html]purchase soma[/url]
October 20, 2007 9:54 AM
 

cialis said:

November 9, 2007 6:43 PM
 

Penisa said:

Write your comments here, please. Because I cant say any thing here.
November 11, 2007 5:59 AM
 

cialis said:

November 16, 2007 12:23 AM
 

cialis said:

November 19, 2007 6:55 AM
 

Visitor501 said:

I have visited your site 065-times
December 1, 2007 2:08 PM
 

Visitor838 said:

Your site found in Google: [URL=http://google.com/search?q=qiy]position723[/URL]
December 1, 2007 2:08 PM
 

Visitor053 said:

Your site found in Google: http://google.com/search?q=ctz
December 1, 2007 2:09 PM
 

propecia said:

December 5, 2007 3:56 PM
 

generic viagra said:

December 6, 2007 10:01 AM
 

Aron said:

.
December 6, 2007 10:03 AM
 

cialis said:

December 6, 2007 8:49 PM
 

cialis said:

December 8, 2007 7:55 AM
 

Dominic said:

<a href= http://bvxbyivg.usafreespace.com/viewsatprofix.html >viewsat pro fix</a>  
<a href= http://biihcggw.greatnow.com/navypfastandards.html >navy pfa standards</a>  
<a href= http://hnyqdiso.fre
March 2, 2008 12:31 AM
 

Halo said:

<a href= http://waystocookmeth.namecool.info/ >ways to cook meth</a>  
<a href= http://marshalluniversityplanecrash.namecool.info/ >marshall universityplane crash</a>  
<a href= http://flavoroflovehoopznude.namecool.in
March 5, 2008 4:51 AM

What do you think?

(required) 
(optional)
(required) 

About Matt Ranlett

One of the two original Atlanta .NET Regular Guys, Matt fills his free time by helping to run several Atlanta area user groups, the Atlanta Code Camps, and works as one of the two INETA co-Vice Presidents of Technology
SkinName:iroha_Blog2
Powered by Community Server, by Telligent Systems