Friday, August 23, 2013
Tuesday, August 20, 2013
Thursday, August 15, 2013
Remove tables from webpart zones
http://sharepoint.stackexchange.com/questions/32193/how-can-i-remove-the-tables-rendered-around-the-webparts-in-the-rich-content-are
http://blog.mastykarz.nl/removing-web-parts-tables-sharepoint-2010/
http://customspwebpartzone.codeplex.com/
http://jphandson.blogspot.co.uk/2012/12/sharepoint-2010-step-by-step-how-to.html?_sm_au_=iVVq05PVr98q5k5R
http://www.lifeinsharepoint.co.uk/2012/04/29/igoogle-ui-sharepoint-2010-part-four-control-adapters/
http://www.lifeinsharepoint.co.uk/tag/control-adapters/
compat.browser schema
http://msdn.microsoft.com/en-US/library/ms228122(v=VS.80).aspx
http://blog.mastykarz.nl/removing-web-parts-tables-sharepoint-2010/
http://customspwebpartzone.codeplex.com/
http://jphandson.blogspot.co.uk/2012/12/sharepoint-2010-step-by-step-how-to.html?_sm_au_=iVVq05PVr98q5k5R
http://www.lifeinsharepoint.co.uk/2012/04/29/igoogle-ui-sharepoint-2010-part-four-control-adapters/
http://www.lifeinsharepoint.co.uk/tag/control-adapters/
compat.browser schema
http://msdn.microsoft.com/en-US/library/ms228122(v=VS.80).aspx
Measure performance using SPMonitoredScope
http://msdn.microsoft.com/en-us/library/ff512758%28v=office.14%29.aspx
http://zimmergren.net/technical/sp-2010-developing-for-performance-part-2-spmonitoredscope
http://stackoverflow.com/questions/8276723/sharepoint-2010-spmonitoredscope-performance-implication
http://www.wictorwilen.se/sharepoint-2013-what%E2%80%99s-new-with-the-spmonitoredscope
http://blogs.technet.com/b/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx
http://www.rightpoint.com/community/blogs/viewpoint/archive/2011/10/03/using-the-sharepoint-developer-dashboard-and-spmonitoredscope.aspx
http://blogs.technet.com/b/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx
http://zimmergren.net/technical/sp-2010-developing-for-performance-part-2-spmonitoredscope
http://stackoverflow.com/questions/8276723/sharepoint-2010-spmonitoredscope-performance-implication
http://www.wictorwilen.se/sharepoint-2013-what%E2%80%99s-new-with-the-spmonitoredscope
http://blogs.technet.com/b/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx
http://www.rightpoint.com/community/blogs/viewpoint/archive/2011/10/03/using-the-sharepoint-developer-dashboard-and-spmonitoredscope.aspx
http://blogs.technet.com/b/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx
Wednesday, August 14, 2013
Monday, August 12, 2013
CSS Best practises
CSS font-size and height width, etc.
http://www.w3.org/WAI/GL/css2em.htm
Get em width using javascript
http://stackoverflow.com/questions/12241251/is-it-possible-to-get-the-width-of-the-window-in-em-units-using-javascript
Wrap button text (This was really nice)
http://stackoverflow.com/questions/862010/how-to-wrap-text-of-html-button-with-fixed-width
http://www.w3.org/WAI/GL/css2em.htm
Get em width using javascript
http://stackoverflow.com/questions/12241251/is-it-possible-to-get-the-width-of-the-window-in-em-units-using-javascript
Wrap button text (This was really nice)
http://stackoverflow.com/questions/862010/how-to-wrap-text-of-html-button-with-fixed-width
Friday, August 9, 2013
SharePoint get names of all lists in a site
At first I thought portalsitemapprovider is a good option for this, but after searching a bit I realized that's not the case.
Using client object model
http://softarchitect.wordpress.com/2011/08/30/sofware-architecture-sharepoint-2010-getting-name-of-all-the-lists-in-a-site-via-client-side-object-model/
Using server side object model
http://social.msdn.microsoft.com/Forums/en-US/44fef3c8-ea07-41e9-a1d9-a27111fcb48b/spsitedataquery-spquery-navigationprovider-portalsitemapprovider-what-do-i-use
Using client object model
http://softarchitect.wordpress.com/2011/08/30/sofware-architecture-sharepoint-2010-getting-name-of-all-the-lists-in-a-site-via-client-side-object-model/
Using server side object model
http://social.msdn.microsoft.com/Forums/en-US/44fef3c8-ea07-41e9-a1d9-a27111fcb48b/spsitedataquery-spquery-navigationprovider-portalsitemapprovider-what-do-i-use
CAML Query builder
http://stackoverflow.com/questions/16420835/u2u-caml-query-builder-no-longer-available
Since U2U free version is not available anymore, use the below tool
http://karinebosch.wordpress.com/2012/05/12/caml-designer/
SharePoint property & Object model explorer
http://stefan-stanev-sharepoint-blog.blogspot.co.uk/2010/05/sharepoint-2010-explorer-using-client.html?_sm_au_=iVVpDQsPQ7qJjrJN
http://spm.codeplex.com/
This codeplex utility can generate C# code as well
http://spcamlqueryhelper.codeplex.com/
Since U2U free version is not available anymore, use the below tool
http://karinebosch.wordpress.com/2012/05/12/caml-designer/
SharePoint property & Object model explorer
http://stefan-stanev-sharepoint-blog.blogspot.co.uk/2010/05/sharepoint-2010-explorer-using-client.html?_sm_au_=iVVpDQsPQ7qJjrJN
http://spm.codeplex.com/
This codeplex utility can generate C# code as well
http://spcamlqueryhelper.codeplex.com/
Search contents in a sharepoint site
There are several ways to fetch data from sharepoint 2010. Below are few of the most standard ones, however it is worth mentioning that the list does not include client object model or web services which are equally important aspects.
These methods can be used for:
http://www.codeproject.com/Articles/638734/Basics-of-Sharepoint-Search
Using search API
http://social.technet.microsoft.com/wiki/contents/articles/18202.using-the-keywordquery-class-to-search-sharepoint-content.aspx
http://msdn.microsoft.com/en-us/library/ms544561%28office.12%29.aspx
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx
Using site data query
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.webs.aspx
http://www.pointsharepoint.com/2008/08/spsitedataquery-crosslistqueryinfo.html
--- from a single list
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f54cdcd1-d2a3-470e-a939-835934e801c4/using-spsitedataquery-to-pull-items-form-specific-lists
Using CrossListQueryCache
http://donahoo-development.com/index.php/2010/04/16/crosslistqueryinfo-and-crosslistquerycache/
http://bloggingabout.net/blogs/bas/archive/2009/03/27/using-the-crosslistqueryinfo-and-crosslistquerycache.aspx
http://sharepoint.nailhead.net/2008/04/musing-on-crosslistquerycache-class.html
http://donahoo-development.com/index.php/2010/04/16/crosslistqueryinfo-and-crosslistquerycache/
Using ContentByQueryWebPart and CrossListQueryInfo and CrossListQueryCach
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.crosslistquerycache.aspx
SharePoint query classes
http://purunep.wordpress.com/2012/04/26/sharepoint-query-classes-and-where-to-use-them/
http://extreme-sharepoint.com/2012/07/17/data-access-via-caml-queries/
SharePoint 2013
http://code.msdn.microsoft.com/office/Query-Search-with-the-372139b5
SPChangeQuery
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spchangequery.aspx
These methods can be used for:
- Execute search queries
- Get enumeration of list items, documents, lists, pages, etc.
- Get navigation structure either with hidden objects included or without them
- Iterate through all contents in SharePoint 2010 site
http://www.codeproject.com/Articles/638734/Basics-of-Sharepoint-Search
Using search API
http://social.technet.microsoft.com/wiki/contents/articles/18202.using-the-keywordquery-class-to-search-sharepoint-content.aspx
http://msdn.microsoft.com/en-us/library/ms544561%28office.12%29.aspx
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx
Using site data query
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.webs.aspx
http://www.pointsharepoint.com/2008/08/spsitedataquery-crosslistqueryinfo.html
--- from a single list
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f54cdcd1-d2a3-470e-a939-835934e801c4/using-spsitedataquery-to-pull-items-form-specific-lists
Using CrossListQueryCache
http://donahoo-development.com/index.php/2010/04/16/crosslistqueryinfo-and-crosslistquerycache/
http://bloggingabout.net/blogs/bas/archive/2009/03/27/using-the-crosslistqueryinfo-and-crosslistquerycache.aspx
http://sharepoint.nailhead.net/2008/04/musing-on-crosslistquerycache-class.html
http://donahoo-development.com/index.php/2010/04/16/crosslistqueryinfo-and-crosslistquerycache/
Using ContentByQueryWebPart and CrossListQueryInfo and CrossListQueryCach
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.crosslistquerycache.aspx
SharePoint query classes
http://purunep.wordpress.com/2012/04/26/sharepoint-query-classes-and-where-to-use-them/
http://extreme-sharepoint.com/2012/07/17/data-access-via-caml-queries/
SharePoint 2013
http://code.msdn.microsoft.com/office/Query-Search-with-the-372139b5
SPChangeQuery
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spchangequery.aspx
Thursday, August 8, 2013
Visual studio webpart property code snippet
http://sharepoint.stackexchange.com/questions/18935/easy-way-to-add-a-custom-web-part-property-to-a-web-part
http://www.myfriedmind.com/2009/05/sharepoint-2007-properties-snippet/
Add a webpart property
http://msdn.microsoft.com/en-us/library/ms415817%28v=office.14%29.aspx
https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/how-to-create-sharepoint-2010-custom-visual-webpart-properties.aspx
http://www.myfriedmind.com/2009/05/sharepoint-2007-properties-snippet/
Add a webpart property
http://msdn.microsoft.com/en-us/library/ms415817%28v=office.14%29.aspx
https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/how-to-create-sharepoint-2010-custom-visual-webpart-properties.aspx
Wednesday, August 7, 2013
Create content types in VS
http://msdn.microsoft.com/en-us/library/gg295290%28v=office.14%29.aspx
http://msdn.microsoft.com/en-us/library/ff648024.aspx
http://leedale.wordpress.com/2009/01/20/creating-an-enhanced-rich-text-field-in-your-sharepoint-content-types/
http://stackoverflow.com/questions/2172714/deploying-content-type-with-publishing-html-field-by-feature-saving-content-not
http://sharepoint-ss.blogspot.co.uk/?_sm_au_=iVVWSNbsjQF5kPbs
http://harishnagalapur.wordpress.com/
Add-in to create page layout from custom content type
http://visualstudiogallery.msdn.microsoft.com/990bd0c8-a55b-4643-a35d-88136594c3d9/
referenced here
http://rburgundy.wordpress.com/2010/05/21/sharepoint-2010-create-page-layout-based-on-a-custom-content-type-in-visual-studio-2010/
First four characters of the field name must be alphabets
http://www.dannyhansen.nl/sharepoint/sharepoint-2010/first-character-sharepoint-2010-internal-field-name-replaced-with-its-hexadecimal-code
Creating content types programetically
http://sharepointdragons.com/2012/04/10/content-type-galore/
Script to change multiline textbox mode
http://chweber.wordpress.com/tag/sharepoint-2010/
SharePoint OOTB field types
http://sharpointpractice.blogspot.co.uk/2011/08/sharepoint-field-types-elementsxml.html?_sm_au_=iVVpRKFRLF7qMSnQ
Fieldref element in the content type
http://msdn.microsoft.com/en-us/library/aa543225.aspx
http://msdn.microsoft.com/en-us/library/ff648024.aspx
http://leedale.wordpress.com/2009/01/20/creating-an-enhanced-rich-text-field-in-your-sharepoint-content-types/
http://stackoverflow.com/questions/2172714/deploying-content-type-with-publishing-html-field-by-feature-saving-content-not
http://sharepoint-ss.blogspot.co.uk/?_sm_au_=iVVWSNbsjQF5kPbs
http://harishnagalapur.wordpress.com/
Add-in to create page layout from custom content type
http://visualstudiogallery.msdn.microsoft.com/990bd0c8-a55b-4643-a35d-88136594c3d9/
referenced here
http://rburgundy.wordpress.com/2010/05/21/sharepoint-2010-create-page-layout-based-on-a-custom-content-type-in-visual-studio-2010/
First four characters of the field name must be alphabets
http://www.dannyhansen.nl/sharepoint/sharepoint-2010/first-character-sharepoint-2010-internal-field-name-replaced-with-its-hexadecimal-code
Creating content types programetically
http://sharepointdragons.com/2012/04/10/content-type-galore/
Script to change multiline textbox mode
http://chweber.wordpress.com/tag/sharepoint-2010/
SharePoint OOTB field types
http://sharpointpractice.blogspot.co.uk/2011/08/sharepoint-field-types-elementsxml.html?_sm_au_=iVVpRKFRLF7qMSnQ
Fieldref element in the content type
http://msdn.microsoft.com/en-us/library/aa543225.aspx
Monday, August 5, 2013
Apply CSS only to IE
To apply css file only for IE use this tag
<%-- Added a version number to force refresh --%>
<%-- Added a version number to force refresh --%>
<!--[if lt IE 9]>
<link rel="stylesheet"
type="text/css" media="screen"
href="/_layouts/Myfeature/css/MyIEStyles.css?v=5"
/>
<![endif]-->
Friday, August 2, 2013
SharePoint 2010 create page layout
This is a bit odd, but I need to copy this code very often, and so the bookmark ..
http://m3rken.wordpress.com/2012/02/16/custom-publishing-page-layout-containing-a-custom-webpart/
http://blogs.msdn.com/b/kaevans/archive/2011/04/02/code-behind-page-layouts-with-visual-studio-2010.aspx
http://m3rken.wordpress.com/2012/02/16/custom-publishing-page-layout-containing-a-custom-webpart/
http://blogs.msdn.com/b/kaevans/archive/2011/04/02/code-behind-page-layouts-with-visual-studio-2010.aspx
Thursday, August 1, 2013
Subsites are sorted in global navigation
After creating a custom master page where subsite titles were automatically sorted alphabetically in global navigation menu and pulling out my hair for almost 3 hours I realised that the order can be changed in Site Settings -> Navigation page. Hmmm .. need to take a coffee break :-)
Sharepoint 2010 custom navigation provider
Created a custom navigation provider using this link
http://code.msdn.microsoft.com/office/SharePoint-2010-Developing-5f0e73c2
but it retrieves all nodes from the root web in site collection so I had to configure the SiteMapDataSource object to show nodes only from current site as below
http://code.msdn.microsoft.com/office/SharePoint-2010-Developing-5f0e73c2
but it retrieves all nodes from the root web in site collection so I had to configure the SiteMapDataSource object to show nodes only from current site as below
<asp:SiteMapDataSource ShowStartingNode="true" SiteMapProvider="MyCustomSiteMapProvider"
ID="topSiteMap"
runat="server"
StartFromCurrentNode="true"
StartingNodeOffset="0"
/>
Subscribe to:
Posts (Atom)
c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...
-
SharePoint has a great feature to set terms which can be used to tag contents and enable terms based navigation and several other interesti...
-
Responsive design http://webdesignerwall.com/tutorials/5-useful-css-tricks-for-responsive-design http://palantir.net/blog/responsive-de...
-
Secure Microservices Using JWT With Ocelot in .NET Core (code-maze.com)