Geeks With Blogs

News
Steve Clements .Net and then some....

Right, the virtual server is up and running...time to soak up some SharePoint...get some dnrTv episodes down my throat.

Sahil Malik recorded a series of SharePoint episodes, 4 in fact. He starts with what happens when SharePoint is installed and finishes with some massive XML files for a Business Data Catalogue application. Tip: They are an hour long, so watch it in fast mode, the talking speed is still good and it only takes 30 mins to watch.

Session 1

Session 2

Session 3

Session 4

Note: You can get the XML from his website for the BDC apps. You will need Northwind if you want to use them "as is".

   

Edit Master Pages

Using SharePoint designer you can edit the master page of your site - although I didn't do any editing, I did open the master page in designer, just to have a look at it!

http://msdn2.microsoft.com/en-us/library/ms476046.aspx

   

Webparts

SharePoint is obviously made up of webparts; being able to write your own and add them to SharePoint, I think, is a huge advantage. There are a couple of steps to get them into SharePoint that without some help, you'll never figure out!

http://www.codeguru.com/csharp/.net/net_asp/webforms/article.php/c12293/

   

asp.net AJAX in SharePoint

http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3 (if you are using the AJAX framework in .net 3.5 you will need to amend the XML accordingly)

Although I have been able to get the XML done, added a scriptmanager to the master page, I am having problems getting the update panel to wrap the contents. I haven't spent a great deal of time looking at it – perhaps someone is aware of a Gotcha??

   

Host WCF service in SharePoint

http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx

   

Use WCF service from outside Sharepoint

Calling a WCF service from within a custom web part is really, really easy. Basically follow exactly the same steps you would in any other project, just remember to put add the ServiceModel section to the web.config on your SharePoint site. I didn't try this originally as my web part and WCF service are .NET 3.5 and Sharepoint site is .NET 2.0, I thought it wouldn't work, however as .NET 3.5 is an extension to .NET 2.0 it does! :) Happy days! I did consider writing the endpoint code in C#, but when you use a reference to a hosted service, the endpoint is read only.

   

   

Hosting Silverlight

Join up at http://silverlight.live.com - if you haven't seen it, you can upload your Silverlight apps and movies to MS servers – it's a pretty cool service and if Silverlight is your bag, you NEED to use it!!

Once you have uploaded your app you, you can either reference the JavaScript files in the page or use an iframe to host the app in your page. Either way, they give you the code to paste in! Which is always nice! To show the control in SharePoint all I did was create my own webpart, override the render contents event and write the code out on the HtmlTextWriter. Same as any other control :)

   

Sites

I created a couple, a blog site and some others, it's pretty self explanatory really, especially if you watch the dnrTv videos.

 

Next...

  1. I want to figure out how to call WCF services from BDC applications - direct to SQL is not for me!
  2. More AJAX in Sharepoint, perhaps the toolkit.
  3. Sharepoint API, what can I do?
  4. I didn't touch on Security at all; everything is using the "admin" user. Yuk!
  5. Site content types, Sahil covered these in the second webcast, but I am still not 100% sure how I could make use of these, or if I would even want too!
  6. The other 4 million things that Sharepoint has! It's really big you know! J - Take some guidance on direction from "The Book" when it arrives!!

 

Technorati Tags: Sharepoint, MOSS 2007, asp.net ajax, WCF

Posted on Monday, March 3, 2008 8:55 PM ASP.net AJAX , .NET 3.5 , Sharepoint | Back to top


Comments on this post: Go Sharepoint : From the beginning

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Steve Clements | Powered by: GeeksWithBlogs.net