<?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>Navish Rampal</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/findnavish/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/findnavish/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:21:32 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>To Create Search Service Application Using Existing Search Administration Database</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/to-create-search-service-application-using-existing-search-administration-database</link>
      <pubDate>Thu, 21 Sep 2017 21:02:59 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/?p=195</guid>
      <description><![CDATA[$saAppPoolName = "Search App Pool"

# Search Specifics, we are single server...]]></description>
      <content:encoded><![CDATA[$saAppPoolName = "Search App Pool"

# Search Specifics, we are single server farm
$searchServerName = (Get-ChildItem env:computername).value
$serviceAppName = "Search Service Application"
$searchDBName = "MSDEV01_SearchAdmin"
# Grab the Appplication Pool for Service Application Endpoint
$saAppPool = Get-SPServiceApplicationPool $saAppPoolName

# Start Search Service Instances
Write-Host "Starting Search Service Instances..."
Start-SPEnterpriseSearchServiceInstance $searchServerName
Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $searchServerName

# Create the Search Service Application and Proxy
Write-Host "Creating Search Service Application and Proxy..."
$searchInstance = Get-SPEnterpriseSearchServiceInstance -local
$searchServiceApp = Restore-SPEnterpriseSearchServiceApplication -Name $serviceAppName -ApplicationPool $saAppPoolName -AdminSearchServiceInstance $searchInstance -DatabaseName $searchDBName

#$searchServiceApp = New-SPEnterpriseSearchServiceApplication -Name $serviceAppName -ApplicationPool $saAppPoolName -DatabaseName $searchDBName
$searchProxy = New-SPEnterpriseSearchServiceApplicationProxy -Name "$serviceAppName Proxy" -SearchApplication $searchServiceApp

# Clone the default Topology (which is empty) and create a new one and then activate it
Write-Host "Configuring Search Component Topology..."
$clone = $searchServiceApp.ActiveTopology.Clone()
$searchServiceInstance = Get-SPEnterpriseSearchServiceInstance
New-SPEnterpriseSearchAdminComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchContentProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchAnalyticsProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchCrawlComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchIndexComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchQueryProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
$clone.Activate()]]></content:encoded>
    </item>
    <item>
      <title>Azure media player streaming not working on Windows Server</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/azure-media-player-streaming-not-working-on-windows-server</link>
      <pubDate>Thu, 25 Feb 2016 08:39:00 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2016/02/25/azure-media-player-streaming-not-working-on-windows-server/</guid>
      <description><![CDATA[Recently i came across a problem where while running azure media player in I.E 11 and on windows...]]></description>
      <content:encoded><![CDATA[<p>Recently i came across a problem where while running azure media player in I.E 11 and on windows server, the video streams for 5 seconds and then stops streaming.&nbsp;</p>
<p>&nbsp;</p>
<p>Solution for this problem is :</p>
<p>in the Run window type "Services.msc" &nbsp;and start "Windows Audio" service. &nbsp;This will resolve the streaming issue.&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2013 App – Accessing SharePoint List</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/sharepoint-2013-app-accessing-sharepoint-list</link>
      <pubDate>Tue, 26 Mar 2013 03:15:08 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2013/03/26/sharepoint-2013-app-accessing-sharepoint-list/</guid>
      <description><![CDATA[If you have created a list inside your SharePoint 2013 App project. Right now there is no direct...]]></description>
      <content:encoded><![CDATA[<p>If you have created a <strong>list inside your SharePoint 2013 App</strong> project. Right now there is no direct navigation to the list. Only option available is to navigate directly through url of the list. ie.&#160; <a href="https://Site Url/App Name/Lists/List Name">https://Site Url/App Name/Lists/List Name</a></p>  <p>&#160;</p>  <p>Other way to give user access to your list for CRUD operation is by adding XSLT List View Web Part to your page.</p>  <p>&#160;</p>  <p>In the Defaut.aspx of you App add the below code inside ContentPlaceHolderID=&quot;PlaceHolderMain&quot;. </p>  <p>&#160;</p>  <div id="codeSnippetWrapper">   <div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);">     <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">&lt;WebPartPages:WebPartZone runat=<span style="color: rgb(0, 96, 128);">&quot;server&quot;</span> FrameType=<span style="color: rgb(0, 96, 128);">&quot;TitleBarOnly&quot;</span> ID=<span style="color: rgb(0, 96, 128);">&quot;dictionaryWebPartZone&quot;</span>&gt;</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);">        &lt;WebPartPages:XsltListViewWebPart ID=<span style="color: rgb(0, 96, 128);">&quot;companyListView&quot;</span></pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">            runat=<span style="color: rgb(0, 96, 128);">&quot;server&quot;</span> ListUrl=<span style="color: rgb(0, 96, 128);">&quot;Lists/AHI-AcronymsStore&quot;</span> </pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);">            NoDefaultStyle=<span style="color: rgb(0, 96, 128);">&quot;TRUE&quot;</span> Title=<span style="color: rgb(0, 96, 128);">&quot;Company Dictionary&quot;</span></pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">            Default=<span style="color: rgb(0, 96, 128);">&quot;False&quot;</span>  PageSize=<span style="color: rgb(0, 96, 128);">&quot;30&quot;</span></pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);">            ViewContentTypeId=<span style="color: rgb(0, 96, 128);">&quot;0x&quot;</span>&gt;</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">        &lt;/WebPartPages:XsltListViewWebPart&gt;</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);">    &lt;/WebPartPages:WebPartZone&gt;</pre>
<!--CRLF--></div>
</div>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2013 Customizing Suite Bar</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/sharepoint-2013-customizing-suite-bar</link>
      <pubDate>Thu, 07 Feb 2013 02:43:59 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2013/02/07/sharepoint-2013-customizing-suite-bar/</guid>
      <description><![CDATA[&#160;  Before we start customizing the top bar lets get familiar with controls.  &#160;  The top...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>Before we start customizing the top bar lets get familiar with controls.</p>  <p>&#160;</p>  <p><strong>The top bar shows</strong>:</p>  <p>1. The Branding Title or Logo&#160; </p>  <p>2. Suite Bar with Links i.e Newsfeed, SkyDrive, Site</p>  <p>3. Welcome Control</p>  <p><strong>Suite bar is designed as an out-of-the-box delegate control</strong>.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/6646.Bar_67C65843.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/6646.Bar_5F00_67C65843.png"><img title="Bar" style="display: inline;" border="0" alt="Bar" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/8877.Bar_thumb_7454055F.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/8877.Bar_5F00_thumb_5F00_7454055F.png" width="856" height="106" /></a></p>  <p>&#160;</p>  <p>Now I will explain adding my own link called Search to the Suite Bar. </p>  <p> 1. Create a new SharePoint 2013 empty project named ProjectSuteBarCustomisation. Provide the site url.</p>  <p>2. Add reference to Microsoft.SharePoint.Portal dll </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/7418.image_083C7B65.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/7418.image_5F00_083C7B65.png"><img title="Microsoft.SharePoint.Portal DLL" style="display: inline;" border="0" alt="Microsoft.SharePoint.Portal DLL" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/2625.image_thumb_66DCD5C8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/2625.image_5F00_thumb_5F00_66DCD5C8.png" width="244" height="212" /></a> </p>  <p>&#160;</p>  <p>3. Add Feature with scope Farm </p>  <p>4. Add User Control named CustomSuiteBarLinks.ascx. </p>  <p>In the code behind add reference&#160; to Microsoft.SharePoint.Portal.WebControls dll. </p>  <p>Change the partial class to inherit from MySuiteLinksUserControl instead of UserControl.</p>  <p>Add the below code in the cs file which override the Render method to add the custom link.</p>  <pre class="csharpcode"><span class="kwrd">public</span> <span class="kwrd">partial</span> <span class="kwrd">class</span> CustomSuiteBarLinks : MySuiteLinksUserControl
    {
        <span class="kwrd">readonly</span> <span class="kwrd">string</span> linkText = <span class="str">&quot;Search&quot;</span>;
        <span class="kwrd">readonly</span> <span class="kwrd">string</span> linkNavigation = <span class="str">&quot;https://bing.com&quot;</span>;
        <span class="kwrd">readonly</span> <span class="kwrd">string</span> linkId = <span class="str">&quot;lnkSearchLink&quot;</span>;

        <span class="kwrd">protected</span> <span class="kwrd">void</span> Page_Load(<span class="kwrd">object</span> sender, EventArgs e)
        {
        }

        <span class="kwrd">protected</span> <span class="kwrd">override</span> <span class="kwrd">void</span> Render(HtmlTextWriter writer)
        {
            writer.RenderBeginTag(HtmlTextWriterTag.Style);
            writer.Write(<span class="str">&quot;.ms-core-suiteLinkList {display: inline-block;}&quot;</span>);
            writer.RenderEndTag();
            writer.AddAttribute(HtmlTextWriterAttribute.Class, <span class="str">&quot;ms-core-suiteLinkList&quot;</span>);
            writer.RenderBeginTag(HtmlTextWriterTag.Ul);
            RenderSuiteLink(writer, linkNavigation, linkText, linkId, <span class="kwrd">false</span>);
            writer.RenderEndTag();
            <span class="kwrd">base</span>.Render(writer);
        }
    }    </pre>


<p>&#160;</p>

<p>5. Add an Empty Element File and name it CustomSuiteLinkDelegate</p>

<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/1157.image_15AF1ADA.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/1157.image_5F00_15AF1ADA.png"><img title="image" style="display: inline;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/5355.image_thumb_6E089EAF.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/5355.image_5F00_thumb_5F00_6E089EAF.png" width="244" height="176" /></a> </p>

<p>&#160;</p>

<p>6. Add the below code to the CustomSuiteLinkDelegate xml file</p>

<pre class="csharpcode">&lt;?xml version=<span class="str">&quot;1.0&quot;</span> encoding=<span class="str">&quot;utf-8&quot;</span>?&gt;
&lt;Elements xmlns=<span class="str">&quot;https://schemas.microsoft.com/sharepoint/&quot;</span>&gt;
  &lt;Control Id=<span class="str">&quot;CustomSuiteLinkDelegate&quot;</span>
  Sequence=<span class="str">&quot;90&quot;</span>  ControlSrc=<span class="str">&quot;~/_ControlTemplates/15/ProjectSuteBarCustomisation/CustomSuiteBarLinks.ascx&quot;</span> /&gt;
&lt;/Elements&gt;</pre>

<pre class="csharpcode">&#160;</pre>

<pre class="csharpcode">7. Deploy the solution.</pre>
]]></content:encoded>
    </item>
    <item>
      <title>Processing Xml Data in SQL Server</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/processing-xml-data-in-sql-server</link>
      <pubDate>Mon, 16 Jul 2012 04:28:00 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2012/07/16/processing-xml-data-in-sql-server/</guid>
      <description><![CDATA[Processing Xml Data in SQL Server. 

The below code demonstrates the use of xml data as input...]]></description>
      <content:encoded><![CDATA[<ol>
<li><strong>Processing Xml Data in SQL Server. </strong></li>
</ol>
<p>The below code demonstrates the use of xml data as input and converting xml data into temporary table.</p>
<div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: 'Courier New', courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: #f4f4f4;">
<div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: #0000ff;">Declare</span> @xmlData xml = <span style="color: #006080;">'&lt;Root&gt;&lt;ParentElement GuidanceKitId="4ffbfee7-0878-4c67-9003-89e0b29b4684" LocaleId="920"&gt;&lt;/ParentElement&gt;&lt;ParentElement GuidanceKitId="d65ddd7d-cb99-e111-96e5-00155d16e526" LocaleId="123"&gt;&lt;/ParentElement&gt;&lt;/Root&gt;'</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span style="color: #0000ff;">DECLARE</span> @handle <span style="color: #0000ff;">INT</span>;</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">&nbsp;</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span style="color: #0000ff;">EXEC</span> sp_xml_preparedocument @handle <span style="color: #0000ff;">OUTPUT</span>, @xmlData;</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">        <span style="color: #0000ff;">SELECT</span> </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">                <span style="color: #0000ff;">cast</span>(GuidanceKitId <span style="color: #0000ff;">as</span> uniqueidentifier) GuidanceKitId,                                                 </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">                <span style="color: #0000ff;">cast</span>(LocaleId <span style="color: #0000ff;">as</span> <span style="color: #0000ff;">int</span>) LocaleId,</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">                5 GuidanceKitRowId <span style="color: #008000;">-- Constant Column</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">        <span style="color: #0000ff;">INTO</span> #TmpTable</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">        <span style="color: #0000ff;">FROM</span> </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">        <span style="color: #0000ff;">OPENXML</span> (    @handle    ,<span style="color: #006080;">'/Root/ParentElement'</span>    ,1    )</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">        <span style="color: #0000ff;">WITH</span> </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">        (</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">                GuidanceKitId uniqueidentifier,                </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">                LocaleId <span style="color: #0000ff;">int</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">        )R</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;">&nbsp;</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">&nbsp;</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: #0000ff;">select</span> * <span style="color: #0000ff;">from</span> #TmpTable</pre>
<!--CRLF--></div>
</div>
<p>&nbsp;</p>
<p>Result:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/7245.image_039FB752.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/7245.image_5F00_039FB752.png"><img style="display: inline; background-image: none;" title="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/1488.image_thumb_6D699BFF.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/1488.image_5F00_thumb_5F00_6D699BFF.png" alt="image" width="578" height="95" border="0" />&nbsp;</a></p>]]></content:encoded>
    </item>
    <item>
      <title>JavaScript Basics</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/javascript-basics</link>
      <pubDate>Wed, 11 Jul 2012 23:07:39 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2012/07/11/javascript-basics/</guid>
      <description><![CDATA[&#160;     Getting Id of the Checkbox in JavaScript    The below code snippet demonstrates toggling...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <ol>   <li><strong>Getting Id of the Checkbox in JavaScript </strong></li> </ol>  <p>The below code snippet demonstrates toggling : On selecting one checkbox the other checkbox if selected gets unselected and vice-versa. </p>  <div style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 102.14%; height: 262px; text-align: left; line-height: 12pt; overflow: auto; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);" id="codeSnippetWrapper">   <div style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);" id="codeSnippet">     <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum1">   1:</span> &lt;script type=<span style="color: rgb(0, 96, 128);">&quot;text/javascript&quot;</span> language=javascript&gt;</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum2">   2:</span>&#160; </pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum3">   3:</span>     function fn() {</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum4">   4:</span>        <font style="background-color: rgb(255, 255, 0);"> var checkbox = document.getElementById(<span style="color: rgb(0, 96, 128);">'&lt;%= cbx1.ClientID %&gt;'</span>);</font></pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum5">   5:</span>         <span style="color: rgb(0, 0, 255);">if</span> (checkbox != <span style="color: rgb(0, 0, 255);">null</span> &amp;&amp; checkbox.<span style="color: rgb(0, 0, 255);">checked</span> == <span style="color: rgb(0, 0, 255);">true</span>) {</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum6">   6:</span>             var checkbox2 = document.getElementById(<span style="color: rgb(0, 96, 128);">'&lt;%= cbx2.ClientID %&gt;'</span>);</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum7">   7:</span>             <span style="color: rgb(0, 0, 255);">if</span> (checkbox2 != <span style="color: rgb(0, 0, 255);">null</span> &amp;&amp; checkbox.<span style="color: rgb(0, 0, 255);">checked</span> == <span style="color: rgb(0, 0, 255);">true</span>) {</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum8">   8:</span>                 checkbox2.<span style="color: rgb(0, 0, 255);">checked</span> = <span style="color: rgb(0, 0, 255);">false</span>;</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum9">   9:</span>             }</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum10">  10:</span>         }</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum11">  11:</span>     }</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum12">  12:</span>&#160; </pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum13">  13:</span>     function fn2() {</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum14">  14:</span>         var checkbox = document.getElementById(<span style="color: rgb(0, 96, 128);">'&lt;%= cbx2.ClientID %&gt;'</span>);</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum15">  15:</span>         <span style="color: rgb(0, 0, 255);">if</span> (checkbox != <span style="color: rgb(0, 0, 255);">null</span> &amp;&amp; checkbox.<span style="color: rgb(0, 0, 255);">checked</span> == <span style="color: rgb(0, 0, 255);">true</span>) {</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum16">  16:</span>             var checkbox2 = document.getElementById(<span style="color: rgb(0, 96, 128);">'&lt;%= cbx1.ClientID %&gt;'</span>);</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum17">  17:</span>             <span style="color: rgb(0, 0, 255);">if</span> (checkbox2 != <span style="color: rgb(0, 0, 255);">null</span> &amp;&amp; checkbox.<span style="color: rgb(0, 0, 255);">checked</span> == <span style="color: rgb(0, 0, 255);">true</span>) {</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum18">  18:</span>                 checkbox2.<span style="color: rgb(0, 0, 255);">checked</span> = <span style="color: rgb(0, 0, 255);">false</span>;</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum19">  19:</span>             }</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum20">  20:</span>         }</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum21">  21:</span>     }</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum22">  22:</span>&#160; </pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum23">  23:</span> &lt;/script&gt;</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum24">  24:</span>&#160; </pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span style="color: rgb(96, 96, 96);" id="lnum25">  25:</span> &lt;asp:CheckBox ID=<span style="color: rgb(0, 96, 128);">&quot;cbx1&quot;</span> onclick=<span style="color: rgb(0, 96, 128);">&quot;fn()&quot;</span> runat=<span style="color: rgb(0, 96, 128);">&quot;server&quot;</span> /&gt;</pre>
<!--CRLF-->

    <pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: &quot;Courier New&quot;, courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"><span style="color: rgb(96, 96, 96);" id="lnum26">  26:</span> &lt;asp:CheckBox ID=<span style="color: rgb(0, 96, 128);">&quot;cbx2&quot;</span> onclick=<span style="color: rgb(0, 96, 128);">&quot;fn2()&quot;</span> runat=<span style="color: rgb(0, 96, 128);">&quot;server&quot;</span> /&gt;</pre>
<!--CRLF--></div>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Enabling Win 7 Desktop Experience on Windows Server 2008</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/enabling-win-7-desktop-experience-on-windows-server-2008</link>
      <pubDate>Thu, 31 May 2012 11:34:13 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2012/05/31/enabling-win-7-desktop-experience-on-windows-server-2008/</guid>
      <description><![CDATA[&#160;  The below steps explain enabling Win 7 look and feel on Windows Server 2008.  &#160;  Step...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>The below steps explain enabling Win 7 look and feel on Windows Server 2008.</p>  <p>&#160;</p>  <p><strong>Step 1</strong>:</p>  <p>Go to&#160; Start Button –&gt; Right click on Computer –&gt; Click on Properties –&gt; Click on Advanced System Settings on right side.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/3426.image_66126857.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/3426.image_5F00_66126857.png"><img style="display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/8712.image_thumb_5C69FA21.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/8712.image_5F00_thumb_5F00_5C69FA21.png" width="595" height="210" /></a></p>  <p>&#160;</p>  <p>&#160;</p>  <p>System Properties window will open. On Advanced Tab click on Settings button for Performance category. </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/5504.image_472BCEAC.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/5504.image_5F00_472BCEAC.png"><img style="display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/8228.image_thumb_36D056F3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/8228.image_5F00_thumb_5F00_36D056F3.png" width="393" height="260" /></a></p>  <p>&#160;</p>  <p>Select the radio button for the Option “Adjust for best appearance” and click Ok.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/7635.image_21FE5E73.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/7635.image_5F00_21FE5E73.png"><img style="display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/3463.image_thumb_11A2E6BA.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/3463.image_5F00_thumb_5F00_11A2E6BA.png" width="272" height="174" /></a></p>  <p>&#160;</p>  <hr />  <p><strong>Step 2</strong>:</p>  <p>Go to Server Manager –&gt; Select Feature –&gt; Click on Add Features</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/3463.image_35E7CB3C.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/3463.image_5F00_35E7CB3C.png"><img style="display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/5516.image_thumb_453B2D4B.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/5516.image_5F00_thumb_5F00_453B2D4B.png" width="603" height="226" /></a></p>  <p>&#160;</p>  <p>&#160;</p>  <p>Enable the Desktop Experience Option by Selecting the check box. After selecting click next and then the install button.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/7178.image_7D2CFB61.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/7178.image_5F00_7D2CFB61.png"><img style="display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/6683.image_thumb_5E930AB8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/6683.image_5F00_thumb_5F00_5E930AB8.png" width="609" height="246" /></a></p>  <p>&#160;</p>  <hr />  <p><strong>Step 3</strong>:</p>  <p>Open the run window and type Services.msc. This opens the services window. Navigate to Themes service. Double click on it. Set the Start Type Option to Automatic and Start the Service.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/3465.image_2939D286.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/3465.image_5F00_2939D286.png"><img style="display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/2705.image_thumb_549DF380.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/2705.image_5F00_thumb_5F00_549DF380.png" width="615" height="195" /></a></p>  <p>&#160;</p>  <hr />  <p><strong>Step 4</strong>:</p>  <p>You are ready to use Windows 7 Themes. Right Click on Desktop and click Personalize.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/6507.image_5C65E622.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/6507.image_5F00_5C65E622.png"><img style="margin: 0px; display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/0576.image_thumb_33E7040E.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/0576.image_5F00_thumb_5F00_33E7040E.png" width="209" height="244" /></a></p>  <p>&#160;</p>  <p>Select Aero Themes. More themes can be downloaded from <a href="https://windows.microsoft.com/en-us/windows/downloads/personalize/themes">https://windows.microsoft.com/en-us/windows/downloads/personalize/themes</a>.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/0654.image_387D0EC8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/0654.image_5F00_387D0EC8.png"><img style="display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/2235.image_thumb_2D9007B3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/2235.image_5F00_thumb_5F00_2D9007B3.png" width="604" height="254" /></a></p>    <hr />  <div style="margin: 0px; padding: 0px; float: none; display: inline;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2ecc6a71-c78c-49d4-9377-d378d342083b" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="https://del.icio.us/popular/Destop+Experience" rel="tag">Destop Experience</a></div>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint Site Provisioning with SharePoint Object Model</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/sharepoint-site-provisioning-with-sharepoint-object-model</link>
      <pubDate>Wed, 16 May 2012 08:58:00 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2012/05/16/sharepoint-site-provisioning-with-sharepoint-object-model/</guid>
      <description><![CDATA[&#160;  The below code can be re-used as is for creating any number of Site Collections and Sub...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>The below code can be re-used as is for creating any number of Site Collections and Sub sites.</p>  <p>The code is provided for two of the scenarios:</p>  <p>Case 1: Creating Site Collection and Sub Sites Inside It</p>  <p>Case 2: Adding Sub Site to already existing Site Collection/Sub Site</p>  <p>&#160;</p>  <p>Step 1: Microsoft.SharePoint DLL should be added in the References Folder</p>  <p>&#160;</p>  <p>&#160;</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/3175.image_6D706C97.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/3175.image_5F00_6D706C97.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/metablogapi/2273.image_thumb_04BB7109.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85-metablogapi/2273.image_5F00_thumb_5F00_04BB7109.png" width="244" height="174" /></a></p>  <p>&#160;</p>  <p>Step 2:</p>  <p>Add the reference of below Classes:</p>  <p>using Microsoft.SharePoint;    <br />using Microsoft.SharePoint.Administration;</p>  <p>&#160;</p>  <p>Step 3:</p>  <p>Case 1: <span style="background-color: #f3a447">Code to Create Site Collection and Sub Sites inside it</span>.</p>  <p>Any number of Site Collection and Sub sites can be created on putting the below code in a loop.</p>  <p>The below sample code will create one site collection and one sub site inside it.</p>  <p>&#160;</p>  <pre class="scroll"><code class="csharp">try <br /> { <br /> <br /> SPSecurity.RunWithElevatedPrivileges( <br /> delegate <br /> { <br /> // Provide the Web Application URL under which all site collection and sub sites needs to be provisioned <br /> string webApplicationUrl = &quot;https://hpsweb:3030/&quot;; <br /> <br /> /* --------------------------------------------------------------------------------------- */ <br /> // For Creating HR Site Collection <br /> <br /> string relativeUrl = &quot;/sites/hr&quot;; <br /> string siteTitle = &quot;HR Site&quot;; <br /> string siteDescription = &quot;WElcome to HR Site Collection&quot;; <br /> uint languageCode = 1033; // 1033 is the code for english <br /> string siteTemplate = &quot;BLANKINTERNET#0&quot;; <br /> string primaryAdmin = @&quot;Hpsintegration\Administrator&quot;; // Domain followed by Network Id/Alias <br /> string secondaryAdmin = @&quot;Hpsintegration\Administrator2&quot;; //Domain followed by Network Id/Alias. If Secondary Admin is not required then assign Null <br /> <br /> /* --------------------------------------------------------------------------------------- */ <br /> <br /> <br /> SPWebApplication objWebApplication = SPWebApplication.Lookup(new Uri(webApplicationUrl)); <br /> <br /> using (SPSite mySiteCollection = objWebApplication.Sites.Add(relativeUrl, siteTitle, siteDescription, languageCode, siteTemplate, primaryAdmin, string.Empty, string.Empty, secondaryAdmin, string.Empty, string.Empty)) <br /> { <br /> /* --------------------------------------------------------------------------------------- */ <br /> // For Creating Benifits Sub Site inside HR Site Collection <br /> <br /> string subSiteTitle = &quot;Benifits&quot;; <br /> string subSiteDescription = &quot;Employee Benifits&quot;; <br /> string subSiteRelativeUrl = &quot;/sites/hr/benifits&quot;; // Benifits Sub Site will get added to the HR site collection <br /> <br /> /* --------------------------------------------------------------------------------------- */ <br /> <br /> using (SPWeb web = mySiteCollection.AllWebs.Add(subSiteRelativeUrl, subSiteTitle, subSiteDescription, languageCode, siteTemplate, false, false)) ; <br /> <br /> } <br /> }); <br /> } <br /> catch (Exception ex) <br /> { <br /> }</code></pre>

<p>&#160;</p>

<p>&#160;</p>

<p>Step 3:</p>

<p>Case 2: <span style="background-color: #f3a447">Code to Create a Site inside a Site Collection </span></p>

<p>Any number of Sub sites can be added by putting the below code in a loop.</p>

<p>The below sample code will create one sub site inside a site collection. Pre requisite: Site Collection should exist under which sub site needs to be added.</p>

<pre class="scroll"><code class="csharp"> try <br /> { <br /> <br /> SPSecurity.RunWithElevatedPrivileges( <br /> delegate <br /> { <br /> string webApplicationUrl = &quot;https://hpsweb:3030/&quot;; // Web Application URL <br /> string parentSiteUrl = &quot;/sites/hr&quot;; // URL under which to create sub site <br /> <br /> string requestSiteUrl = &quot;/sites/hr/compensation&quot;; // New sub site to add <br /> string siteTitle = &quot;Compensation&quot;; <br /> string siteDescription = &quot;Compensation Details&quot;; <br /> uint languageCode = 1033; // 1033 is the code for english <br /> string siteTemplate = &quot;BLANKINTERNET#0&quot;; <br /> <br /> parentSiteUrl = parentSiteUrl.TrimStart('/'); <br /> string requestUrl = String.Concat(webApplicationUrl, parentSiteUrl); <br /> <br /> using (SPSite objSiteCollection = new SPSite(requestUrl)) <br /> { <br /> using (SPWeb web = objSiteCollection.AllWebs.Add(requestSiteUrl, siteTitle, siteDescription, languageCode, siteTemplate, false, false)); <br /> } <br /> }); <br /> } <br /> catch <br /> { <br /> throw; <br /> }</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Information Rights Management (IRM): There was a problem when trying to find the enterprise Rights Management Services (RMS) server</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/information-rights-management-irm-there-was-a-problem-when-trying-to-find-the-enterprise-rights-management-services-rms-server</link>
      <pubDate>Tue, 07 Feb 2012 06:31:00 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2012/02/07/information-rights-management-irm-there-was-a-problem-when-trying-to-find-the-enterprise-rights-management-services-rms-server/</guid>
      <description><![CDATA[&nbsp;
We had a data migration project where we had to migrate the&nbsp;data from Documentum to...]]></description>
      <content:encoded><![CDATA[<div>&nbsp;</div>
<div>We had a data migration project where we had to migrate the&nbsp;data from Documentum to SharePoint. During content uploading (documents) to the Document Library&nbsp;an error used to get logged in ULS logs&nbsp;with&nbsp; the below details:</div>
<div>"<strong>Information Rights Management (IRM): There was a problem when trying to find the enterprise Rights Management Services (RMS) server. There was no enterprise server registered. Additional Data&nbsp; Service Type: 1 Error value: 0x509fd0</strong>"</div>
<div>&nbsp;</div>
<div>On analysis I found that whenever we try to upload a document which is rights-protected&nbsp;this exception gets raised in spite of document getting uploaded successfully. On uploading Windows SharePoint Services 3.0 tries to access the Rights Management Server and if it is not able to connect to the Server the exception gets logged into the ULS log file.</div>
<div>&nbsp;</div>
<div>
<h3 class="subHeading">To check IRM settings in Central Administration</h3>
<div class="subSection"><ol>
<li>
<p>In Central Administration, on the top navigation bar, click <strong>Operations</strong>.</p>
</li>
<li>
<p>On the Operations page, in the <strong>Security Configuration</strong> section, click <strong>Information Rights Management</strong>.</p>
</li>
<li>
<p>On the Information Rights Management page, perform one of the following steps:</p>
<ul>
<li>
<p>If the RMS server in Active Directory, verify that <strong>Use the default RMS server specified in Active Directory</strong> is selected.</p>
</li>
<li>
<p>If you are manually specifying the location of the RMS server, verify that <strong>Use this RMS server</strong> is selected and that the URL specified for the RMS server that you want to use is correct.</p>
</li>
</ul>
</li>
</ol></div>
</div>
<div>&nbsp;</div>
<div>Once the IRM configuration is done this error gets resolved.</div>]]></content:encoded>
    </item>
    <item>
      <title>To enable "Show Tool Bar" option in Document Web Part through Code</title>
      <link>https://docs.microsoft.com/archive/blogs/findnavish/to-enable-show-tool-bar-option-in-document-web-part-through-code</link>
      <pubDate>Thu, 15 Dec 2011 09:38:00 GMT</pubDate>
      <dc:creator><![CDATA[Navish Rampal]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/findnavish/2011/12/15/to-enable-show-tool-bar-option-in-document-web-part-through-code/</guid>
      <description><![CDATA[I am going to explain a scenario where I had an OOB Document Web Part in one of my page and from...]]></description>
      <content:encoded><![CDATA[<p>I am going to explain a scenario where I had an <strong>OOB Document Web Part</strong> in one of my page and from code i had to enable the "<strong>Show&nbsp;Tool Bar</strong>" for that Web Part.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/47/85/6204.ToolBox.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85/6204.ToolBox.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/47/85/6204.ToolBox.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-47-85/6204.ToolBox.png" width="441" height="201" /></a></p>
<p>The scenario can be achieved through&nbsp;reflection. The&nbsp;code is given below.</p>
<p><strong>splist</strong> -&gt; The Document Library&nbsp;List</p>
<p><strong>webpartID</strong> -&gt; Id of the Document Web Part added to the page&nbsp;</p>
<pre class="scroll"><code class="csharp">private static void SetToolbar(SPList splist, string webpartID) <br />{ <br /> SPWeb web = splist.ParentWeb; <br /> SPLimitedWebPartManager manager = web.GetLimitedWebPartManager("default.aspx", System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared); <br /> SPLimitedWebPartCollection webPartColl = manager.WebParts; <br /> XsltListViewWebPart wp = webPartColl[webpartID] as XsltListViewWebPart; <br /> <br /> if (wp != null) <br /> { <br /> MethodInfo ensureViewMethod = wp.GetType().GetMethod("EnsureView", BindingFlags.Instance | BindingFlags.NonPublic); <br /> object[] ensureViewParams = { }; <br /> ensureViewMethod.Invoke(wp, ensureViewParams); <br /> FieldInfo viewFieldInfo = wp.GetType().GetField("view", BindingFlags.NonPublic | BindingFlags.Instance); <br /> SPView view = viewFieldInfo.GetValue(wp) as SPView; <br /> Type[] toolbarMethodParamTypes = { Type.GetType("System.String") }; <br /> MethodInfo setToolbarTypeMethod = view.GetType().GetMethod("SetToolbarType", BindingFlags.Instance | BindingFlags.NonPublic, null, toolbarMethodParamTypes, null); <br /> object[] setToolbarParam = { "ShowToolbar" }; <br /> setToolbarTypeMethod.Invoke(view, setToolbarParam); <br /> view.Update(); <br /> } <br /> }</code></pre>]]></content:encoded>
    </item>
  </channel>
</rss>