Tuesday, December 31, 2013
Wednesday, December 4, 2013
Code Access security
In visual studio
http://blog.mastykarz.nl/code-access-security-policy-template-visual-studio-2010-sharepoint-developer-tools/
In web.config file
http://blogs.msdn.com/b/navdeepm/archive/2009/09/19/code-access-security-in-sharepoint.aspx
Using C#
http://msdn.microsoft.com/en-us/library/system.security.permissionset(v=vs.110).aspx
Config tool
http://msdn.microsoft.com/en-us/library/xbk2s3fa(v=vs.90).aspx
Thursday, November 28, 2013
Mobile carousel image viewer
I have used the html script from below blog for mobile carousel control, this is a great control, thanks to Matteo Spinelli who has done a great job providing such a useful control in as little code as possible. It users css styles for image transitions which is very efficient in browser.
HOW TO
DEMO
It was requirement of the project to use this control for horizontal swapping, which unfortunately seems to be having few issues, therefore I have modified the cardview.js file to work a little smoother in horizontal swapping mode. The complete code can be found here.
SharePoint 2010 uncustomize a page layout
2) Using powershell script: http://admin-sharepoint.blogspot.co.uk/2013/05/unghosting-customized-page-layouts-with.html
3) Using SharePoint Designer: http://mosshowto.blogspot.co.uk/2008/10/re-ghost-master-pages-sharepoint.html
4) Using stsadm: http://blog.ithinksharepoint.com/2011/05/10/issue-with-updating-sharepoint-publishing-page-layouts-and-ghosting/
5) Using site settings, though this works for a normal site page, I am not sure if will works for a page layout or a master page: http://rolandoldengarm.wordpress.com/2012/01/23/page-layouts-in-master-page-gallery-not-updated-after-a-deployment/
6) Free utility: http://www.codeproject.com/Articles/514279/Ghostplusun-ghostedplusSharePointplus2010plusfiles
To disable customization
http://blogs.msdn.com/b/steve_fox/archive/2010/03/08/ghosting-unghosting-in-sharepoint-2010.aspx
other references:
https://www.google.co.uk/search?q=sharepoint+2010+customize+page+layout&oq=sharepoint+2010+uncustomize+p&aqs=chrome.1.69i57j0l5.20326j0j8&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8#es_sm=93&espv=210&q=sharepoint+2010+unghost+page+layout&start=10
3) Using SharePoint Designer: http://mosshowto.blogspot.co.uk/2008/10/re-ghost-master-pages-sharepoint.html
4) Using stsadm: http://blog.ithinksharepoint.com/2011/05/10/issue-with-updating-sharepoint-publishing-page-layouts-and-ghosting/
5) Using site settings, though this works for a normal site page, I am not sure if will works for a page layout or a master page: http://rolandoldengarm.wordpress.com/2012/01/23/page-layouts-in-master-page-gallery-not-updated-after-a-deployment/
6) Free utility: http://www.codeproject.com/Articles/514279/Ghostplusun-ghostedplusSharePointplus2010plusfiles
To disable customization
http://blogs.msdn.com/b/steve_fox/archive/2010/03/08/ghosting-unghosting-in-sharepoint-2010.aspx
other references:
https://www.google.co.uk/search?q=sharepoint+2010+customize+page+layout&oq=sharepoint+2010+uncustomize+p&aqs=chrome.1.69i57j0l5.20326j0j8&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8#es_sm=93&espv=210&q=sharepoint+2010+unghost+page+layout&start=10
Wednesday, November 27, 2013
SharePoint 2010 page layouts versioning
A page layout deployed through visual studio feature automatically updates the underlying page layout file everytime a new deployment is done, however
- This change is not reflected in version history, thus there is no way to figure out by just looking at the master pages gallery when was the page layout modified last time. The only way this can be verified is by opening the feature folder under 14 hive and making a note of the last modified date for the page layout file.
- The page layout does allow us to manually upload a new version, but EnableSessionState attribute is not allowed in manually uploaded page
- If a custom class derived from a PublishingLayoutPage class is used as base class for the page layout then manually uploaded page layout requires it to be registered as a safe control, even though the same template deployed through a feature does not.
Tuesday, November 26, 2013
Thursday, November 21, 2013
Find GPS location of client browser
http://blog.walisystemsinc.com/2012/02/html5-geolocation-and-sharepoint-2010_20.html
http://www.codeproject.com/Articles/31965/Learn-How-to-Find-GPS-Location-on-Any-SmartPhone-a
http://www.codeproject.com/Articles/8128/Writing-Your-Own-GPS-Applications-Part-I
http://www.codeproject.com/Articles/9115/Writing-Your-Own-GPS-Applications-Part-2
http://www.codeproject.com/Articles/28528/Writing-GIS-and-Mapping-Software-for-NET
http://gps2.codeplex.com/
http://gps3.codeplex.com/
http://geoframework1.codeplex.com/
http://geoframework.codeplex.com/
http://dotspatial.codeplex.com/
http://www.paulund.co.uk/how-to-use-geolocation-api-with-google-maps
http://viralpatel.net/blogs/html5-geolocation-api-tutorial-example/
http://www.geoplugin.com/examples
http://stackoverflow.com/questions/409999/getting-the-location-from-an-ip-address
http://krister.fi/jquery.geolocator/
http://www.9lessons.info/2011/06/geo-location-with-html5-and-jquery.html
https://github.com/manuelbieh/jQuery-Geolocation
http://tympanus.net/codrops/2012/10/11/real-time-geolocation-service-with-node-js/
For old browsers below posts have some useful hints:
http://msdn.microsoft.com/en-us/magazine/hh580735.aspx
https://github.com/estebanav/javascript-mobile-desktop-geolocation
http://www.codeproject.com/Articles/31965/Learn-How-to-Find-GPS-Location-on-Any-SmartPhone-a
http://www.codeproject.com/Articles/8128/Writing-Your-Own-GPS-Applications-Part-I
http://www.codeproject.com/Articles/9115/Writing-Your-Own-GPS-Applications-Part-2
http://www.codeproject.com/Articles/28528/Writing-GIS-and-Mapping-Software-for-NET
http://gps2.codeplex.com/
http://gps3.codeplex.com/
http://geoframework1.codeplex.com/
http://geoframework.codeplex.com/
http://dotspatial.codeplex.com/
http://www.paulund.co.uk/how-to-use-geolocation-api-with-google-maps
http://viralpatel.net/blogs/html5-geolocation-api-tutorial-example/
http://www.geoplugin.com/examples
http://stackoverflow.com/questions/409999/getting-the-location-from-an-ip-address
http://krister.fi/jquery.geolocator/
http://www.9lessons.info/2011/06/geo-location-with-html5-and-jquery.html
https://github.com/manuelbieh/jQuery-Geolocation
http://tympanus.net/codrops/2012/10/11/real-time-geolocation-service-with-node-js/
For old browsers below posts have some useful hints:
http://msdn.microsoft.com/en-us/magazine/hh580735.aspx
https://github.com/estebanav/javascript-mobile-desktop-geolocation
Friday, November 15, 2013
Thursday, November 14, 2013
Friday, November 8, 2013
Google analytics
Set up tracking code
https://support.google.com/analytics/answer/1008080?hl=en
Measure the number of transactions and revenue using Ecommerse tracking
https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce3
Walkthroughs
http://econsultancy.com/uk/blog/8479-10-great-google-analytics-walkthroughs
https://support.google.com/analytics/answer/1008080?hl=en
Measure the number of transactions and revenue using Ecommerse tracking
https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce3
Walkthroughs
http://econsultancy.com/uk/blog/8479-10-great-google-analytics-walkthroughs
Friday, November 1, 2013
Thursday, October 31, 2013
SharePoint Browser File Handling
Browser file handling in sharepoint prevents the web browser from diplaying a html file directly and instead shows a download prompt ... more information can be found here:
http://social.technet.microsoft.com/wiki/contents/articles/8073.sharepoint-2010-and-2013-browser-file-handling-deep-dive.aspx
http://social.technet.microsoft.com/wiki/contents/articles/8073.sharepoint-2010-and-2013-browser-file-handling-deep-dive.aspx
Wednesday, October 30, 2013
Scaling div size with background image whilst keeping aspect ratio
The easiest way is to use below style for the div
A more detailed approach is listed in this post
<div class="divImage"
style='<%#
"background: url(\""
+ DataBinder.Eval(Container.DataItem, "divImage") + "\")
no-repeat center
center; background-size:
cover;" %>'></div>
A more detailed approach is listed in this post
Monday, October 28, 2013
Tuesday, October 15, 2013
Sharepoint 2013 Custom Image reditions
While going through this article I found a link to and article on custom image renditions in SharePoint 2013, its certainly useful.
http://blog.mastykarz.nl/responsive-image-renditions-sharepoint-2013/
http://blog.mastykarz.nl/responsive-image-renditions-sharepoint-2013/
Windows process explorer
This comes in handy if we need to find out a dlls is being used by which processes. I had to use it when I got an error "cannot access assembly because it is being used by another process" while uninstalling a dll from GAC.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/356913a7-dda7-41a7-8702-f71ec0a8b7db/cannot-add-assembly-to-gac?forum=sharepointdevelopmentlegacy
The reason for "cannot access assembly because it is being used by another process" error was that I has added a reference to this dll in a Visual Studio 2012 project and the project was open. The issue was resolved after I close all instances of visual studio
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/356913a7-dda7-41a7-8702-f71ec0a8b7db/cannot-add-assembly-to-gac?forum=sharepointdevelopmentlegacy
The reason for "cannot access assembly because it is being used by another process" error was that I has added a reference to this dll in a Visual Studio 2012 project and the project was open. The issue was resolved after I close all instances of visual studio
Monday, October 14, 2013
Wednesday, October 9, 2013
SharePoint custom summary links field with rich HTML
http://blog.zebsadiq.com/post/How-to-allow-rich-text-editing-on-summary-link-description-field.aspx
http://msdn.microsoft.com/en-us/library/aa981226%28v=office.12%29.aspx
http://webarj.wordpress.com/2007/05/07/templating-field-controls-in-moss-page-layouts/
http://msdn.microsoft.com/en-us/library/bb861799%28v=office.14%29.aspx
While following steps in the above post I was unable to add using directive for System.Windows.Controls namespace found in PresentationFramework.dll, after searching a little on internet I realized that the dll reference can not be added since I was trying to use 32 bit dll version found in Program Files (x86) directory. Instead when I added dll reference to Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll, the namespace was available.
The sharepoint software factory also has precipices to add custom fields although not one for custom summary links field
http://spsf.codeplex.com/
after installing it I was getting an error "The package SPAM.SPSF could not be activated, the template cannot be unfolded", the reason was I did not activate the SPSF extention as explained here
http://msdn.microsoft.com/en-us/library/ff697223.aspx
Field Definitions
http://msdn.microsoft.com/en-us/library/aa979575.aspx
Finally I used below steps to create a simple field which only saves URL to a custom list
http://bernado-nguyen-hoan.com/2011/11/07/walkthrough-custom-field-type-for-uploading-and-displaying-images-in-sharepoint-2010-lists/
And then added that lists default view webpart to the "View Rendering Template" and "Diplay Rendering Template". The steps to create a list view webpart programmatically are explained in below post,
http://stackoverflow.com/questions/1588019/programmatically-insert-a-list-as-a-webpart-in-a-webpart-page-in-wss-3-0
However I did not use any webpart zone in my control and simply added the webpart to the base.TemplateContainer.Controls collection.
http://msdn.microsoft.com/en-us/library/office/ms543215(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/aa981226%28v=office.12%29.aspx
http://webarj.wordpress.com/2007/05/07/templating-field-controls-in-moss-page-layouts/
http://msdn.microsoft.com/en-us/library/bb861799%28v=office.14%29.aspx
While following steps in the above post I was unable to add using directive for System.Windows.Controls namespace found in PresentationFramework.dll, after searching a little on internet I realized that the dll reference can not be added since I was trying to use 32 bit dll version found in Program Files (x86) directory. Instead when I added dll reference to Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll, the namespace was available.
The sharepoint software factory also has precipices to add custom fields although not one for custom summary links field
http://spsf.codeplex.com/
after installing it I was getting an error "The package SPAM.SPSF could not be activated, the template cannot be unfolded", the reason was I did not activate the SPSF extention as explained here
http://msdn.microsoft.com/en-us/library/ff697223.aspx
Field Definitions
http://msdn.microsoft.com/en-us/library/aa979575.aspx
Finally I used below steps to create a simple field which only saves URL to a custom list
http://bernado-nguyen-hoan.com/2011/11/07/walkthrough-custom-field-type-for-uploading-and-displaying-images-in-sharepoint-2010-lists/
And then added that lists default view webpart to the "View Rendering Template" and "Diplay Rendering Template". The steps to create a list view webpart programmatically are explained in below post,
http://stackoverflow.com/questions/1588019/programmatically-insert-a-list-as-a-webpart-in-a-webpart-page-in-wss-3-0
However I did not use any webpart zone in my control and simply added the webpart to the base.TemplateContainer.Controls collection.
http://msdn.microsoft.com/en-us/library/office/ms543215(v=office.14).aspx
Tuesday, October 8, 2013
Monday, October 7, 2013
Tuesday, October 1, 2013
Deleting orphaned content type
If deleting an orphaned content type gives the error "SPException: The content type "XYZ" is part of an application feature.", we need to change "IsFromFeature" flag in content database for the particular content type from "1" to "0" as explained in these posts:
http://sharepoint.stackexchange.com/questions/11114/how-to-delete-a-content-type-part-of-an-application-feature
http://apichot.blogspot.co.uk/2009/11/how-to-delete-orphan-content-type.html?_sm_au_=iVVW6SjD4nF5Jrt6
and then delete the content type either manually or using code as explained here:
http://msdn.microsoft.com/en-us/library/ms453791.aspx
If you get an error "Content Type is still in use<nativehr>0x800710d3</nativehr><nativestack></nativestack>" follow below instructions
http://www.mysharepointadventures.com/2011/06/content-type-is-still-in-use-woes/
There are some times broken link as explained in below post, but this method is too risky to try and not supported by microsoft. I have just mentioned it here for a reference, but I would not recommend it.
http://mqsharepoint.blogspot.co.uk/2009/01/content-type-is-still-in-use.html?_sm_au_=iVVtTJsssQkjV8tM
http://sharepoint.stackexchange.com/questions/11114/how-to-delete-a-content-type-part-of-an-application-feature
http://apichot.blogspot.co.uk/2009/11/how-to-delete-orphan-content-type.html?_sm_au_=iVVW6SjD4nF5Jrt6
and then delete the content type either manually or using code as explained here:
http://msdn.microsoft.com/en-us/library/ms453791.aspx
If you get an error "Content Type is still in use<nativehr>0x800710d3</nativehr><nativestack></nativestack>" follow below instructions
http://www.mysharepointadventures.com/2011/06/content-type-is-still-in-use-woes/
There are some times broken link as explained in below post, but this method is too risky to try and not supported by microsoft. I have just mentioned it here for a reference, but I would not recommend it.
http://mqsharepoint.blogspot.co.uk/2009/01/content-type-is-still-in-use.html?_sm_au_=iVVtTJsssQkjV8tM
Tuesday, September 24, 2013
Friday, September 20, 2013
Thursday, September 19, 2013
Tuesday, September 17, 2013
Monday, September 16, 2013
fix for sharepoint 2010 scrollbar not displayed issue
http://kyleschaeffer.com/sharepoint/sharepoint-2010-scrolling/
Add !important to every style in the second post
Add !important to every style in the second post
Thursday, September 12, 2013
Wednesday, September 11, 2013
Thursday, September 5, 2013
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]-->
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...
-
Responsive design http://webdesignerwall.com/tutorials/5-useful-css-tricks-for-responsive-design http://palantir.net/blog/responsive-de...
-
SharePoint has a great feature to set terms which can be used to tag contents and enable terms based navigation and several other interesti...
-
After cloning a git repo of dot net framework website and trying to run it all I could see was this error Turns out the fix was to simply e...