<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Yogesh Joshi's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/yojoshi/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/yojoshi/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 05:35:54 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Localizing CQWP (ContentByQuery) web part</title>
      <link>https://docs.microsoft.com/archive/blogs/yojoshi/localizing-cqwp-contentbyquery-web-part</link>
      <pubDate>Sun, 29 Apr 2012 01:46:00 GMT</pubDate>
      <dc:creator><![CDATA[Yogesh Joshi]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/yojoshi/2012/04/29/localizing-cqwp-contentbyquery-web-part/</guid>
      <description><![CDATA[Content By Query Web Part
SharePoint 2010 provides some most useful Out of the box web parts. CQWP...]]></description>
      <content:encoded><![CDATA[<h1>Content By Query Web Part</h1>
<p>SharePoint 2010 provides some most useful Out of the box web parts. CQWP (Content By Query) web part is one of them. There are many articles around web explaining how to customize CQWP. However, apart from XSL customizations, many times we have support multilingual UI interface for the lables or the text being displayed on CQWP. There are different ways to achieve this, like having different language specific XSL templates. Having multiple templates is obiously great deployment and maintainance overhead. This article talks about extending out of the box SharePoint Content by query web part and enabling the localization in easy way. The localized lables will be picked from resx files as usual way. Hence adding new language is also extremely simple.</p>
<h1>Extending and Localizing CQWP</h1>
<p>For extending OOTB (Out of the box) CQWP you need to derive from <strong>ContentByQueryWebPart</strong> class localted under <strong>Microsoft.SharePoint.Publishing.WebControls</strong> namespace which is part of <strong>Microsoft.SharePoint.Publishing.dll</strong> assembly.</p>
<p>Once done, override <strong>ModifyXsltArgumentList</strong>. This function gets called before the xsl transformation is applied to the data returend by query to CQWP. Here, we will add one <strong>ExtensionObject</strong> named <strong>LocalizationHelper</strong>&nbsp;</p>
<div class="WordSection1">
<table style="background: #f2f2f2; border: currentColor; border-collapse: collapse; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td style="padding: 0in 5.4pt; border: 1pt solid windowtext; width: 6.65in; mso-border-alt: solid windowtext .5pt;" valign="top" width="638">
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;summary&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> Pass additional parameters to XSL <span class="SpellE">stylesheet</span>.</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;/summary&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;<span class="SpellE">param</span> name="<span class="SpellE">argList</span>"&gt;</span><span style="color: green;">XSL Argument list.</span><span style="color: gray;">&lt;/<span class="SpellE">param</span>&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">protected</span> <span style="color: blue;">override</span> <span style="color: blue;">void</span> <span class="SpellE">ModifyXsltArgumentList</span>(<span class="SpellE"><span style="color: #2b91af;">ArgumentClassWrapper</span></span> <span class="SpellE">argList</span>)<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">if</span> (<span class="SpellE">argList</span> == <span style="color: blue;">null</span>)<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="GramE"><span style="color: blue;">string</span></span> <span class="SpellE">msg</span> = <span style="color: #a31515;">"Argument <span class="SpellE">argList</span> <span class="SpellE">can not</span> be null."</span>;<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">throw</span> <span style="color: blue;">new</span> <span class="SpellE"><span style="color: #2b91af;">ArgumentNullException</span></span>(<span class="SpellE">msg</span>);<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">argList.AddExtensionObject</span>(<span style="color: #a31515;">"https://localizedcqwp"</span>, <span style="color: blue;">new</span> <span class="SpellE"><span style="color: #2b91af;">LocalizationHelper</span></span>());<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span style="color: blue;">base</span>.ModifyXsltArgumentList</span>(<span class="SpellE">argList</span>);<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><o:p></o:p>&nbsp;</p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><o:p>Following is the code for LocalizationHelper class</o:p></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><o:p></o:p>&nbsp;</p>
</div>
<div class="WordSection1">
<table style="background: #f2f2f2; border: currentColor; border-collapse: collapse; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td style="padding: 0in 5.4pt; border: 1pt solid windowtext; width: 6.65in; mso-border-alt: solid windowtext .5pt;" valign="top" width="638">
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;</span><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;summary&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> XSL Extension object to return the localized string with given id</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;/summary&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;</span><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span><span style="color: blue;">public</span> <span style="color: blue;">class</span> <span style="color: #2b91af;">LocalizationHelper</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>#region</span><span style="font-family: Consolas; font-size: 9.5pt;"> Constructors<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;summary&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> Initializes a new instance of the LocalizationHelper class, sets the webObject with the instance of SPWeb supplied</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;/summary&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">public</span> LocalizationHelper()<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>#endregion</span><span style="font-family: Consolas; font-size: 9.5pt;"> Constructors<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>#region</span><span style="font-family: Consolas; font-size: 9.5pt;"> Methods<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;summary&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> Get the localized string for current UI culture.</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;/summary&gt;</span><span style="color: green;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;param name="resourceId"&gt;</span><span style="color: green;">Resource identifier.</span><span style="color: gray;">&lt;/param&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: gray;">///</span><span style="color: green;"> </span><span style="color: gray;">&lt;returns&gt;</span><span style="color: green;">returns the localized string</span><span style="color: gray;">&lt;/returns&gt;</span><o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">public</span> <span style="color: blue;">static</span> <span style="color: blue;">string</span> GetLocalizedString(<span style="color: blue;">string</span> resourceId)<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">return</span> <span style="color: #2b91af;">SPUtility</span>.GetLocalizedString(resourceId, <span style="color: #a31515;">"Contoso"</span>, (<span style="color: blue;">uint</span>)<span style="color: #2b91af;">CultureInfo</span>.CurrentUICulture.LCID);<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>#endregion</span><span style="font-family: Consolas; font-size: 9.5pt;"> Methods<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><span style="font-family: Consolas; font-size: 9.5pt;"><o:p>&nbsp;</o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><strong></strong>&nbsp;</p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal"><strong>LocaliztionHelper </strong>class makes use of out of the box SharePoint 2010 <strong>SPUtility.GetLocalizedString</strong> function. Which returns the language specific string of given ID from the specified resource file. Here file named "Contoso.resx" will be searched for the string. Please note that, based on the current UI language the variated file will be selected for example, if current UI language is en-US then, Contoso.en-US.resx file will be searched for given resource Id. Once done now we can modify the xsl template to make use of this function. You can use this function in any of ContentQueryMain.xsl, ItemStyle.xsl or HeaderStyle.xsl files or any dependant files where the extension object is properly referenced.</p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal">To achieve this, first step is to add the namespace reference at the top of the xslt file.</p>
<p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;" class="MsoNormal">&nbsp;</p>
<div class="WordSection1">
<table style="background: #f2f2f2; border: currentColor; border-collapse: collapse; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td style="width: 6.65in; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top" width="638">
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span class="GramE"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&lt;?</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">xml</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">version</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">1.0</span>"<span style="color: blue;"> </span><span style="color: red;">encoding</span><span style="color: blue;">=</span>"<span style="color: blue;">utf-8</span>"<span style="color: blue;"> ?&gt;</span><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&lt;</span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: #2b91af;">xsl:stylesheet</span></span><span style="font-size: 9.5pt; font-family: Consolas;"><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">version</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">1.0</span>"<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">exclude-result-prefixes</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">x <span class="SpellE">xsl</span> <span class="SpellE">cmswrt</span> <span class="SpellE">cbq</span></span>"<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: red;">xmlns:x</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">https://www.w3.org/2001/XMLSchema</span>"<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: red;">xmlns:xsl</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">https://www.w3.org/1999/XSL/Transform</span>"<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">xmlns:cmswrt</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">https://schemas.microsoft.com/WebPart/v3/Publishing/runtime</span>"<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: red;">xmlns:cbq</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span class="SpellE"><span style="color: blue;">urn:schemas-microsoft-com:ContentByQueryWebPart</span></span>"<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: red; background: yellow; mso-highlight: yellow;">xmlns:lcqwp</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background: yellow; mso-highlight: yellow;">=</span><span style="font-size: 9.5pt; font-family: Consolas; background: yellow; mso-highlight: yellow;">"<span style="color: blue;">https://localizedcqwp</span>"<span style="color: blue;">&gt;</span></span><span style="font-size: 9.5pt; font-family: Consolas;"><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp; </span>&lt;</span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: #2b91af;">xsl:output</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">method</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">xml</span>"<span style="color: blue;"> </span><span style="color: red;">indent</span><span style="color: blue;">=</span>"<span style="color: blue;">no</span>"<span style="color: blue;"> </span><span style="color: red;">media-type</span><span style="color: blue;">=</span>"<span style="color: blue;">text/html</span>"<span style="color: blue;"> </span><span style="color: red;">omit-xml-declaration</span><span style="color: blue;">=</span>"<span style="color: blue;">yes</span>"<span style="color: blue;">/&gt;</span><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp; </span>&lt;</span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: #2b91af;">xsl:param</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span class="SpellE"><span style="color: blue;">cbq_isgrouping</span></span>"<span style="color: blue;"> /&gt;</span><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp; </span>&lt;</span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: #2b91af;">xsl:param</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span class="SpellE"><span style="color: blue;">cbq_columnwidth</span></span>"<span style="color: blue;"> /&gt;<o:p></o:p></span></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal">&nbsp;</p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal">Now, wherever you want to display the localized string, you can call <strong>GetLocalizedString</strong> function directly from XSLT Code</p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal">&nbsp;</p>
</div>
<div class="WordSection1">
<table style="background: #f2f2f2; border: currentColor; width: 100%; border-collapse: collapse; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td style="width: 100.0%; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;" valign="top" width="100%">
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&lt;!--</span><span style="font-size: 9.5pt; font-family: Consolas; color: green;"> Empty template </span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">--&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp; </span>&lt;</span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: #2b91af;">xsl:template</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span class="SpellE"><span style="color: blue;">OuterTemplate.EmptyContosoTemplate</span></span>"<span style="color: blue;">&gt;</span><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">div</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">class</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span class="SpellE"><span style="color: blue;">contoso_lcqwp</span></span>"<span style="color: blue;">&gt;</span><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">div</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">class</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span class="SpellE"><span style="color: blue;">wp</span></span><span style="color: blue;">-content description</span>"<span style="color: blue;">&gt;</span><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: yellow; mso-highlight: yellow;">&lt;</span></span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: yellow; mso-highlight: yellow;">xsl:value-of</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background: yellow; mso-highlight: yellow;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red; background: yellow; mso-highlight: yellow;">select</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background: yellow; mso-highlight: yellow;">=</span><span style="font-size: 9.5pt; font-family: Consolas; background: yellow; mso-highlight: yellow;">"<span style="color: blue;">lcqwp:GetLocalizedString('$Resources:lcqwp_webpart_noresults_text;')</span>"<span style="color: blue;">/&gt;</span></span><span style="font-size: 9.5pt; font-family: Consolas;"><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">div</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">div</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"><o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span style="mso-spacerun: yes;">&nbsp; </span>&lt;/</span><span class="SpellE"><span style="font-size: 9.5pt; font-family: Consolas; color: #2b91af;">xsl:template</span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">.<o:p></o:p></span></p>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
</div>
</div>
<p>In this way, Localiztion of CQWP can be achieved by making use of Extenstion objects functionality of XSL templates.</p>]]></content:encoded>
    </item>
    <item>
      <title>Easy way to deploy .resx (resource) files under App_GlobalResources folder in SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/yojoshi/easy-way-to-deploy-resx-resource-files-under-app_globalresources-folder-in-sharepoint-2010</link>
      <pubDate>Sat, 28 Apr 2012 23:46:00 GMT</pubDate>
      <dc:creator><![CDATA[Yogesh Joshi]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/yojoshi/2012/04/28/easy-way-to-deploy-resx-resource-files-under-app_globalresources-folder-in-sharepoint-2010/</guid>
      <description><![CDATA[Resource files in SharePoint 2010
Resource files are mainly used for localization of the custom...]]></description>
      <content:encoded><![CDATA[<h1>Resource files in SharePoint 2010</h1>
<p>Resource files are mainly used for localization of the custom solution.</p>
<p>While working with SharePoint 2010, many times the customizations need to be localized and hence, it means that developers have to play around the language specific resx files. Deployment of resx files through the SharePoint solution can be achieved using SharePoint mapped folder named <strong>"Resources"</strong>. However the files those goes under this path can be accessed using <a title="SPUtility.GetLocalizedString" href="https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.getlocalizedstring.aspx" target="_blank">SPUtility.GetLocalizedString</a> function. Majority of the times, you may have customizations related to the user interface which are declarative. SharePoint 2010 is based on ASP.NET technology so for, any tags related to resources the resx files will be searched in <strong>App_GlobalResources</strong> folder located under <strong>intepub\wwroot\wss\&lt;&lt;application&gt;&gt;</strong> folder hierarchy.</p>
<p>This puts additional overhead&nbsp;of deployment to the developer who want to use the traditional <strong>ASP.NET</strong> way of localizing UI resources. As, we need to ensure that the resx files should be deployed under both <strong>14 hive</strong> and <strong>App_GlobalResources</strong> folders.</p>
<p>There are multiple ways to deploy the resource files. Following are few of them</p>
<ul>
<li>Write an event handler to copy resx files</li>
<li>Custom timer job</li>
<li>PowerShell Script as a part of deployment</li>
<li>Manual copy and so on....</li>
</ul>
<p>But what about the solution uninstallations, upgrades and moreover if you have multi server environments, manual deplooyment of resx files is more tedious and erroneous.</p>
<p>SharePoint 2010 Projects supports feature called as <strong>"Elements"</strong>. Using Elements we can deploy number of files at specific locations. Following solution makes use of Elements to deploy <strong>resx</strong> files to <strong>App_GlobalResources</strong> folder. Few advantages of this are as below</p>
<ul>
<li>No need to write custom code for deployment</li>
<li>Resx files are packaged as a part of WSP</li>
<li>No need to worry about upgrades and uninistallations its done automatically in SharePoint way</li>
<li>Works perfectly on multi server enviornment</li>
<li>No manual steps</li>
</ul>
<h1>&nbsp;How to do it?</h1>
<ul>
<li>Create new <strong>Empty SharePoint 2010 Project</strong> name it as <strong>ResxDeployment</strong></li>
<li><strong></strong>Choose a local site for&nbsp;debugging and, choose deployment type <strong>Deploy as farm solution</strong></li>
</ul>
<p style="padding-left: 30px;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/4034.2.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/4034.2.PNG"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/4034.2.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/4034.2.PNG" /></a></strong>&nbsp;</p>
<ul>
<li>In Solution Explorer, right click on <strong>ResxDeployment</strong> project and Add <strong>SharePoint Mapped Folder</strong></li>
<li>In <strong>Add SharePoint Mapped&nbsp;Folder</strong> dialog box, choose <strong>Resources</strong>&nbsp;and click <strong>OK</strong></li>
</ul>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/4341.4.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/4341.4.PNG"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/4341.4.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/350x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/4341.4.PNG" /></a></p>
<ul>&nbsp;
<li>In <strong>Solution Explorer</strong>, right click on <strong>ResxDeployment</strong> project and Add <strong>New Item</strong></li>
<li>Add few sample resx files to the Resources folder</li>
</ul>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/7028.6.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/7028.6.PNG"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/7028.6.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/7028.6.PNG" /></a>&nbsp;</p>
<ul>
<li>In <strong>Solution Explorer</strong>, right click on <strong>ResxDeployment</strong> project and Add <strong>New Item. </strong>Add <strong>Empty Element</strong> and name it as required for e.g. <strong>App_GlobalResources</strong></li>
</ul>
<p style="padding-left: 30px;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/6012.7.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/6012.7.PNG"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/6012.7.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/6012.7.PNG" /></a></strong>&nbsp;</p>
<ul>
<li>In <strong>Solution Explorer</strong>, click on Show All Files icon to view all files. Open <strong>SharePointProjectItem.spdata</strong> files located under <strong>App_GlobalResources </strong>node</li>
</ul>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/7776.8.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/7776.8.PNG"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/7776.8.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/7776.8.PNG" /></a>&nbsp;</p>
<ul>
<li>Add the relavent information to the xml file which includes Source, and Type of the file. The type should be set to <strong>AppGlobalResource</strong> and source should be a relative path of resx file. Following is the example</li>
</ul>
<div class="WordSection1">
<pre class="scroll"><code class="html">&lt;?xml version="1.0" encoding="utf-8"?&gt; <br />&lt;ProjectItem Type="Microsoft.VisualStudio.SharePoint.GenericElement" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site, WebApplication, Farm, Package" xmlns="https://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel"&gt; <br /> &lt;Files&gt; <br /> &lt;ProjectItemFile Source="Elements.xml" Target="App_GlobalResources\" Type="ElementManifest" /&gt; <br /> &lt;ProjectItemFile Source="..\Resources\Contoso.resx" Type="AppGlobalResource"/&gt; <br /> &lt;ProjectItemFile Source="..\Resources\Contoso.de-DE.resx" Type="AppGlobalResource"/&gt; <br /> &lt;ProjectItemFile Source="..\Resources\Contoso.en-GB.resx" Type="AppGlobalResource"/&gt; <br /> &lt;ProjectItemFile Source="..\Resources\Contoso.en-US.resx" Type="AppGlobalResource"/&gt; <br /> &lt;ProjectItemFile Source="..\Resources\Contoso.es-ES.resx" Type="AppGlobalResource"/&gt; <br /> &lt;ProjectItemFile Source="..\Resources\Contoso.it-IT.resx" Type="AppGlobalResource"/&gt; <br /> &lt;/Files&gt; <br />&lt;/ProjectItem&gt; <br /></code></pre>
</div>
<ul>
<li>In <strong>Solution Explorer</strong>, right click on <strong>ResxDeployment</strong> project and choose Deploy</li>
<li>If everything goes well the solution will be deployed on given web application. Also, you can verify that the <strong>resx</strong> files are deployed under <strong>App_GlobalResources</strong> and <strong>14\Resources</strong> folders</li>
</ul>
<h1>Points to be noted :</h1>
<ol>
<li>Resource files are deployed at two diffrent locations. You can directly add resx files to only elemets folder if needed.</li>
<li>There is no need to copy the files from Resources mapped folder to App_GlobalResources element folder in Visual studio. There is only one copy of resx file hence, no need to worry about multiple location changes</li>
<li>For every additional resx file, <strong>SharePointProjectItem.spdata</strong> file should be updated otherwise the file will not be copied to <strong>App_GlobalResources</strong> folder of web application</li>
<li>Please set the <strong>Scope</strong> of the Feature that includes this module as relavent. It is preferrable to set, Application Level Scoped</li>
</ol>
<p>In this way, by using OOTB SharePoint features we can deploy <strong>resx</strong> files to <strong>App_GlobalResources </strong>folder.</p>]]></content:encoded>
    </item>
    <item>
      <title>Dynamically loading dependent jQuery, jQuery Plugins and JavaScript files</title>
      <link>https://docs.microsoft.com/archive/blogs/yojoshi/dynamically-loading-dependent-jquery-jquery-plugins-and-javascript-files</link>
      <pubDate>Mon, 16 Jan 2012 23:32:00 GMT</pubDate>
      <dc:creator><![CDATA[Yogesh Joshi]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/yojoshi/2012/01/16/dynamically-loading-dependent-jquery-jquery-plugins-and-javascript-files/</guid>
      <description><![CDATA[While working with SharePoint 2010, we might have to use jQuery as per the project need.
Loading...]]></description>
      <content:encoded><![CDATA[<p>While working with SharePoint 2010, we might have to use jQuery as per the project need.</p>
<p>Loading jQuery by putting it in a master page/page layouts additional header is one approach. But what if, multiple components are dependent on jQuery and its plugins? Also, they are individually registering their own script blocks?</p>
<p>In this case, we run in to lot of issues like</p>
<ul>
<li>jQuery getting registered multiple times</li>
<li>Plugins are not loading properly</li>
<li>JavaScript errors on page refresh</li>
<li>and many more ...</li>
</ul>
<p>To overcome this issue, we may prefer to use dynamic loading for these files. However, when dynamically loaded there should be some order of registration. Otherwise one may run in to multiple script related issues.</p>
<p>HTML Document supports different types of listeners and one of them is&nbsp;<strong>OnRedyStateChange</strong> function. Following script makes use of this function to ensure that the scripts are loaded in a right sequence one after another.</p>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:AllowPNG/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:TrackMoves/>
  <w:TrackFormatting/>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:DoNotPromoteQF/>
  <w:LidThemeOther>EN-US</w:LidThemeOther>
  <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
  <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:SplitPgBreakAndParaMark/>
   <w:EnableOpenTypeKerning/>
   <w:DontFlipMirrorIndents/>
   <w:OverrideTableStyleHps/>
  </w:Compatibility>
  <m:mathPr>
   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="&#45;-"/>
   <m:smallFrac m:val="off"/>
   <m:dispDef/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>
  </m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267">
  <w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
  <w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 1"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 2"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 3"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 4"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 5"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 6"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 7"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 8"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 9"/>
  <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
  <w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/>
  <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
  <w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
  <w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
  <w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
  <w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/>
  <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
  <w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
  <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
  <w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
  <w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
  <w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
  <w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
  <w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/>
  <w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
  <w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
  <w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/>
  <w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
  <w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
  <w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
  <w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
  <w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
  <w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
  <w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
  <w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
  <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
  <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
 </w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>

<![endif]-->
<table class="MsoNormalTable" style="background: none repeat scroll 0% 0% #f2f2f2; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width: 949.35pt; border: 1pt solid windowtext; padding: 0cm 5.4pt;" valign="top" width="1266">
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">//-----------------------------------------------------------------------</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// &lt;copyright file="jsloader.js" company="Microsoft Corporation"&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// Copyright (c) Microsoft Corporation 2012.</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// All rights reserved.</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// PARTICULAR PURPOSE.</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// &lt;/copyright&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// &lt;author&gt;Yogesh M Joshi&lt;/author&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// &lt;date&gt;05-01-2012&lt;/date&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">// &lt;summary&gt;&lt;/summary&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: darkgreen;">//-----------------------------------------------------------------------</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">function</span><span style="font-size: 9.5pt; font-family: Consolas;"> ShouldLoadjQUery() {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> !window.jQuery;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">}</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">function</span><span style="font-size: 9.5pt; font-family: Consolas;"> ShouldLoadCycle() {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">if</span> (!window.jQuery) {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> <span style="color: blue;">false</span>;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> !window.jQuery.cycle;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">}</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">var</span><span style="font-size: 9.5pt; font-family: Consolas;"> __dynamicJavaScriptsOnLoadCompleteFunctionNames = <span style="color: blue;">new</span> Array();</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">function</span><span style="font-size: 9.5pt; font-family: Consolas;"> __DynamicJavaScriptsOnLoadComplete() {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">for</span> (<span style="color: blue;">var</span> i = 0; i &lt; __dynamicJavaScriptsOnLoadCompleteFunctionNames.length; i++) {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> expr = <span style="color: maroon;">"if(typeof("</span> + __dynamicJavaScriptsOnLoadCompleteFunctionNames[i] + <span style="color: maroon;">")=='function'){"</span> + __dynamicJavaScriptsOnLoadCompleteFunctionNames[i] + <span style="color: maroon;">"();}"</span>;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval(expr);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">}</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">var</span><span style="font-size: 9.5pt; font-family: Consolas;"> __dynamicJavaScriptsConfig = {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; scripts: [{ src: <span style="color: maroon;">'/_layouts/JavaScript/jquery.min.js'</span>, shouldLoad: ShouldLoadjQUery },</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { src: <span style="color: maroon;">'/_layouts/JavaScript/jquery.cycle.min.all.js'</span>, shouldLoad: ShouldLoadCycle}],</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; callback: __DynamicJavaScriptsOnLoadComplete</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">};</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">function</span><span style="font-size: 9.5pt; font-family: Consolas;"> __RegisterDynamicJavaScripts(config, index) {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">if</span> (index == config.scripts.length) {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; config.callback();</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span>;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">if</span> (config.scripts[index].shouldLoad != <span style="color: blue;">null</span> &amp;&amp; config.scripts[index].shouldLoad() == <span style="color: blue;">false</span>) {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;__RegisterDynamicJavaScripts(config, index + 1);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">else</span> {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> headElement = document.getElementsByTagName(<span style="color: maroon;">'head'</span>)[0];</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> script = document.createElement(<span style="color: maroon;">'script'</span>);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; script.type = <span style="color: maroon;">'text/javascript'</span>;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">if</span> (script.addEventListener) {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; script.addEventListener(<span style="color: maroon;">"load"</span>,</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">function</span> () {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __RegisterDynamicJavaScripts(config, index + 1);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, <span style="color: blue;">false</span>);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">else</span> <span style="color: blue;">if</span> (script.readyState) {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; script.onreadystatechange = <span style="color: blue;">function</span> () {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">if</span> (<span style="color: blue;">this</span>.readyState == <span style="color: maroon;">'complete'</span>) __RegisterDynamicJavaScripts(config, index + 1);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; script.src = config.scripts[index].src;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; headElement.appendChild(script);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">}</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">function</span><span style="font-size: 9.5pt; font-family: Consolas;"> __LoadDynamicJavaScripts() {</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp; __RegisterDynamicJavaScripts(__dynamicJavaScriptsConfig, 0);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">}</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">_spBodyOnLoadFunctionNames.push(<span style="color: maroon;">"__LoadDynamicJavaScripts"</span>);</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
</td>
</tr>
</tbody>
</table>
<p></p>
<p><strong>How to Use?</strong></p>
<ul>
<li>Copy above code in one JS file</li>
<li>Add the reference of this file in your HTML document</li>
<li>Deploy required script files like, jQuery or related plugins. You can specify the path inside <span style="font-size: 9.5pt; font-family: Consolas;">__<strong>dynamicJavaScriptsConfig </strong></span>array using <strong>src</strong> attribute</li>
<li>Write <strong>ShouldLoad</strong> function to decide whether to load the given script. Specify this function to <strong>shouldLoad</strong> attribute of given script item</li>
<li>Use <strong><span style="font-size: 9.5pt; font-family: Consolas;">_dynamicJavaScriptsOnLoadCompleteFunctionNames.push()&nbsp;</span></strong>function to register your own functions which should be called after successful loading of all scripts</li>
</ul>
<p></p>
<p>I hope this helps!</p>]]></content:encoded>
    </item>
    <item>
      <title>Automatic Content Tagging for SharePoint 2010 Document Libraries</title>
      <link>https://docs.microsoft.com/archive/blogs/yojoshi/automatic-content-tagging-for-sharepoint-2010-document-libraries</link>
      <pubDate>Fri, 20 May 2011 14:52:14 GMT</pubDate>
      <dc:creator><![CDATA[Yogesh Joshi]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/yojoshi/2011/05/20/automatic-content-tagging-for-sharepoint-2010-document-libraries/</guid>
      <description><![CDATA[SmartTag is a SharePoint 2010 solution which provides feature of automatic identification of terms...]]></description>
      <content:encoded><![CDATA[<p>SmartTag is a SharePoint 2010 solution which provides feature of automatic identification of terms for document tagging.<br />
&nbsp;<br />
Consider a scenario where you have to tag thousands of documents while 
migrating from old or some other system to SharePoint 2010 or, your 
organization people are bored out of tagging documents manually as they 
are not able to find the relevant tags. In some scenarios you also might
 not be able to decide which tag is most suitable for certain document 
till the time, you manually read it. What if you upload the document 
and, the &ldquo;Edit properties&rdquo; form will display most suitable tags for 
document? What if, you don't have to manually tag thousands of documents
 after migration? If you are looking for the solution, SmartTag is the 
best solution for you.<br />
&nbsp;<br />
Following are the features of SmartTag<br />
&nbsp;<br />
    * Bulk document tagging after migration of huge content<br />
    * Auto suggesting tags to users while uploading documents<br />
    * Content analysis by making use of IFilters<br />
    * Finding relevant tags for optimal tagging<br />
    * Configurable number of words to be scanned from documents while identifying tags<br />
    * Configurable relevance parameter for finding best suitable tag for document<br />
    * Works with Office 2010 documents, PDF documents, TIFF images and almost every document type for which IFilter is available<br />
    * Document library event handler displays most suitable tags based on the configured rules while uploading document<br />
    * Configurable rules for individual document libraries and document library managed metadata columns<br />
    * Web interface for easy setup<br />
    * Command line utility provided for bulk tagging<br />
    * &ldquo;Open Source &amp; hence, Free! Free!! Free!!!&rdquo; <br />
&nbsp;<br />
Full project is available for download at <a href="https://smarttag.codeplex.com/">https://smarttag.codeplex.com</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Auto generating Entity classes with xsd.exe for XML Serialization and De-Serialization</title>
      <link>https://docs.microsoft.com/archive/blogs/yojoshi/auto-generating-entity-classes-with-xsd-exe-for-xml-serialization-and-de-serialization</link>
      <pubDate>Sat, 14 May 2011 09:08:00 GMT</pubDate>
      <dc:creator><![CDATA[Yogesh Joshi]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/yojoshi/2011/05/14/auto-generating-entity-classes-with-xsd-exe-for-xml-serialization-and-de-serialization/</guid>
      <description><![CDATA[Introduction
Many time we come across the need of&nbsp;parsing XML document and creating entities....]]></description>
      <content:encoded><![CDATA[<h1>Introduction</h1>
<p>Many time we come across the need of&nbsp;parsing XML document and creating entities. These entities are later passed between multiple methods, stored as configuration or used to perform some manipulation. Hand wrting code for parsing these entities from XML document is tedious. This article presents and easy way to parse XML documents and generating deserializers.</p>
<h2>Hands on!</h2>
<p>Lets create a sample XML document named Students.xml following is the sample content.</p>
<p><code class="html">&lt;xml version="1.0" encoding="utf-8" ?&gt;<br />&lt;Students&gt;<br />&nbsp; &lt;Student&gt;<br />&nbsp;&nbsp;&nbsp; &lt;RollNo&gt;1&lt;/RollNo&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Name&gt;Student 1&lt;/Name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Address&gt;Xyz Street&lt;/Address&gt;<br />&nbsp; &lt;/Student&gt;<br />&nbsp; &lt;Student&gt;<br />&nbsp;&nbsp;&nbsp; &lt;RollNo&gt;2&lt;/RollNo&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Name&gt;Student 2&lt;/Name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Address&gt;Xyz Street&lt;/Address&gt;<br />&nbsp; &lt;/Student&gt;<br />&nbsp; &lt;Student&gt;<br />&nbsp;&nbsp;&nbsp; &lt;RollNo&gt;3&lt;/RollNo&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Name&gt;Student 3&lt;/Name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Address&gt;Xyz Street&lt;/Address&gt;<br />&nbsp; &lt;/Student&gt;<br />&nbsp; &lt;Student&gt;<br />&nbsp;&nbsp;&nbsp; &lt;RollNo&gt;4&lt;/RollNo&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Name&gt;Student 4&lt;/Name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Address&gt;Xyz Street&lt;/Address&gt;<br />&nbsp; &lt;/Student&gt;<br />&nbsp; &lt;Student&gt;<br />&nbsp;&nbsp;&nbsp; &lt;RollNo&gt;5&lt;/RollNo&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Name&gt;Student 5&lt;/Name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Address&gt;Xyz Street&lt;/Address&gt;<br />&nbsp; &lt;/Student&gt;<br />&lt;/Students&gt;</code></p>
<p>Here, as we can see, there&nbsp;is one root node named &lt;Students&gt; and it contains &lt;Student&gt; nodes as children. Now, what if we&nbsp;need to create a list of students in our program and bind it to some grid? We have to write manual parsing code for achieving same. But, you can easily achieve this task using xsd.exe to generate de-serializer and get the student collection. Following are&nbsp;the steps</p>
<ol>
<li>Start Visual Studio and open Student.xml&nbsp;</li>
<li>Click on "XML" -&gt; "Create Schema" on toolbar<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/8688.1.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/8688.1.PNG"><img height="136" width="316" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/8688.1.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/8688.1.PNG" border="0" /></a><br /><br /></li>
<li>&nbsp;It will generate XML Schema. Following is the sample schema generated for Students.xml file<br /><br /><code class="html">&lt;?xml version="1.0" encoding="utf-8"?&gt;<br />&lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="https://www.w3.org/2001/XMLSchema"&gt;<br />&nbsp; &lt;xs:element name="Students"&gt;<br />&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element maxOccurs="unbounded" name="Student"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name="RollNo" type="xs:unsignedByte" /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name="Name" type="xs:string" /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name="Address" type="xs:string" /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:element&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;<br />&nbsp; &lt;/xs:element&gt;<br />&lt;/xs:schema&gt;<br /><br /></code></li>
<li>Here we can observe the datatypes are automatically set as per the data available in Student.xml As per your need you can edit the schema and set the appropriate data types.</li>
<li>Save the Students.xml and Students.xsd files inside some folder say "C:\Sample\XML"</li>
<li>Now, we have to start "Visual Studio Command Prompt"</li>
<li>On VS Command Prompt, cd to "C:\Sample\XML" directory and type "xsd Students.xsd /c"<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/1884.2.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/1884.2.PNG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/1884.2.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/1884.2.PNG" border="0" /></a></li>
<li>This will generate "Students.cs" file that we can use&nbsp;to de-serialize Student.xml file</li>
<li>Now create a "Console Application" named "XmlDeSerializer" we will use this to test the de-serialization</li>
<li>Add "Students.cs" file that we have created using xsd.exe file<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/3823.4.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/3823.4.PNG"><img height="180" width="286" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/3823.4.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/3823.4.PNG" border="0" /></a></li>
<li>Copy and paste following code in Program.cs file and run the program.<br class="scroll" />
<pre>using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Text;<br />using System.Xml;<br />using System.IO;<br />using System.Xml.Serialization;<br /><br />namespace XmlDeSerializer<br />{<br />&nbsp;&nbsp;&nbsp; class Program<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string[] args)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (FileStream xmlStream = new FileStream("C:\\Sample\\XML\\Students.xml", FileMode.Open))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (XmlReader xmlReader = XmlReader.Create(xmlStream))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlSerializer serializer = new XmlSerializer(typeof(Students));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Students deserializedStudents = serializer.Deserialize(xmlReader) as Students;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (var student in deserializedStudents.Student)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("Roll No : {0}", student.RollNo);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("Name : {0}", student.Name);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("Address : {0}", student.Address);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }<br />}<br /><br /></pre>
</li>
<li>
<p>You will see following output</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/2451.3.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/2451.3.PNG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/2451.3.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-38-74/2451.3.PNG" border="0" /></a></p>
</li>
</ol>
<p>In this way we have successfully de-serialized Students.xml file and created entities. You&nbsp;May also serialize existing entites back in the xml format, we can use "Serialize" method of XmlSerializer.</p>
<p>I Hope this helps.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;">﻿</div>]]></content:encoded>
    </item>
    <item>
      <title>PowerShell Script for approving and publishing content on SharePoint publishing site</title>
      <link>https://docs.microsoft.com/archive/blogs/yojoshi/powershell-script-for-approving-and-publishing-content-on-sharepoint-publishing-site</link>
      <pubDate>Mon, 12 Jul 2010 15:52:00 GMT</pubDate>
      <dc:creator><![CDATA[Yogesh Joshi]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/yojoshi/2010/07/12/powershell-script-for-approving-and-publishing-content-on-sharepoint-publishing-site/</guid>
      <description><![CDATA[Hello All,
While working on SharePoint publishing portals, many times we require the automated...]]></description>
      <content:encoded><![CDATA[<p>Hello All,</p>
<p>While working on SharePoint publishing portals, many times we require the automated publishing of contents. I am learning the "Poweshell". I thought of writing script that is having good options to choose from and, will automate the publishing of content over SharePoint sites. Following is the script that I have written. I hope it will help many people.</p>
<p><b>Features</b></p>
<ul>
<li>Non Recursive/Recursive for all root level webs and sub webs&nbsp;</li>
<li>Can Publish files with specific extension</li>
<li>Can Publish folders</li>
<li>Can Publish files from a specific sub web</li>
</ul>
<p><b>this project is available on <a href="https://publishspcontent.codeplex.com/">https://publishspcontent.codeplex.com/</a></b></p>]]></content:encoded>
    </item>
    <item>
      <title>Using jQuery with SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/yojoshi/using-jquery-with-sharepoint-2010</link>
      <pubDate>Thu, 17 Jun 2010 07:03:00 GMT</pubDate>
      <dc:creator><![CDATA[Yogesh Joshi]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/yojoshi/2010/06/17/using-jquery-with-sharepoint-2010/</guid>
      <description><![CDATA[People can make use of jQuery for SharePoint 2010 customization. This article is targeted to...]]></description>
      <content:encoded><![CDATA[<p><span style="font-weight: normal;"><span style="font-size: medium;">People can make use of jQuery for SharePoint 2010 customization. This article is targeted to developers having intermediate knowledge on SharePoint 2010 and are beginners on jQuery. It contains information related to integrating jQuery with SharePoint 2010.&nbsp;</span></span><span style="font-size: medium;">With the launch of Visual Studio 2010, we are getting out of the box jQuery support. Visual studio 2010 includes intellisense for jQuery 1.4. Great for editing!</span></p>
<h1><span style="font-size: medium;"><span style="font-size: x-large;">How To?</span></span></h1>
<p><span style="font-size: medium;">Follow these simple steps to integrate jQuery with your SharePoint Site.</span></p>
<ul>
<li><span style="font-size: medium;">Create a Blank Site ( I Prefered it. You can use any template you want)</span></li>
</ul>
<p><span style="font-size: small; "><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/3223.1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-74/3223.1.png" border="0" /></span></p>
<ul>
</ul>
<ul>
<li><span style="font-size: medium;">Download jQuery from&nbsp;</span><span style="font-size: medium;"><a href="https://docs.jquery.com/Downloading_jQuery">https://docs.jquery.com/Downloading_jQuery</a></span></li>
<li><span style="font-size: medium;">Create folder of your choice inside ".&lt;SharePoint Installation Path&gt; \14\TEMPLATE\LAYOUTS" &nbsp;say "CustomJScripts". Its not mandatory you may not choose to create it.</span></li>
<li><span style="font-size: medium;">Copy the jQuery script inside the folder we have recently created.</span></li>
</ul>
<p>&nbsp;&nbsp; &nbsp;&nbsp;<img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/0871.2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-74/0871.2.png" border="0" /></p>
<ul>
<li><span style="font-size: medium;"></span><span style="font-size: medium;">Launch SharePoint designer and Open Sites main master page. By default SharePoint 2010 uses v4.master as sites default and custom master page.</span></li>
<li><span style="font-size: medium;">Right click on it and select "Edit in advanced mode"</span></li>
</ul>
<p><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/5040.3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-74/5040.3.png" border="0" /><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/2816.4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-74/2816.4.png" border="0" /></p>
<ul>
<li><span style="font-size: medium;"></span><span style="font-size: small;"><span style="font-size: medium;">Add </span><strong><span style="font-size: medium;">"ScriptLink"</span></strong><span style="font-size: medium;"> tag as shown below. </span><span style="color: #ff0000;"><span style="font-size: medium;">"Do not put OnDemand="True"</span></span><span style="font-size: medium;"> Tag. Otherwise jQuery will not be loaded by default.</span></span></li>
</ul>
<p><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/6685.5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-74/6685.5.png" border="0" /></p>
<ul>
<li><span style="font-size: medium;">Save the master page.</span></li>
<li><span style="font-size: medium;">Check in an publish the master page. You will need to approve the page version also.</span></li>
<li><span style="font-size: medium;">Thats it. Now, you need to verify &nbsp;jQuery is getting loaded when you are accessing your site.</span></li>
<li><span style="font-size: medium;">Open internet explorer and browse your site.</span></li>
<li><span style="font-size: medium;">Press F12 to bring up "Developer Tools" (You need to have IE8 for this functionality)</span></li>
<li><span style="font-size: medium;">Goto "Script" Tab and verify jQuery is getting loaded.</span></li>
</ul>
<p><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/7801.6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-74/7801.6.png" border="0" /></p>
<ul>
<li><span style="font-size: medium;">To Perform a quick sanity test, go to script tab, in right side console window write something like,&nbsp;$("#MSO_ContentTable").css("background-color","cyan"); and press "Run Script"</span></li>
<li><span style="font-size: medium;">Verify the page background is changed to color "Cyan".</span></li>
</ul>
<p><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/38/74/8765.7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-74/8765.7.png" border="0" /></p>
<ul>
<li><span style="font-size: medium;">Thats it! Now you can start using jQuery for client side scripting.</span></li>
</ul>
<p><span style="font-size: medium;">For adding your own custom scripts you can follow same steps i.e. adding script tag as described. Happy scripting :)</span></p>]]></content:encoded>
    </item>
  </channel>
</rss>