Difference between revisions of "MOSS 2007"
From Richard's Wiki
(→SharePoint 2010 Snippets) |
(→SharePoint 2010 Snippets) |
||
Line 40: | Line 40: | ||
* [http://dotnet.sys-con.com/node/1299753 Deploying an External List via Feature Using CAML (SP2010)] | * [http://dotnet.sys-con.com/node/1299753 Deploying an External List via Feature Using CAML (SP2010)] | ||
* [http://msdn.microsoft.com/en-us/library/dd584174(office.11).aspx Creating a Web Part with Custom Properties] | * [http://msdn.microsoft.com/en-us/library/dd584174(office.11).aspx Creating a Web Part with Custom Properties] | ||
+ | * To add a custom property to an SP2010 web part, add the following to the WebPart.cs source code file, the one which extends System.Web.UI.WebControls.WebParts.WebPart (see [http://httpcode.com/blogs/PermaLink,guid,357e4853-9a75-4962-ad68-1e07bcf40bb8.aspx SharePoint 2010 Visual Web Parts] | ||
+ | <code> | ||
+ | [System.Web.UI.WebControls.WebParts.WebBrowsable(true)] | ||
+ | [System.Web.UI.WebControls.WebParts.WebDisplayName("Custom Property")] | ||
+ | [System.Web.UI.WebControls.WebParts.WebDescription("A test Custom property.")] | ||
+ | [System.Web.UI.WebControls.WebParts.Personalizable(PersonalizationScope.User)] | ||
+ | [System.ComponentModel.Category("Settings")] | ||
+ | [System.ComponentModel.DefaultValue("Default String Value")] | ||
+ | public string CustomProp { get; set; } | ||
+ | </code> | ||
=== SharePoint 2010 & Silverlight === | === SharePoint 2010 & Silverlight === |
Revision as of 23:42, 6 April 2010
- Nov 2008 Patterns & Practices SharePoint Guidance
- Enabling SharePoint Intellisense in VS2008
- Developing and Using Web User Controls as WebParts in Microsoft Office SharePoint Server 2007(CodeProject)
- OBSOLETE: Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions, Version 1.2
- Visual Studio 2008 extensions for Windows SharePoint Services 3.0, v1.3 - Mar 2009 CTP
- SharePoint Manager 2007 (CodePlex)
- View MOSS 2007 or WSS 3.0 log files
Contents
Some MOSS Resources
- SharePoint Team Blog http://blogs.msdn.com/sharepoint
- Microsoft SharePoint Developers Portals
- Best Practices Resources Center http://technet.microsoft.com/en-us/office/sharepointserver/bb736746.aspx
- Developer Best Practices Resource Center http://msdn.microsoft.com/en-au/office/dd638301.aspx
- CodePlex http://www.codeplex.com
- William Cornwill's Blog http://www.codejedi.net
MOSS & Silverlight
- mssharepointdeveloper.com
- SharePoint 2010 MSDN Reference pages
- SharePoint 2010 (Beta) Developer Center
- Sharepoint 2010 Beta Developer Training Kit
- Microsoft SharePoint Server 2010: Deprecated Types and Methods
- SharePoint 2010 Dev Center Ramps Up, Adds BCS Resources (Visual Studio Magazine)
- Setting Up the Development Environment for SharePoint Server (MSDN, for SP2010) http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx
- SharePoint 2010 Training (Arpan Shah's blogs.msdn.com)
- SharePoint 2010: Professional Developer Evaluation Guide and Walkthroughs (Microsoft Document Download)
- SharePoint 2010 Books list
- Programmatically work with External Lists (BCS) in SharePoint 2010
- Having fun with the new LINQ to SharePoint on SharePoint 2010 (SP2010)
- Deploying an External List via Feature Using CAML (SP2010)
- Creating a Web Part with Custom Properties
- To add a custom property to an SP2010 web part, add the following to the WebPart.cs source code file, the one which extends System.Web.UI.WebControls.WebParts.WebPart (see SharePoint 2010 Visual Web Parts
[System.Web.UI.WebControls.WebParts.WebBrowsable(true)] [System.Web.UI.WebControls.WebParts.WebDisplayName("Custom Property")] [System.Web.UI.WebControls.WebParts.WebDescription("A test Custom property.")] [System.Web.UI.WebControls.WebParts.Personalizable(PersonalizationScope.User)] [System.ComponentModel.Category("Settings")] [System.ComponentModel.DefaultValue("Default String Value")] public string CustomProp { get; set; }
- Getting Started With Silverlight and SharePoint 2010
- Modify WebPart menu (Understanding and working with Web Part Verbs)
- Turn on the Developer Dashboard by running the following stsadm command:
stsadm -o setproperty -pn developer-dashboard -pv OnDemand
- In VS2010, can make the following changes to
- Elements.xml: change the
<Property Name="Group" Value="Custom" />
to something other than Custom. - Webpart.webpart (webPartIcon is 16x16):
- Elements.xml: change the
<property name="ChromeType" type="chrometype">TitleAndBorder</property> <property name="CatalogIconImageUrl" type="string">_layouts/images/ContosoWebParts/WebPartIcon.gif</property> <property name="TitleIconImageUrl" type="string">_layouts/images/ContosoWebParts/WebPartIcon.gif</property>
- Elements.xml, modify the URL attribute of File element to change the .webpart file name to ensure that it is unique. Do this by prepending the text value of "ContosoWebParts_" (ie Feature project name) to the beginning of the URL property value.