<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Ravi Anguluri's blog</title><subtitle type="html" /><id>http://blogs.msdn.com/raviangu/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/raviangu/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/raviangu/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2008-03-19T18:24:00Z</updated><entry><title>User profiles properties and Target Audiences</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/raviangu/archive/2008/06/23/user-profiles-properties-and-target-audiences.aspx" /><id>http://blogs.msdn.com/raviangu/archive/2008/06/23/user-profiles-properties-and-target-audiences.aspx</id><published>2008-06-24T01:35:00Z</published><updated>2008-06-24T01:35:00Z</updated><content type="html">You might be aware the recommended practice is to create a webapp for to host MySites. There are two paths for to store and share Information..Public View and the Private View. The public page is to share information with other users, which could contain information such as personal and professional interests, shared links and documents, etc. To know more about MySite, refer this article http://office.microsoft.com/en-us/sharepointserver/HA101087481033.aspx Say you want to restrict the view of personal...(&lt;a href="http://blogs.msdn.com/raviangu/archive/2008/06/23/user-profiles-properties-and-target-audiences.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8644065" width="1" height="1"&gt;</content><author><name>raviangu</name><uri>http://blogs.msdn.com/members/raviangu.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/raviangu/archive/tags/SharePoint/default.aspx" /></entry><entry><title>ListViewWebPart and ToolbarType</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/raviangu/archive/2008/03/28/listviewwebpart-and-toolbartype.aspx" /><id>http://blogs.msdn.com/raviangu/archive/2008/03/28/listviewwebpart-and-toolbartype.aspx</id><published>2008-03-29T04:12:00Z</published><updated>2008-03-29T04:12:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%"&gt;&lt;FONT face=Calibri&gt;How can I can remove or hide the toolbar for a ListViewWebPart that's added programatically?&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%"&gt;&lt;o:p&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%"&gt;&lt;FONT face=Calibri&gt;There are ways to do this like taking the output from HtmlSchemaXml or ListViewXml, then replace &amp;lt;Toolbar Type="Standard" /&amp;gt; with &amp;lt;Toolbar Type="None" /&amp;gt; or whatever it might be and update the webpart in the webpart collection. This works most of the time when the webparts on the page have these values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%"&gt;&lt;FONT face=Calibri&gt;Is there a simpler way? Yes...&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%"&gt;&lt;FONT face=Calibri&gt;This is the typical code to add a ListViewWebPart to webpart page.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt; myweb &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; SPWeb = &lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt; SPSite(&lt;SPAN style="COLOR: #a31515"&gt;"&lt;A href="http://moss/"&gt;&lt;FONT color=#0000ff&gt;http://MOSS&lt;/FONT&gt;&lt;/A&gt;"&lt;/SPAN&gt;).OpenWeb&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt; ResumeList &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; SPList = myweb.Lists(&lt;SPAN style="COLOR: #a31515"&gt;"Resumes"&lt;/SPAN&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt; wp &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; ListViewWebPart = &lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt; ListViewWebPart()&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri&gt;4.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;&lt;FONT face=Calibri&gt;wp.ListName = ResumeList.ID.ToString(&lt;SPAN style="COLOR: #a31515"&gt;"B"&lt;/SPAN&gt;).ToUpper&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;B&gt;&lt;I&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #e36c0a; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri&gt;5.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;B&gt;&lt;I&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #e36c0a; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;&lt;FONT face=Calibri&gt;wp.ViewGuid = ResumeList.DefaultView.ID.ToString("B").ToUpper()&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri&gt;6.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt; currentManager &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; SPLimitedWebPartManager = myweb.GetLimitedWebPartManager(&lt;SPAN style="COLOR: #a31515"&gt;"default.aspx"&lt;/SPAN&gt;, WebParts.PersonalizationScope.Shared)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri&gt;7.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt; aWebPartCollection &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; SPLimitedWebPartCollection = currentManager.WebParts&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f497d; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri&gt;8.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="FONT-SIZE: 10pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;currentManager.AddWebPart(wp, &lt;SPAN style="COLOR: #a31515"&gt;"Left"&lt;/SPAN&gt;, 1)&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f497d; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f497d; LINE-HEIGHT: 115%"&gt;&lt;o:p&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%"&gt;&lt;FONT face=Calibri&gt;When we specify the webpart.ViewGuid, a default schema is added which contains tag for Toolbar. This causes the Toolbar to be displayed in the webpart page.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%"&gt;&lt;FONT face=Calibri&gt;All you have to do is not to specify the webpart.ViewGuid and this does the trick.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%"&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8342704" width="1" height="1"&gt;</content><author><name>raviangu</name><uri>http://blogs.msdn.com/members/raviangu.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/raviangu/archive/tags/SharePoint/default.aspx" /></entry><entry><title>Moving sites within Site Collection</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/raviangu/archive/2008/03/19/moving-sites-within-site-collection.aspx" /><id>http://blogs.msdn.com/raviangu/archive/2008/03/19/moving-sites-within-site-collection.aspx</id><published>2008-03-20T04:24:00Z</published><updated>2008-03-20T04:24:00Z</updated><content type="html">&lt;p&gt;&lt;span lang="EN" style="font-size: 10pt; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; mso-ansi-language: en"&gt;The site templates under Publishing help organizations to manage the content for deleting, coping and moving sites within Site Collection and it isn't the same with other templates.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span lang="EN" style="font-size: 10pt; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; mso-ansi-language: en"&gt;&lt;/span&gt;&lt;span lang="EN" style="mso-ansi-language: en"&gt;     &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/raviangu/WindowsLiveWriter/MovingsiteswithinSiteCollection_10478/SiteStru_2.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; margin: 0px 0px 0px 5px; border-left: 0px; border-bottom: 0px" height="430" alt="Site Content and Structure" src="http://blogs.msdn.com/blogfiles/raviangu/WindowsLiveWriter/MovingsiteswithinSiteCollection_10478/SiteStru_thumb.png" width="291" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="file:///C:/Users/raviangu/AppData/Roaming/Windows%20Live%20Writer/PostSupportingFiles/2b86c50a-48b6-40b5-9715-e000126af069/SiteStru6.png" mce_href="http://blogs.msdn.com/blogfiles/raviangu/WindowsLiveWriter/MovingSiteswithinSiteCollection_FAE4/SiteStru_2.png"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; text-decoration: none; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; text-underline: none; mso-no-proof: yes"&gt;&lt;shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;stroke joinstyle="miter"&gt;&lt;/stroke&gt;&lt;formulas&gt;&lt;f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/f&gt;&lt;f eqn="sum @0 1 0"&gt;&lt;/f&gt;&lt;f eqn="sum 0 0 @1"&gt;&lt;/f&gt;&lt;f eqn="prod @2 1 2"&gt;&lt;/f&gt;&lt;f eqn="prod @3 21600 pixelWidth"&gt;&lt;/f&gt;&lt;f eqn="prod @3 21600 pixelHeight"&gt;&lt;/f&gt;&lt;f eqn="sum @0 0 1"&gt;&lt;/f&gt;&lt;f eqn="prod @6 1 2"&gt;&lt;/f&gt;&lt;f eqn="prod @7 21600 pixelWidth"&gt;&lt;/f&gt;&lt;f eqn="sum @8 21600 0"&gt;&lt;/f&gt;&lt;f eqn="prod @7 21600 pixelHeight"&gt;&lt;/f&gt;&lt;f eqn="sum @10 21600 0"&gt;&lt;/f&gt;&lt;/formulas&gt;&lt;path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/path&gt;&lt;lock aspectratio="t" v:ext="edit"&gt;&lt;/lock&gt;&lt;/shapetype&gt;&lt;/span&gt;&lt;/a&gt;&lt;span lang="EN" style="font-size: 10pt; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; mso-ansi-language: en"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;span lang="EN" style="font-size: 10pt; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; mso-ansi-language: en"&gt;For example if I have multiple Sites under the Collaboration template, so I will not be able to move the sites within Site Collection. So how do you get your sites to be moved to different locations within the site collection? Well it&amp;#8217;s pretty straight forward. I had created my new custom web part to display the sub sites...and added bit of custom code to move the sites. All you have to do is just use the &amp;quot;ServerRelativeUrl&amp;quot;. This avoids you to export and import sites      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;span lang="EN" style="font-size: 10pt; color: blue; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; mso-ansi-language: en"&gt;Dim&lt;/span&gt;&lt;span lang="EN" style="font-size: 10pt; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; mso-ansi-language: en"&gt; siteCollection &lt;span style="color: blue"&gt;As&lt;/span&gt; &lt;span style="color: blue"&gt;New&lt;/span&gt; SPSite(&lt;span style="color: #a31515"&gt;&lt;a href="http://site/" mce_href="http://site/"&gt;&lt;font color="#0000ff"&gt;http://Site&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;)       &lt;br /&gt;&lt;span style="color: blue"&gt;Dim&lt;/span&gt; sourceSite &lt;span style="color: blue"&gt;As&lt;/span&gt; SPWeb = siteCollection.OpenWeb()       &lt;br /&gt;&lt;span style="color: blue"&gt;Dim&lt;/span&gt; sourceWeb &lt;span style="color: blue"&gt;As&lt;/span&gt; SPWeb = siteCollection.OpenWeb(&lt;span style="color: #a31515"&gt;&amp;quot;/sites/Corporate/TeamSites/HR&amp;quot;&lt;/span&gt;)       &lt;br /&gt;&lt;span style="color: blue"&gt;Dim&lt;/span&gt; destWeb &lt;span style="color: blue"&gt;As&lt;/span&gt; SPWeb = siteCollection.OpenWeb(&lt;span style="color: #a31515"&gt;&amp;quot;/sites/Corporate/&amp;quot;&lt;/span&gt;)       &lt;br /&gt;sourceWeb.ServerRelativeUrl = destWeb.ServerRelativeUrl + &lt;span style="color: #a31515"&gt;&amp;quot;/&amp;quot;&lt;/span&gt; + sourceWeb.Name       &lt;br /&gt;sourceWeb.Update()       &lt;br /&gt;destWeb.Update()       &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;span lang="EN" style="font-size: 10pt; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; mso-ansi-language: en"&gt;Other than moving the sites, you could try other snippets such as Copy the Site etc&amp;#8230;&lt;/span&gt;&lt;span lang="EN" style="mso-ansi-language: en"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span lang="EN" style="font-size: 10pt; font-family: &amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: arial; mso-ansi-language: en"&gt;-Ravi Anguluri&lt;/span&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8326711" width="1" height="1"&gt;</content><author><name>raviangu</name><uri>http://blogs.msdn.com/members/raviangu.aspx</uri></author></entry></feed>