Sunday, July 23, 2006

FW: SPS 2003 WebParts vs. ASP.NET 2.0 Webparts

 
ASP.NET 2.0 WebPart Framework is a new feature in ASP.net 2.0. Although Webparts existed in SPS 2003 times, this framework is completely new and follows its own architecture. The cool thing is ASP.NET 2.0 webpart framework is now compatible with latest version of sharepoint
i.e MOSS 2007.
This means ASP.NET 2.0 webparts can be used in Sharepoint 2007.

I wont repeat here the steps required to use your ASP.NET 2.0 webpart in Sharepoint 2007. You can see several blogs on this topic like:


http://weblog.vb-tech.com/nick/archive/2006/05/10/1563.aspx

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


One main thing here to be kept in mind while creating custom webparts is that 2003 webparts dwp file uses different schema than Sharepoint 2007 webparts. If you try to use the ASP.NET webpart with old schema and try to import it in sharepoint you get the error:

The class does not derive from the Microsoft.SharePoint.WebPartPages.WebPart class and therefore cannot be
imported or used in a WebPartZone control

To resolve this ASP.NET webparts uses the different schema which is like this:

 

<?xml version="1.0" encoding="utf-8"?>
<webParts>
 <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
  <metaData>
   <type name="aspwebpart.FeaturePart, aspwebpart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
   <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
  </metaData>
  <data>
   <properties>
    <property name="Title" type="string">FeaturePart</property>
   </properties>
  </data>
 </webPart>
</webParts>




Using this schema you can easily import your ASP.net 2.0 webparts onto sharpeoint 2007.

The custom webparts you create can either be imported from
System.WEb.UI.WebControls.Webparts or Microsoft.Sharepoint.WebPartPages.Webpart

However if you plan to use feature like connections between webparts , you are left with
the option of using only deriving from Microsoft.Sharepoint.WEbPartPages.WebPart.

 


kick it on SharePointKicks.com

MOSS BDC MetaData Manager

 

                                                            MOSS BDC MetaData Manager

Atlast there is finally a MOSS BDC MetaData Manager using which you can create BDC XML’s

Using a GUI application. I have hard time creating BDC XML in past since B1 TR. This application

Is a treat for sharepoint 2007 users J

See the blog at

http://www.sharepointblogs.com/tbaginski/archive/2006/07/16/9259.aspx

 

Customization of Sharepoint Site

There are very few blogs on customization of Sharepoint 2007 site which involves direct editing uses master pages. Here is one of the few blogs which discusses this topic to the heart.

Sharepoint Tips And Tricks

Saturday, July 22, 2006

Microsoft Announces Beta 2 Technical Refresh

Microsoft in its beta site announced that it will be launching Beta 2 Technical Refresh in short time. Although not much info was available , but according to microsoft :

The B2TR (Beta 2 Technical Refresh) build will be releasing in the not too distant future and we’re starting to outline plans for that release. Over the next weeks we’ll be providing more information about what TAP members can expect in the way of deployment planning, Vista interoperability and support from our product development teams for B2TR deployments.

Saturday, July 15, 2006

For all those who want to develop WSS 2.0 webparts in VS 2005

The Sharepoint Diary: Sharepoint Web Part Library Project Template for Visual Studio 2005