<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8594182367029594821</id><updated>2024-09-06T10:42:12.677-07:00</updated><category term="Access error"/><category term="Add item to splist"/><category term="Adding and activating solution in solution gallery"/><category term="Base Class"/><category term="Basic Sharepoint 2013 changes"/><category term="Change content type hub url on managed metadata service"/><category term="Configuration changes in sharepoint;add entries in web.config programatically;"/><category term="Content Query"/><category term="Content Query Web Part is not available"/><category term="Content Query Web Part is not visible in SharePoint 2010"/><category term="Correct way to iterate through SpList"/><category term="Create SPList View"/><category term="Create site collection using powershell"/><category term="Create web application and site collection using powershell"/><category term="Create web application using powershell"/><category term="Deploy sharepoint webpart to bin"/><category term="Excel files not opening in sharepoint"/><category term="Find SCA in Modern Sites."/><category term="Find SpListItem from SpList"/><category term="How to deploy sharepoint webpart to bin"/><category term="Learning Sharepoint 2013"/><category term="Microsft Diagnostics Services"/><category term="Microsft.Sharepoint dll location"/><category term="New things in Sharepoint 2013"/><category term="Open with Windows Explorer in sharepoint-known facts"/><category term="Physical location Microsft.Sharepoint dll"/><category term="Programatically create Splist and spview"/><category term="Reinstall Microsft Diagnostics Services"/><category term="RunWithElevatedPrivileges"/><category term="SPList.Items.Add"/><category term="SPSecurity.RunWithElevatedPrivileges"/><category term="SharePoint List with code"/><category term="SharePoint Online"/><category term="SharePoint Online with Modern Sites"/><category term="SharePoint SCA group"/><category term="Sharepoint WeBpart base class"/><category term="Site Defination"/><category term="Site Defination in moss 2007"/><category term="Site Defination in sharepoint 2007"/><category term="Start Sharepoint 2013"/><category term="Stsadm commnads to activate Publilshing feature"/><category term="Super Class for WebPart"/><category term="Technical-sharepoint 2010"/><category term="This workbook cannot be opened because it is not stored in an Excel Services Application trusted location"/><category term="UPDATE WEB.CONFIG IN SHAREPOINT"/><category term="Update SpList"/><category term="Update configuration file in SharePoint 2010"/><category term="WebPart Base Classes"/><category term="What are content type"/><category term="What&#39;s new in Sharepoint 2013"/><category term="When should I use SPSecurity.RunWithElevatedPrivileges?"/><category term="Working with SPView"/><category term="iterate through SpList"/><category term="site definition in sharepoint 2007"/><category term="web.config in sharepoint"/><category term="working with SPlist"/><title type='text'>Sharepoint Sharings</title><subtitle type='html'>Thoughts, skills and notes on Sharepoint</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-7089343740539052045</id><published>2019-04-05T02:36:00.000-07:00</published><updated>2019-04-05T02:36:24.815-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Find SCA in Modern Sites."/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint Online"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint Online with Modern Sites"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint SCA group"/><title type='text'>Find SCA in modern sites</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hello Everyone,&lt;br /&gt;
&lt;br /&gt;
We all are very keen to learn new features in SharePoint online. I was going to through few which I am going to post in my upcoming articles, but meanwhile I found there is no direct link to add SCA.&lt;br /&gt;
&lt;br /&gt;
You will need to familiarize yourself with SharePoint Online and below is the link to get into SCA page.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://sites.ey.com/sites/MigSite7/_layouts/15/mngsiteadmin.aspx&quot;&gt;https://WebURL/sites/SiteCollectionName/_layouts/15/mngsiteadmin.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Cheers and happy learning.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/7089343740539052045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2019/04/find-sca-in-modern-sites.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/7089343740539052045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/7089343740539052045'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2019/04/find-sca-in-modern-sites.html' title='Find SCA in modern sites'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-6713677882010446925</id><published>2015-02-16T09:27:00.000-08:00</published><updated>2015-02-16T09:27:14.059-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Open with Windows Explorer in sharepoint-known facts"/><title type='text'> Open with Windows Explorer in sharepoint</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Friends,&lt;br /&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
Its a well known issue and I am writing below steps towards troubleshooting.&lt;br /&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
You can come across any of the below issues :&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Documents in this folder are not available. The folder may have been moved or deleted, or network problems may be preventing a connection to the server &lt;/li&gt;
&lt;li&gt;Internet Explorer could not open&amp;nbsp;&lt;strong&gt;ServerName &lt;/strong&gt;web folder. Would you like to see its default view instead? &lt;div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Your client does not support opening this list with windows explorer.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Access Denied &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/blockquote&gt;
Now lets start investigating it:&lt;br /&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;We should first check if browser type is what? It works with 32 but IE 6,7,8,9,10. Note that it will not work with 64 bit IE.&lt;/li&gt;
&lt;li&gt;Check if webclient service is on in services.msc. Its better if we restart this service.&lt;/li&gt;
&lt;li&gt;We should add affected site in IE trusted sites.&lt;/li&gt;
&lt;li&gt;Check if root site collection is created. If not, create one.&lt;/li&gt;
&lt;li&gt;SharePoint WebDAV have clash with Windows WebDAV service, so stop windows with below steps: &lt;/li&gt;
&lt;/ol&gt;
Open Server Manager&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;On the left side of the panel click on Roles&lt;/li&gt;
&lt;li&gt;Scroll down to the “Role Services” section, and click on “Remove Role Services”&lt;/li&gt;
&lt;li&gt;Under “web server” uncheck the box next to “WebDav Publishing”&lt;/li&gt;
&lt;li&gt;Choose Next, then choose Remove&lt;/li&gt;
&lt;li&gt;A reboot will be required&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
Above steps should resolve your issues. If you are still facing it, please post it here.&lt;br /&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/6713677882010446925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2015/02/open-with-windows-explorer-in-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/6713677882010446925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/6713677882010446925'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2015/02/open-with-windows-explorer-in-sharepoint.html' title=' Open with Windows Explorer in sharepoint'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-7591429921072962593</id><published>2014-12-02T04:38:00.004-08:00</published><updated>2014-12-02T04:38:36.548-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel files not opening in sharepoint"/><category scheme="http://www.blogger.com/atom/ns#" term="This workbook cannot be opened because it is not stored in an Excel Services Application trusted location"/><title type='text'>This workbook cannot be opened because it is not stored in an Excel Services Application trusted location</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I just came across one of my clients excel issue. When she is trying to open excel file by clicking on it, getting &quot;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;This workbook cannot be opened because it is not
stored in an Excel Services Application trusted location&lt;/span&gt;&quot; error. This generally happens if given site is not added as a
trusted site in SharePoint central administration. Please go to the central administrations and do the steps mentioned below:&lt;br /&gt;
&lt;br /&gt;
&lt;ol start=&quot;1&quot; style=&quot;text-align: left;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Open Central Web Administration&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Click on Manage Service Applications&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Click on &lt;a href=&quot;http://en.wikipedia.org/wiki/Excel_Services&quot; target=&quot;_blank&quot; title=&quot;Excel Services&quot;&gt;Excel services&lt;/a&gt; Application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Click on “Trusted file locations”&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Add Trusted file &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
&lt;ol start=&quot;1&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Address&lt;/b&gt; textbox write &lt;a href=&quot;http:&quot;&gt;http://&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Check Children trusted
      box under &lt;b&gt;Trust Children&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Check User-defined functions allowed
      under &lt;b&gt;Allow User-Defined Functions&lt;/b&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Repeat step 5 with address as &lt;a href=&quot;https:&quot;&gt;https://&lt;/a&gt;(&lt;o:p&gt;&lt;/o:p&gt;I would like to mention here that all their sites are secured(https))&lt;/li&gt;
&lt;br /&gt;
&lt;/ol&gt;
&lt;div&gt;
Above steps resolved my issue successfully. Please post queries or comments, if any.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/7591429921072962593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2014/12/this-workbook-cannot-be-opened-because.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/7591429921072962593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/7591429921072962593'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2014/12/this-workbook-cannot-be-opened-because.html' title='This workbook cannot be opened because it is not stored in an Excel Services Application trusted location'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-8673138041395826323</id><published>2014-10-28T06:15:00.002-07:00</published><updated>2014-10-28T06:15:53.370-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Change content type hub url on managed metadata service"/><title type='text'>Change content type hub url on managed metadata service</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Friends,&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Just come across a requirement of changing content type hub(CTH) url in&amp;nbsp;managed metadata service(MMS). Initially we created a site collection and assigned it as a CTH site. Recently while working on some other stuff, one of the developer deleted the existing site.!!!! Big issue!!!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;At the first glance we thought it must be a big issue but i wrote below powershell script to change my new site collection as CTH:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Set-SPMetadataServiceApplication -Identity &quot;MyManagedMetadataService&quot; -HubURI &quot;http://spport01:5555/site/cth/&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Hurdle? I can be resolved!!!!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Post me for your responses and queries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/8673138041395826323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2014/10/change-content-type-hub-url-on-managed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/8673138041395826323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/8673138041395826323'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2014/10/change-content-type-hub-url-on-managed.html' title='Change content type hub url on managed metadata service'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>United States</georss:featurename><georss:point>38.548165423046584 -106.5234375</georss:point><georss:box>13.026130923046583 -147.8320315 64.070199923046587 -65.2148435</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-2844741664736367617</id><published>2014-09-29T05:48:00.003-07:00</published><updated>2014-09-30T03:08:30.387-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Create site collection using powershell"/><category scheme="http://www.blogger.com/atom/ns#" term="Create web application and site collection using powershell"/><category scheme="http://www.blogger.com/atom/ns#" term="Create web application using powershell"/><title type='text'>Create web application and site collection using powershell</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
Just came across a requirement of creating web application and site collections using power shell, posting it here.&lt;br /&gt;
&lt;br /&gt;
Open an empty notepad file and copy paste below code segment :&lt;br /&gt;
&lt;br /&gt;
Add-PsSnapin Microsoft.SharePoint.PowerShell&lt;br /&gt;
&lt;br /&gt;
#My Parameters&lt;br /&gt;
&lt;br /&gt;
$WebAppName = &quot;MyWebApplication&quot;&lt;br /&gt;
$WebAppHostHeader = &quot;http://MyWebHost&quot;&lt;br /&gt;
$WebAppPort = 7575&lt;br /&gt;
$WebAppAppPool = &quot;AppPool_7575&quot;&lt;br /&gt;
&lt;br /&gt;
# This User has to be a Sharepoint Manager Account&lt;br /&gt;
$WebAppAppPoolAccount = &quot;MyDomain\hirwani&quot;&lt;br /&gt;
&lt;br /&gt;
$WebAppDatabaseName = &quot;WSS_Content_7575&quot;&lt;br /&gt;
$WebAppDatabaseServer = &quot;MySQLServer\SharePoint&quot;&lt;br /&gt;
$template = Get-SPWebTemplate &quot;STS#0&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Create a new Sharepoint WebApplication&lt;br /&gt;
&lt;br /&gt;
New-SPWebApplication -Name $WebAppName -Port $WebAppPort -HostHeader $WebAppHostHeader -URL (&quot;http://&quot; + $WebAppHostHeader) -ApplicationPool $WebAppAppPool -ApplicationPoolAccount ($WebAppAppPoolAccount) -DatabaseName $WebAppDatabaseName -DatabaseServer $WebAppDatabaseServer&lt;br /&gt;
&lt;br /&gt;
# Create a new Sharepoint Site Collection&lt;br /&gt;
&lt;br /&gt;
New-SPSite -Name &quot;Root&quot; -Url &quot;http://in-mum-tfsport1:7575/&quot; -Template $template -OwnerAlias &quot;MyDomain\hirwani&quot;&lt;br /&gt;
&lt;br /&gt;
Save this notepad with .ps1 extension. Now execute it, you should get a new web application and site collection created.&lt;br /&gt;
&lt;br /&gt;
Note : Change above parameters as per your requirement. Post here if you have any questions/suggestions.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/2844741664736367617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2014/09/create-web-application-and-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2844741664736367617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2844741664736367617'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2014/09/create-web-application-and-site.html' title='Create web application and site collection using powershell'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-7048114182271093191</id><published>2014-09-04T03:21:00.000-07:00</published><updated>2014-09-29T06:31:52.945-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adding and activating solution in solution gallery"/><title type='text'>Adding and activating solution in solution gallery </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Fea days back, i came across this requirement to add solution to site solution gallery. I wrote below code segment :&lt;br /&gt;
&lt;br /&gt;
ClientContext context = new ClientContext(&quot;http://in-air-eyshr2:1234/sites/ETD02&quot;);&lt;br /&gt;
&lt;br /&gt;
//Activate Publishing feature&lt;br /&gt;
//Add wsp from file system to SP solution gallary&lt;br /&gt;
Folder destionationFolder = context.Web.GetFolderByServerRelativeUrl(&quot;_catalogs/solutions&quot;);&lt;br /&gt;
FileCreationInformation fci = new FileCreationInformation();&lt;br /&gt;
fci.Content = System.IO.File.ReadAllBytes(&quot;D:/WSPS/LDTest.wsp&quot;);&lt;br /&gt;
fci.Url = &quot;LDTest.wsp&quot;;&lt;br /&gt;
fci.Overwrite = true;&lt;br /&gt;
Microsoft.SharePoint.Client.File fileToUpload = destionationFolder.Files.Add(fci);&lt;br /&gt;
context.Load(fileToUpload);&lt;br /&gt;
context.ExecuteQuery();&lt;br /&gt;
&lt;br /&gt;
//Activate solution&lt;br /&gt;
DesignPackageInfo info = new DesignPackageInfo()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; PackageGuid = Guid.Empty,&lt;br /&gt;
&amp;nbsp; MajorVersion = 1,&lt;br /&gt;
&amp;nbsp; MinorVersion = 1,&lt;br /&gt;
&amp;nbsp; PackageName = &quot;LDTest&quot;&lt;br /&gt;
&amp;nbsp; };&lt;br /&gt;
&amp;nbsp; Console.WriteLine(&quot;Installing design package &quot;);&lt;br /&gt;
&amp;nbsp; //Relative Path of Solution Uploaded in Solution Gallery&lt;br /&gt;
&amp;nbsp; //string fileRelativePath = &quot;D:/WSPS/testwsp.wsp&quot;;&lt;br /&gt;
string fileRelativePath = &quot;/sites/ETD02/_catalogs/solutions/LDTest.wsp&quot;;&lt;br /&gt;
DesignPackage.Install(context, context.Site, info, fileRelativePath);&lt;br /&gt;
context.ExecuteQuery();&lt;br /&gt;
Console.WriteLine(&quot;Applying Design Package!&quot;);&lt;br /&gt;
DesignPackage.Apply(context, context.Site, info);&lt;br /&gt;
context.ExecuteQuery();&lt;br /&gt;
&lt;br /&gt;
and it gave me following output:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc3SZssSC4u_hBeLiHrmMOII73r2iAF3ICHMgDNbhdS10MU9Vbc6SsnJUPQAByIrOvepk_53Ix8DWeT8DcTLab9l745IBU-Ebzt-gmwHl-96tCmbvWQL4CXH4TjEkxmNrkAmqPTtmzy84/s1600/WSPActivate.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc3SZssSC4u_hBeLiHrmMOII73r2iAF3ICHMgDNbhdS10MU9Vbc6SsnJUPQAByIrOvepk_53Ix8DWeT8DcTLab9l745IBU-Ebzt-gmwHl-96tCmbvWQL4CXH4TjEkxmNrkAmqPTtmzy84/s1600/WSPActivate.png&quot; height=&quot;548&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
You can give me your suggestions or post relevant questions, if any&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/7048114182271093191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2014/09/adding-and-activating-solution-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/7048114182271093191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/7048114182271093191'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2014/09/adding-and-activating-solution-in.html' title='Adding and activating solution in solution gallery '/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc3SZssSC4u_hBeLiHrmMOII73r2iAF3ICHMgDNbhdS10MU9Vbc6SsnJUPQAByIrOvepk_53Ix8DWeT8DcTLab9l745IBU-Ebzt-gmwHl-96tCmbvWQL4CXH4TjEkxmNrkAmqPTtmzy84/s72-c/WSPActivate.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-2772386584257504057</id><published>2013-12-17T02:50:00.003-08:00</published><updated>2013-12-18T06:23:27.745-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic Sharepoint 2013 changes"/><category scheme="http://www.blogger.com/atom/ns#" term="Learning Sharepoint 2013"/><category scheme="http://www.blogger.com/atom/ns#" term="New things in Sharepoint 2013"/><category scheme="http://www.blogger.com/atom/ns#" term="Start Sharepoint 2013"/><category scheme="http://www.blogger.com/atom/ns#" term="What&#39;s new in Sharepoint 2013"/><title type='text'>Learning SharePoint 2013</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As SharePoint 2013 hits the floor, let&#39;s start learning it as soon as possible. To start with we need to learn it&#39;s basic structure.&lt;br /&gt;
&lt;br /&gt;
It&#39;s based on .Net framework 4.5. The major changes are in the development area where Microsoft has launched &lt;b style=&quot;font-size: x-large;&quot;&gt;App model &lt;/b&gt;which i am going to discuss more in my coming posts&lt;b&gt;. &lt;/b&gt;Basic look &amp;amp; feel will be as below:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnRLemWMYlXULEy28ePj_PNzLmGjoS8yJt7WqysppRNcf2ziTq9dpLZsWdZ-qAug9V7dOv1InySd6LA1wBjtLwfh36JC7WFSzFFzfEubDsGCYoKKS2KTlYyphVjG-LdA3NFaadfwboJt8/s1600/Basic+2013.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;231&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnRLemWMYlXULEy28ePj_PNzLmGjoS8yJt7WqysppRNcf2ziTq9dpLZsWdZ-qAug9V7dOv1InySd6LA1wBjtLwfh36JC7WFSzFFzfEubDsGCYoKKS2KTlYyphVjG-LdA3NFaadfwboJt8/s400/Basic+2013.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;If we go to Site Settings:&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQruu-qUgL2wgGOWjFtaJ_dRZ4aifOVUn8_iFhBMmfo3-AxL0mFDhtyF-8DAQ0NPFIvusIhFLEwep4VpwMwurfN6dTavp4_AI000xkG3HO3SDaNmRZP5yZL72B4xz1NotVMs9SDZD6GdA/s1600/site+Settings.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQruu-qUgL2wgGOWjFtaJ_dRZ4aifOVUn8_iFhBMmfo3-AxL0mFDhtyF-8DAQ0NPFIvusIhFLEwep4VpwMwurfN6dTavp4_AI000xkG3HO3SDaNmRZP5yZL72B4xz1NotVMs9SDZD6GdA/s400/site+Settings.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Other major enhancements are&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;line-height: 25.1875px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;line-height: 25.1875px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Continuous&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Crawl:&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 25.1875px;&quot;&gt;There has been a major upgrade to the crawling and indexing components in SharePoint Search. Now each and every document would be available to user instantly.&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;margin: 0.83em 0px;&quot;&gt;
&lt;span style=&quot;font-family: asap, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: small;&quot;&gt;Cross-site Publishing:&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; line-height: 1.4em;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Cross-site publishing lets you store and maintain content in one or more authoring site collections, and display this content in one or more publishing site collections. When you change the content in an authoring site collection, those changes are now displayed on all site collections that are reusing this content.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; line-height: 28px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;This feature helps ensure content is consistent when shared across several different areas and sites.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 28px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;b&gt;SkyDrive:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 25.1875px;&quot;&gt;Users can now share documents and files from a personal SkyDrive or keep them secured for their personal use. SkyDrive files can still be indexed and located through search if they have been shared to that user.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/2772386584257504057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2013/12/learning-sharepoint-2013.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2772386584257504057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2772386584257504057'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2013/12/learning-sharepoint-2013.html' title='Learning SharePoint 2013'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnRLemWMYlXULEy28ePj_PNzLmGjoS8yJt7WqysppRNcf2ziTq9dpLZsWdZ-qAug9V7dOv1InySd6LA1wBjtLwfh36JC7WFSzFFzfEubDsGCYoKKS2KTlYyphVjG-LdA3NFaadfwboJt8/s72-c/Basic+2013.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-3843970821289034805</id><published>2013-09-25T06:58:00.001-07:00</published><updated>2013-09-26T07:41:05.466-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Configuration changes in sharepoint;add entries in web.config programatically;"/><category scheme="http://www.blogger.com/atom/ns#" term="Update configuration file in SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="UPDATE WEB.CONFIG IN SHAREPOINT"/><category scheme="http://www.blogger.com/atom/ns#" term="web.config in sharepoint"/><title type='text'>Add Entries in Web.Config File in SharePoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It may depend on core client requirment to modify the configuration files. I came across such requirment and below is the way to modify your configuration file. Remember one thing, before doing this activity first you take a backup of your configuration file.&lt;br /&gt;
&lt;br /&gt;
First add SharePoint administration namespace using below segment:&lt;br /&gt;
using Microsoft.Sharepoint.Administration;&lt;br /&gt;
&lt;br /&gt;
Now you can write below code segment on a button&#39;s click event.&lt;br /&gt;
&lt;br /&gt;
SPWebService service = SPWebService.ContentService;&lt;br /&gt;
&lt;br /&gt;
SPWebConfigModification myModification = new SPWebConfigModification();&lt;br /&gt;
myModification.Path = &quot;configuration/SharePoint/SafeControls&quot;;&lt;br /&gt;
myModification.Name = &quot;SafeControl[@Assembly=&#39;MyCustomAssembly&#39;][@Namespace=&#39;MyCustomNamespace&#39;][@TypeName=&#39;*&#39;][@Safe=&#39;True&#39;]&quot;;&lt;br /&gt;
myModification.Sequence = 0;&lt;br /&gt;
myModification.Owner = &quot;User Name&quot;;//In my case i used System account&lt;br /&gt;
myModification.Type = SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode;&lt;br /&gt;
myModification.Value = &quot;&amp;lt;SafeControl Assembly=&#39;MyCustomAssembly&#39; Namespace=&#39;MyCustomNamespace&#39; TypeName=&#39;*&#39; Safe=&#39;True&#39; /&amp;gt;&quot;;&lt;br /&gt;
service.WebConfigModifications.Add(myModification);&lt;br /&gt;
&lt;br /&gt;
service.Update();&lt;br /&gt;
service.ApplyWebConfigModifications();&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/3843970821289034805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2013/09/add-entries-in-webconfig-file-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/3843970821289034805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/3843970821289034805'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2013/09/add-entries-in-webconfig-file-in.html' title='Add Entries in Web.Config File in SharePoint 2010'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-3809152548008420636</id><published>2012-08-20T10:54:00.001-07:00</published><updated>2012-08-20T11:12:36.794-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Content Query"/><category scheme="http://www.blogger.com/atom/ns#" term="Content Query Web Part is not available"/><category scheme="http://www.blogger.com/atom/ns#" term="Content Query Web Part is not visible in SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Stsadm commnads to activate Publilshing feature"/><title type='text'>Content Query not visible in SharePoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Content Query is a needful webpart in Sharepoint as it relates with user very smoothely.If you are not able to see this webpart in your gallary under Content, then turn on &quot;SharePoint Server Publishing Infrastructure&quot; in your top level site collection administration.After this step,&amp;nbsp;turn on &quot;SharePoint Server Publishing&quot; feature in your affected site.&lt;br /&gt;
&lt;br /&gt;
NOTE: No need to go to central admin for this solution.&lt;br /&gt;
&lt;br /&gt;
If you are getting any error while doing any of the above activity(as i was) then lets open PoweShell(CMD) and try below stsadm commands and will do you work:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;(to activate top level site collection feature)&lt;/strong&gt;&lt;br /&gt;
stsadm -o activatefeature -name publishingResources -url&amp;nbsp;&quot;SiteCollectionURL&quot; -force&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;(to activate publishing feature in affected site)&lt;/strong&gt;&lt;br /&gt;
stsadm -o activatefeature -name PublishingWeb -url&amp;nbsp;&quot;Affected Site URL&quot; -force&lt;br /&gt;
&lt;br /&gt;
Hope this will work.&lt;br /&gt;
&lt;br /&gt;
All the best&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/3809152548008420636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/08/content-query-not-visible-in-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/3809152548008420636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/3809152548008420636'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/08/content-query-not-visible-in-sharepoint.html' title='Content Query not visible in SharePoint 2010'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-6340215802836065258</id><published>2012-03-16T02:41:00.001-07:00</published><updated>2012-03-16T03:27:18.962-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Deploy sharepoint webpart to bin"/><category scheme="http://www.blogger.com/atom/ns#" term="How to deploy sharepoint webpart to bin"/><title type='text'>Deploy sharepoint webpart to bin</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&amp;nbsp; Simply put, I had three web parts that I wanted to package up as features into a .wsp so I could run stsadm to deploy them to different environments, such as q/a and production. I followed the following two steps:&lt;/div&gt;
&lt;ol style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; list-style-image: initial; list-style-position: initial; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;First, I used WSPBuilder to create my wsp, packaging the web parts into features. I also indicated at this point that I wanted it to be a bin deployment.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Once the web part assembly dll was deployed to bin, I made the required CAS policy changes, otherwise the web parts wouldn&#39;t run. This involved a policy file and the web.config.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
So, as far as step 1 goes, there are few things that will need to be done:&lt;/div&gt;
&lt;ol style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; list-style-image: initial; list-style-position: initial; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Create an 80\bin\ folder in your solution explorer.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Change your project&#39;s Build Output Path to that new folder.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Change AssemblyInfo.vb to import System.Security and also to AllowPartiallyTrustedCallers.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Create a mirror folder structure to the 12 hive in Solution Explorer: 12/Template/Features with a folder below that for each web part/feature to be deployed. Ensure each web part/feature folder has a feature.xml, elements.xml, and .webpart.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Download WSPBuilder and install it. It will be added to the Tools menu. Click Tools -&amp;gt; WSPBuilder - Build WSP. The manifest.xml will be autogenerated and added to the .wsp along with the assembly&#39;s dll, and the web parts&#39; feature.xml, elements.xml, and .webpart files.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Run stsadm on the resulting .wsp to add solution, deploy solution, then activate the features.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Finally, step 2 involves setting the proper CAS permissions:&lt;/div&gt;
&lt;ol style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; list-style-image: initial; list-style-position: initial; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Make a copy of wss_minimaltrust.config (in 12/CONFIG on server) and edit this copy as it will be the required custom policy file we need.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Add a reference to SharePointPermission in the &amp;lt;SecurityClasses&amp;gt; section.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Add a new custom permission set that lists the required permissions. Copy and paste the permission set SPRestricted, and in the new copy, add a line for SharePointPermission.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Next, add a code group that links the newly created permission set with your assembly, so SharePoint knows when to apply the permissions.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Finally, hop over to your web.config and make sure its using custom trust level, and that custom trust level is pointing to your new policy file.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f3f4; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
If you want a step-by-step with code to copy/paste, you can find it here at&lt;a href=&quot;http://simplesharepointsolutions.blogspot.com/2009/07/how-to-deploy-sharepoint-web-part-to.html&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #267cb2; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;How to deploy a SharePoint web part to bin&lt;/a&gt;. You will also find links to other pages that also show how to do this.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/6340215802836065258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/deploy-sharepoint-webpart-to-bin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/6340215802836065258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/6340215802836065258'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/deploy-sharepoint-webpart-to-bin.html' title='Deploy sharepoint webpart to bin'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-9026316412423688466</id><published>2012-03-14T03:08:00.000-07:00</published><updated>2013-09-26T07:55:07.322-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Create SPList View"/><category scheme="http://www.blogger.com/atom/ns#" term="Programatically create Splist and spview"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint List with code"/><category scheme="http://www.blogger.com/atom/ns#" term="working with SPlist"/><category scheme="http://www.blogger.com/atom/ns#" term="Working with SPView"/><title type='text'>Create a SPlist and its SPView in SharePoint writing C# code against WSS object model</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 class=&quot;post-title&quot; style=&quot;background-color: white; color: #cc6600; font-family: Georgia, serif; font-size: 17px; font-weight: normal; line-height: 1.4em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.25em; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 774px;&quot;&gt;


Create a SPlist and its SPView in SharePoint writing C# code against WSS object model&lt;/h3&gt;
&lt;div class=&quot;post-body&quot; style=&quot;background-color: white; color: #333333; font-family: Georgia, serif; font-size: small; line-height: 1.2em; margin-bottom: 0.75em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.2em; margin-bottom: 0.75em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div class=&quot;corps-texte&quot; style=&quot;color: grey; font-family: arial; font-size: 10pt; line-height: 1.2em; margin-bottom: 0.75em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-left: 5px; width: 800px;&quot;&gt;
How to create a SPlist and its SPView in SharePoint writing C# code against the WSS object model ?&lt;br /&gt;
&lt;br /&gt;
Assume you want to create the list and its view when activating a SharePoint Feature.&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;myFeatureReceiver&lt;/span&gt;&amp;nbsp;: Microsoft.SharePoint.&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFeatureReceiver&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;override&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;FeatureActivated(&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFeatureReceiverProperties&lt;/span&gt;&amp;nbsp;properties)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;SPWeb&lt;/span&gt;&amp;nbsp;web = properties.Feature.Parent&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPWeb&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Diagnostics.&lt;span style=&quot;color: #2b91af;&quot;&gt;Debug&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Creating the list&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//web.AllowUnsafeUpdates = true; //use this in an application page no need in a dll&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;web.Lists.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Customers&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Store informations about my Company Customers&quot;&lt;/span&gt;,&lt;span style=&quot;color: #2b91af;&quot;&gt;SPListTemplateType&lt;/span&gt;.GenericList);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;web.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Diagnostics.&lt;span style=&quot;color: #2b91af;&quot;&gt;Debug&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Creating the Fields&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPList&lt;/span&gt;&amp;nbsp;myNewList = web.Lists[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Customers&quot;&lt;/span&gt;];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myNewList.Fields.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;First Name&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldType&lt;/span&gt;.Text,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myNewList.Fields.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Last Name&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldType&lt;/span&gt;.Text,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myNewList.Fields.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Adress&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldType&lt;/span&gt;.Text,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myNewList.Fields.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;City&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldType&lt;/span&gt;.Text,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myNewList.Fields.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Latest Purchase Date&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldType&lt;/span&gt;.DateTime,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myNewList.Fields.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Sales Comments&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldType&lt;/span&gt;.Note,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myNewList.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Diagnostics.&lt;span style=&quot;color: #2b91af;&quot;&gt;Debug&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Creating the view&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Collections.Specialized.&lt;span style=&quot;color: #2b91af;&quot;&gt;StringCollection&lt;/span&gt;&amp;nbsp;strColl =&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;System.Collections.Specialized.&lt;span style=&quot;color: #2b91af;&quot;&gt;StringCollection&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strColl.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Title&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strColl.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;First Name&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strColl.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Last Name&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strColl.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Adress&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strColl.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;City&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strColl.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Latest Purchase Date&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strColl.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Sales Comments&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myNewList.Views.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Summary&quot;&lt;/span&gt;, strColl,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;@&quot;&quot;&lt;/span&gt;, 100,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;, Microsoft.SharePoint.&lt;span style=&quot;color: #2b91af;&quot;&gt;SPViewCollection&lt;/span&gt;.&lt;span style=&quot;color: #2b91af;&quot;&gt;SPViewType&lt;/span&gt;.Html,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;myNewList.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
References&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spviewcollection.add.aspx&quot; style=&quot;color: #996699; text-decoration: none;&quot;&gt;SPViewCollection.Add Method (MSDN - Microsoft.SharePoint)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/views.views.addview.aspx&quot; style=&quot;color: #996699; text-decoration: none;&quot;&gt;Views.AddView Method (MSDN - Views Web Services)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/9026316412423688466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/create-splist-and-its-spview-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/9026316412423688466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/9026316412423688466'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/create-splist-and-its-spview-in.html' title='Create a SPlist and its SPView in SharePoint writing C# code against WSS object model'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-2206697332107078435</id><published>2012-03-14T01:32:00.003-07:00</published><updated>2012-03-14T01:32:56.970-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="What are content type"/><title type='text'>What are Content Type</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;strong&gt;What is a Content Type then?&lt;/strong&gt;&lt;br /&gt;A content type is an object that is stored within MOSS that defines several elements of a piece of content, including:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;Document Template that the content will be based on&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;Columns that the content will have associated with it (metadata)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;Workflows that the content will use&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;Information Management policies that apply to the content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;Conversion types for the content&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;em&gt;This picture shows the site-wide admin interface for managing content types&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;img height=&quot;618&quot; mce_src=&quot;http://static.flickr.com/87/262232384_3d55832e64_o.png&quot; src=&quot;http://static.flickr.com/87/262232384_3d55832e64_o.png&quot; style=&quot;height: 618px; max-width: 100%; overflow-x: hidden; overflow-y: hidden; width: 470px;&quot; width=&quot;470&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;Every piece of list or library content in MOSS is created from a content type. There are a load of out-of-the-box content types like ‘Blank Document’ or ‘Announcement’ and you can create your own (without any code or customisation, it is done through the admin UI).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;strong&gt;So how do you apply them?&lt;/strong&gt;&lt;br /&gt;Content Types are created centrally and then they can be applied to lists and libraries throughout your site.&lt;as add=&quot;&quot; administrator,=&quot;&quot; an=&quot;&quot; and=&quot;&quot; available=&quot;&quot; becomes=&quot;&quot; can=&quot;&quot; content=&quot;&quot; decide=&quot;&quot; document=&quot;&quot; have=&quot;&quot; in=&quot;&quot; it=&quot;&quot; item=&quot;&quot; library.&lt;=&quot;&quot; library=&quot;&quot; may=&quot;&quot; menu=&quot;&quot; new=&quot;&quot; p=&quot;&quot; report’=&quot;&quot; should=&quot;&quot; simply=&quot;&quot; that=&quot;&quot; the=&quot;&quot; then=&quot;&quot; to=&quot;&quot; type,=&quot;&quot; you=&quot;&quot; your=&quot;&quot; ‘expenses=&quot;&quot;&gt;&lt;/as&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;em&gt;This picture shows the list-based interface for adding content types to a list or library&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;img height=&quot;186&quot; mce_src=&quot;http://static.flickr.com/102/262232375_0d6d5c6689_o.png&quot; src=&quot;http://static.flickr.com/102/262232375_0d6d5c6689_o.png&quot; style=&quot;height: 186px; max-width: 100%; overflow-x: hidden; overflow-y: hidden; width: 694px;&quot; width=&quot;694&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;strong&gt;What does this mean for users?&lt;/strong&gt;&lt;br /&gt;This means that users can now create an expense report by simply choosing ‘expense report’ from the new item button on the library. Their new expense report will be created from the central content type with the document template and all the columns and workflow that are associated with the content type.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;em&gt;This pictures show the net result of content types; the ability for users to choose what type of content they wish to create&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ced5db; color: #333333; font-family: Tahoma; font-size: x-small; line-height: 16px;&quot;&gt;&lt;img height=&quot;232&quot; mce_src=&quot;http://static.flickr.com/109/262232379_c16fed9cd8_o.png&quot; src=&quot;http://static.flickr.com/109/262232379_c16fed9cd8_o.png&quot; style=&quot;height: 232px; max-width: 100%; overflow-x: hidden; overflow-y: hidden; width: 666px;&quot; width=&quot;666&quot; /&gt;The important thing to note here is that the content will inherit all of the columns and workflow that comes with the content type – even if the library does not.&lt;br /&gt;
For example, if you have a standard document library that just has the ‘blank document’ content type associated with it (which is the default) it will not have any columns or workflows. However if you add the ‘expense report’ content type to the library, items created from that content type will have all of the columns and workflows that are required by the content type. These columns can be used in the same way as list-based columns.&lt;br /&gt;
&lt;b&gt;Why should you get excited?&lt;/b&gt;&lt;br /&gt;The easiest way to demonstrate this is to compare SharePoint Server 2007 against SharePoint Portal Server 2003 functionality.&lt;br /&gt;
Document Templates:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;In 2003 you needed some third party or community supported code to use anything more than the single template that is defined for each library&lt;/li&gt;
&lt;li&gt;In 2007 you can choose to include multiple content types (each with their own template) within a library using simple configuration&lt;/li&gt;
&lt;/ul&gt;
&lt;div mce_keep=&quot;true&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Metadata (Columns):&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;In 2003, all items in a library have to use the same metadata columns. This restricts your library design to specific types of content rather than administrative or logical libraries structures&lt;/li&gt;
&lt;li&gt;In 2007, the content in a library can be whatever type you like without compromising the metadata of that content because each content type brings it’s own set of columns&lt;/li&gt;
&lt;/ul&gt;
&lt;div mce_keep=&quot;true&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Workflow:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;OK, so 2003 did not have workflow. But it did have Document Library Event Handlers which were used for workflow. Again these event handlers applied to the entire content of a library, not specific documents&lt;/li&gt;
&lt;li&gt;In 2007, the content brings the workflow that it needs with it, regardless of where it is stored. Work flows are included as part of the contenyt type, not the library (allthough they can also be set on thr library)&lt;/li&gt;
&lt;/ul&gt;
&lt;div mce_keep=&quot;true&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Search:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;In 2003, there was no easy way of differentiating different types of content other than relying on column values being filled out&lt;/li&gt;
&lt;li&gt;In 2007, you can search on ‘where content type = x’, i.e. ‘give me all the expense reports written by Jo Blogs’&lt;/li&gt;
&lt;/ul&gt;
&lt;div mce_keep=&quot;true&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div style=&quot;background-color: #ced5db; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16px;&quot;&gt;
&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;This was only a brief summary, I hope it was useful. Please comment if you need clarification, found it usefull, good but do this different etc ….&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/2206697332107078435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/what-are-content-type.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2206697332107078435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2206697332107078435'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/what-are-content-type.html' title='What are Content Type'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-5683214954828119662</id><published>2012-03-13T09:47:00.004-07:00</published><updated>2012-03-13T09:47:59.377-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsft Diagnostics Services"/><category scheme="http://www.blogger.com/atom/ns#" term="Reinstall Microsft Diagnostics Services"/><title type='text'>Reinstall microsft diagnostics services</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Go to Start -&amp;gt; All program -&amp;gt; Microsoft Office -&amp;gt;Microsoft Office Tools -&amp;gt;&amp;nbsp;Microsoft Office Diagnostics -&amp;gt;&lt;br /&gt;
Click on continue and follow the steps.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/5683214954828119662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/reinstall-microsft-diagnostics-services.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/5683214954828119662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/5683214954828119662'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/reinstall-microsft-diagnostics-services.html' title='Reinstall microsft diagnostics services'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-1030623323720416642</id><published>2012-03-13T09:34:00.000-07:00</published><updated>2012-03-13T09:34:35.067-07:00</updated><title type='text'>Getting Names and Email Addresses from Active Directory Groups</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;1: public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; StringDictionary GetGroupMembers(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; GroupName, &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; UserName, &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; Password)&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum2&quot; style=&quot;color: #606060;&quot;&gt;   2:&lt;/span&gt; {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum3&quot; style=&quot;color: #606060;&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum4&quot; style=&quot;color: #606060;&quot;&gt;   4:&lt;/span&gt;     {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum5&quot; style=&quot;color: #606060;&quot;&gt;   5:&lt;/span&gt;         StringDictionary ReturnArray = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; StringDictionary();&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum6&quot; style=&quot;color: #606060;&quot;&gt;   6:&lt;/span&gt;         DirectoryEntry deDirEntry = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; DirectoryEntry(&lt;span style=&quot;color: #006080;&quot;&gt;&quot;LDAP://LDAPDOMAIN&quot;&lt;/span&gt;,&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum7&quot; style=&quot;color: #606060;&quot;&gt;   7:&lt;/span&gt;                                                            UserName,&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum8&quot; style=&quot;color: #606060;&quot;&gt;   8:&lt;/span&gt;                                                            Password,&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum9&quot; style=&quot;color: #606060;&quot;&gt;   9:&lt;/span&gt;                                                            AuthenticationTypes.Secure); &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum10&quot; style=&quot;color: #606060;&quot;&gt;  10:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum11&quot; style=&quot;color: #606060;&quot;&gt;  11:&lt;/span&gt;         DirectorySearcher mySearcher = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; DirectorySearcher(deDirEntry);&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum12&quot; style=&quot;color: #606060;&quot;&gt;  12:&lt;/span&gt;         mySearcher.PropertiesToLoad.Add(&lt;span style=&quot;color: #006080;&quot;&gt;&quot;distinguishedName&quot;&lt;/span&gt;); &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum13&quot; style=&quot;color: #606060;&quot;&gt;  13:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum14&quot; style=&quot;color: #606060;&quot;&gt;  14:&lt;/span&gt;         &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; sFilter = String.Format(&lt;span style=&quot;color: #006080;&quot;&gt;&quot;(&amp;amp;(objectcategory=group)(cn=&quot;&lt;/span&gt; + GroupName + &lt;span style=&quot;color: #006080;&quot;&gt;&quot;))&quot;&lt;/span&gt;); &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum15&quot; style=&quot;color: #606060;&quot;&gt;  15:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum16&quot; style=&quot;color: #606060;&quot;&gt;  16:&lt;/span&gt;         mySearcher.Filter = sFilter;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum17&quot; style=&quot;color: #606060;&quot;&gt;  17:&lt;/span&gt;         mySearcher.Sort.Direction = SortDirection.Ascending;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum18&quot; style=&quot;color: #606060;&quot;&gt;  18:&lt;/span&gt;         mySearcher.Sort.PropertyName = &lt;span style=&quot;color: #006080;&quot;&gt;&quot;cn&quot;&lt;/span&gt;; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum19&quot; style=&quot;color: #606060;&quot;&gt;  19:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum20&quot; style=&quot;color: #606060;&quot;&gt;  20:&lt;/span&gt;         SearchResult result;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum21&quot; style=&quot;color: #606060;&quot;&gt;  21:&lt;/span&gt;         DirectoryEntry ResultEntry; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum22&quot; style=&quot;color: #606060;&quot;&gt;  22:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum23&quot; style=&quot;color: #606060;&quot;&gt;  23:&lt;/span&gt;         result = mySearcher.FindOne();&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum24&quot; style=&quot;color: #606060;&quot;&gt;  24:&lt;/span&gt;         ResultEntry =result.GetDirectoryEntry(); &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum25&quot; style=&quot;color: #606060;&quot;&gt;  25:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum26&quot; style=&quot;color: #606060;&quot;&gt;  26:&lt;/span&gt;         GroupName=ResultEntry.Properties[&lt;span style=&quot;color: #006080;&quot;&gt;&quot;distinguishedName&quot;&lt;/span&gt;].Value.ToString(); &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum27&quot; style=&quot;color: #606060;&quot;&gt;  27:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum28&quot; style=&quot;color: #606060;&quot;&gt;  28:&lt;/span&gt;         mySearcher = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; DirectorySearcher(deDirEntry);&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum29&quot; style=&quot;color: #606060;&quot;&gt;  29:&lt;/span&gt;         mySearcher.PropertiesToLoad.Add(&lt;span style=&quot;color: #006080;&quot;&gt;&quot;cn&quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum30&quot; style=&quot;color: #606060;&quot;&gt;  30:&lt;/span&gt;         mySearcher.PropertiesToLoad.Add(&lt;span style=&quot;color: #006080;&quot;&gt;&quot;mail&quot;&lt;/span&gt;); &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum31&quot; style=&quot;color: #606060;&quot;&gt;  31:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum32&quot; style=&quot;color: #606060;&quot;&gt;  32:&lt;/span&gt;         sFilter=String.Format(&lt;span style=&quot;color: #006080;&quot;&gt;&quot;(&amp;amp;(memberOf={0}))&quot;&lt;/span&gt;, GroupName);&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum33&quot; style=&quot;color: #606060;&quot;&gt;  33:&lt;/span&gt;         mySearcher.Filter = sFilter;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum34&quot; style=&quot;color: #606060;&quot;&gt;  34:&lt;/span&gt;         mySearcher.Sort.Direction = SortDirection.Ascending;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum35&quot; style=&quot;color: #606060;&quot;&gt;  35:&lt;/span&gt;         mySearcher.Sort.PropertyName = &lt;span style=&quot;color: #006080;&quot;&gt;&quot;cn&quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum36&quot; style=&quot;color: #606060;&quot;&gt;  36:&lt;/span&gt;         mySearcher.PageSize = 1000; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum37&quot; style=&quot;color: #606060;&quot;&gt;  37:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum38&quot; style=&quot;color: #606060;&quot;&gt;  38:&lt;/span&gt;         SearchResultCollection results;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum39&quot; style=&quot;color: #606060;&quot;&gt;  39:&lt;/span&gt;         results = mySearcher.FindAll(); &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum40&quot; style=&quot;color: #606060;&quot;&gt;  40:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum41&quot; style=&quot;color: #606060;&quot;&gt;  41:&lt;/span&gt;         &lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt; (SearchResult resEnt &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; results)&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum42&quot; style=&quot;color: #606060;&quot;&gt;  42:&lt;/span&gt;         { &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum43&quot; style=&quot;color: #606060;&quot;&gt;  43:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum44&quot; style=&quot;color: #606060;&quot;&gt;  44:&lt;/span&gt;             ResultPropertyCollection propcoll = resEnt.Properties;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum45&quot; style=&quot;color: #606060;&quot;&gt;  45:&lt;/span&gt;             &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; Name=&lt;span style=&quot;color: #006080;&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum46&quot; style=&quot;color: #606060;&quot;&gt;  46:&lt;/span&gt;             &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; Email=&lt;span style=&quot;color: #006080;&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum47&quot; style=&quot;color: #606060;&quot;&gt;  47:&lt;/span&gt;             &lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; key &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; propcoll.PropertyNames)&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum48&quot; style=&quot;color: #606060;&quot;&gt;  48:&lt;/span&gt;             {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum49&quot; style=&quot;color: #606060;&quot;&gt;  49:&lt;/span&gt;                 &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (key == &lt;span style=&quot;color: #006080;&quot;&gt;&quot;cn&quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum50&quot; style=&quot;color: #606060;&quot;&gt;  50:&lt;/span&gt;                 {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum51&quot; style=&quot;color: #606060;&quot;&gt;  51:&lt;/span&gt;                     &lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; values &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; propcoll[key])&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum52&quot; style=&quot;color: #606060;&quot;&gt;  52:&lt;/span&gt;                     {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum53&quot; style=&quot;color: #606060;&quot;&gt;  53:&lt;/span&gt;                         Name=values.ToString();&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum54&quot; style=&quot;color: #606060;&quot;&gt;  54:&lt;/span&gt;                     }&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum55&quot; style=&quot;color: #606060;&quot;&gt;  55:&lt;/span&gt;                 }&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum56&quot; style=&quot;color: #606060;&quot;&gt;  56:&lt;/span&gt;                 &lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(key==&lt;span style=&quot;color: #006080;&quot;&gt;&quot;mail&quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum57&quot; style=&quot;color: #606060;&quot;&gt;  57:&lt;/span&gt;                 {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum58&quot; style=&quot;color: #606060;&quot;&gt;  58:&lt;/span&gt;                     &lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; values &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; propcoll[key])&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum59&quot; style=&quot;color: #606060;&quot;&gt;  59:&lt;/span&gt;                     {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum60&quot; style=&quot;color: #606060;&quot;&gt;  60:&lt;/span&gt;                         Email=values.ToString();&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum61&quot; style=&quot;color: #606060;&quot;&gt;  61:&lt;/span&gt;                     }&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum62&quot; style=&quot;color: #606060;&quot;&gt;  62:&lt;/span&gt;                 }&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum63&quot; style=&quot;color: #606060;&quot;&gt;  63:&lt;/span&gt;             }&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum64&quot; style=&quot;color: #606060;&quot;&gt;  64:&lt;/span&gt;             ReturnArray.Add(Name,Email);&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum65&quot; style=&quot;color: #606060;&quot;&gt;  65:&lt;/span&gt;         }&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum66&quot; style=&quot;color: #606060;&quot;&gt;  66:&lt;/span&gt;         &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt; ReturnArray;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum67&quot; style=&quot;color: #606060;&quot;&gt;  67:&lt;/span&gt;     }&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum68&quot; style=&quot;color: #606060;&quot;&gt;  68:&lt;/span&gt;     &lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum69&quot; style=&quot;color: #606060;&quot;&gt;  69:&lt;/span&gt;     {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum70&quot; style=&quot;color: #606060;&quot;&gt;  70:&lt;/span&gt;         &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum71&quot; style=&quot;color: #606060;&quot;&gt;  71:&lt;/span&gt;     }&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 641px;&quot;&gt;&lt;span id=&quot;lnum72&quot; style=&quot;color: #606060;&quot;&gt;  72:&lt;/span&gt; }&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/1030623323720416642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/getting-names-and-email-addresses-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/1030623323720416642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/1030623323720416642'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/getting-names-and-email-addresses-from.html' title='Getting Names and Email Addresses from Active Directory Groups'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-1376323037600081182</id><published>2012-03-13T07:53:00.000-07:00</published><updated>2012-03-13T07:53:00.834-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsft.Sharepoint dll location"/><category scheme="http://www.blogger.com/atom/ns#" term="Physical location Microsft.Sharepoint dll"/><title type='text'>Sharepoint dll location</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;Physical location of Sharepoint dll is :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy..............&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/1376323037600081182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/sharepoint-dll-location.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/1376323037600081182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/1376323037600081182'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/sharepoint-dll-location.html' title='Sharepoint dll location'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-1731086583975661090</id><published>2012-03-13T07:44:00.002-07:00</published><updated>2012-03-13T07:58:43.873-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Site Defination"/><category scheme="http://www.blogger.com/atom/ns#" term="Site Defination in moss 2007"/><category scheme="http://www.blogger.com/atom/ns#" term="Site Defination in sharepoint 2007"/><category scheme="http://www.blogger.com/atom/ns#" term="site definition in sharepoint 2007"/><title type='text'>Site Defination and its component</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 class=&quot;pageTitle&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; margin-bottom: 20px; margin-top: 0px; text-align: -webkit-auto;&quot;&gt;



&lt;span style=&quot;color: #b45f06; font-size: large;&quot;&gt;
Site Definitions in SharePoint 2007&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 11px; text-align: -webkit-auto;&quot;&gt;
For one of our clients we need to build custom site definitions. When building SharePoint solutions the terms site template, definition and to a lesser extent site portal are often used. Each of these allows the user to create a new site with a predefined set of Content Types, Layouts, and Lists etc. In the case of the Portal, it allows the user to create a site and one or more nested child sites.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 11px; text-align: -webkit-auto;&quot;&gt;
Site definitions are our preferred way to develop custom sites. A portal definition is a variation of the Site Definition except that the definition describes a series of sites to be created. An example of this is the Site Collection Publishing Template, which creates a root site collection, a News sub site, a Documents sub site and some others.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 11px; text-align: -webkit-auto;&quot;&gt;
The focus of this article is on how site definitions and Portal definitions can be created and deployed. Site definitions are usually deployed as a part of a solution package, which is a compressed cabinet file made up of XML files and other resources. Solution packages are first added and then deployed to the MOSS farm. Once deployed the contents of the solution can be made available to sites, or used to create new sites.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 11px; text-align: -webkit-auto;&quot;&gt;
The Solution Package can also deploy Site Features. A Site Feature can do myriad things, such as deploying a new web part, defining a new content type, site column, list type, adding a new page layout, or even a graphic image. Site Features can then be activated in a site, or automatically applied in a new site definition. We typically deploy several features as part of the new site definition, as this allows multiple developers to work together without interfering with one another. The solution and feature methodology is a powerful new model for MOSS and is used by Microsoft to build and extend MOSS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-size: small;&quot;&gt;CREATING A SITE DEFINITION&lt;/span&gt;&lt;/strong&gt;To create a site definition the first step is to create the “WebTemp” file. The purpose of the webtemp file is to describe to SharePoint the new Site Definition or Site Portal Definition. After the WebTemp file, the Site Definition file should be created, this is known as the ONET.XML file. Each Site Definition contains one or more configurations of lists and features. A site Definition can also point to a Portal Definition. The portal definition uses one or more site definitions. The relationship of files is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-QcJCnvmKHTHWjQZWPWBWtZPPjRnEZM4yBVgVb5E5KxoSxHpFm6TuG2mNItdYm0T96N-n13raj0_YG3oiETEknPWwkM8sQtqx8EDgLr7gE7uQ9eK_0H9j2I6UkooaydOCW6IS1oXwyKM/s1600/Webtempfiles.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;279&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-QcJCnvmKHTHWjQZWPWBWtZPPjRnEZM4yBVgVb5E5KxoSxHpFm6TuG2mNItdYm0T96N-n13raj0_YG3oiETEknPWwkM8sQtqx8EDgLr7gE7uQ9eK_0H9j2I6UkooaydOCW6IS1oXwyKM/s320/Webtempfiles.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-size: small;&quot;&gt;WEBTEMP FILE&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
All the webtemp files are XML files which live in the &amp;lt;12-hive&amp;gt;\TEMPLATES\1033\XML. The webtemp file can be thought of as Meta data or a description of a Site Definition. For example, the file contains the name of the site definition, as displayed in the Create Site page in a site or the Create Site Collection page in Central Administration.&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
Each Site Definition description is in a &amp;lt;Template&amp;gt; node that contains one or more configuration nodes. The name assigned to a Template must match the name of a directory in the &amp;lt;12-hive&amp;gt;\TEMPLATE\SiteTemplates directory. SharePoint then looks for the ONET.XML file in a subdirectory called XML to find the actual Site Definition. The ID of the Template must be unique across the SharePoint installation. The following is a sample template definition:&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;Template&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;SPPR&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;=&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;10856&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;Configuration&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;0&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;Syrinx Root&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;This site is intended to be the root site collection for a Syrinx portal.&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Hidden&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;TRUE&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;ImageUrl&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;/_layouts/images/stsprev.png&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;DisplayCategory&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;Syrinx&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;RootWebOnly&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;True&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;Template&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;The Configuration declaration can define if the site definition can be used for a site root collection only, a sub web site only or both. This provides a level control on how the site definition can be used, and provides a mechanism to control how certain features are enabled.&lt;br /&gt;
In the case of a Portal definition, the webtemp template configuration adds some additional attributes:&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;Template&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;SyrinxPortal&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;=&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;10855&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;Configuration&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;0&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;Syrinx Portal Site&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-small; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;0&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Hidden&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;FALSE&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;ImageUrl&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;/_layouts/1033/images/template_corp_intranet.png&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;This site is the definition of the Syrinx Portal collection.&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;ProvisionAssembly&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;ProvisionClass&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;Microsoft.SharePoint.Publishing.PortalProvisioningProvider&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;ProvisionData&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;SiteTemplates\\WebManifest\\PortalWebManifest.xml&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;RootWebOnly&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;TRUE&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;DisplayCategory&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;Syrinx&lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;/span&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;Template&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
The attributes of interest are the&amp;nbsp;&lt;strong&gt;ProvisionAssembly, ProvisionClass&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;ProvisionData&lt;/strong&gt;. When creating a Portal site the class specified by the ProvisionClass attribute is called in the assembly specified by the ProvisionAssembly. The class is passed the value of the ProvisionData attribute as a parameter. Microsoft provides an implementation of a Provisioning Class. The Microsoft Provisioning Class (MPC) is used to create a Portal Site.&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
The MPC expects the ProvisionData value to be the path to an XML file, which contains instructions on the sites to create as part of the Portal Definition. This methodology is used to create the Publishing Site, which creates several sub sites. By looking in the PortalWebManifest.xml file specified above, it can be seen that four sites are created, News, Site Directory, Search Center, and Document center. Below is a sample Syrinx Portal Provisioning Data XML file.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;portal&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;PortalTemplate.xsd&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;web&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Syrinx Root&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;siteDefinition&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;SPPR#0&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;displayName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Syrinx Portal Display Name&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Syrinx Watch Portal Description&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;webs&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;web&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;NorthEast&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;siteDefinition&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;SPRegion#0&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;displayName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;North East&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;North East Site Description&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;webs&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;web&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Massachusetts&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;siteDefinition&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;SPState#0&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;displayName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Massachusetts&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Massachusetts Site Description&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;webs&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;web&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;web&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;SouthEast&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;siteDefinition&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;SPRegion#0&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;displayName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;South West&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;South West Site Description&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;webs&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;web&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;;&quot;&gt;portal&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
This file declares the top-level site that is to be created, and it uses the SPPR#0 site definition. This is a reference back into the webtemp files; it is referencing a site definition template called “SPPR” and from that definition use configuration “0”, the display name and description of the root level site are overwritten by the values entered by the user when the site is created.&amp;nbsp; Nested below this site, are two child sites that use configuration 0 from the SPRegion site definition, the North East and South East regional sites. Below the North East regional site is a sub site called Massachusetts, which uses configuration 0 from the SPState site definition.&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ONET.XML FILE&lt;/span&gt;&lt;/strong&gt;The onet.xml file contains the actual site definition and is broken in to several sections, navigational areas, list templates, document templates, configurations, modules, components, and server e-mail footer. The MSDN documentation provides an good reference on the structure and contents of an onet.xml file (see&lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/ms474369.aspx&quot; style=&quot;color: #dd4a21;&quot;&gt;http://msdn2.microsoft.com/en-us/library/ms474369.aspx&lt;/a&gt;). The best way to create a new onet.xml file is to copy one from the site templates directory which is close to what you need and then modify it to suit your needs. Below is an overview of the sections within the onet.xml file.&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
Click here for &lt;a href=&quot;http://blogs.msdn.com/b/syedi/archive/2009/12/04/custom-site-definition-for-collaboration-portal-template-sharepoint-2007-wow-moss.aspx&quot; target=&quot;_blank&quot;&gt;more details&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/1731086583975661090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/site-defination-and-its-component.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/1731086583975661090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/1731086583975661090'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/site-defination-and-its-component.html' title='Site Defination and its component'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-QcJCnvmKHTHWjQZWPWBWtZPPjRnEZM4yBVgVb5E5KxoSxHpFm6TuG2mNItdYm0T96N-n13raj0_YG3oiETEknPWwkM8sQtqx8EDgLr7gE7uQ9eK_0H9j2I6UkooaydOCW6IS1oXwyKM/s72-c/Webtempfiles.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-9120922770080775259</id><published>2012-03-13T07:36:00.000-07:00</published><updated>2012-03-13T07:36:10.279-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Correct way to iterate through SpList"/><category scheme="http://www.blogger.com/atom/ns#" term="Find SpListItem from SpList"/><category scheme="http://www.blogger.com/atom/ns#" term="iterate through SpList"/><title type='text'>The wrong way to iterate through SharePoint SPList Items</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
Lets start by looking at a code snippet that can be used in a WebPart to access the first 100 items&amp;nbsp;from the SharePoint list of the current context:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #505050; font-size: 0.9em; line-height: 16px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 489px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;SPList&lt;/a&gt; activeList = &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontext.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;SPContext&lt;/a&gt;.Current.List;
&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;for&lt;/span&gt;(&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;int &lt;/span&gt;i=0;i&amp;lt;100 &amp;amp;&amp;amp; i&amp;lt;activeList.Items.Count;i++) {
&amp;nbsp; &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;SPListItem&lt;/a&gt; listItem = activeList.Items[i];
&amp;nbsp; htmlWriter.Write(listItem[&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&quot;Title&quot;&lt;/span&gt;]);
}&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
Assuming that there are at least 100 items in the list. How many roundtrips to the database is this code going to make in order to retrieve the 100 Title’s of the first 100 SharePoint list items? You might be surprised. Its a total of 200 database calls as you can see from the&amp;nbsp;&lt;a href=&quot;http://www.dynatrace.com/en/DiagnoseDatabase.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;dynaTrace Database Diagnosis&quot;&gt;database view&amp;nbsp;&lt;/a&gt;when analyzing the transaction executing the above code:&lt;/div&gt;
&lt;div class=&quot;wp-caption alignnone&quot; id=&quot;attachment_264&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 100%; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 610px;&quot;&gt;
&lt;a href=&quot;http://cdn.dynatrace.com/blog/wp-content/sharepoint_iterate_listcollection_db.png&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://cdn.dynatrace.com/blog/wp-content/sharepoint_iterate_listcollection_db.png&quot; rel=&quot;lightbox&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;200 SQL Statements get executed when iterating through SPList.Items&quot; class=&quot;size-medium wp-image-264&quot; height=&quot;34&quot; src=&quot;http://cdn.dynatrace.com/blog/wp-content/sharepoint_iterate_listcollection_db-600x34.png&quot; style=&quot;border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-color: initial; border-image: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-style: initial; border-top-style: none; border-top-width: 0px; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 100%; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;wp-caption-text&quot; style=&quot;font-size: 0.9em; font-weight: bold; margin-left: auto; margin-right: auto; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
200 SQL Statements get executed when iterating through SPList.Items&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
The reason for that is because in every loop we request a new&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemcollection.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;SPListItemCollection&lt;/a&gt;object when accessing the Items property. The&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.items.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Items&amp;nbsp;&lt;/a&gt;property is not cached and therefore always requests all items from the database again. Here is how the first loop iterations look like in the&amp;nbsp;&lt;a href=&quot;http://dynatrace.com/en/purepath_technology.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;dynaTrace PurePath Technology&quot;&gt;PurePath&lt;/a&gt;:&lt;/div&gt;
&lt;div class=&quot;wp-caption alignnone&quot; id=&quot;attachment_265&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 100%; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 610px;&quot;&gt;
&lt;a href=&quot;http://cdn.dynatrace.com/blog/wp-content/sharepoint_iterate_listcollection_purepath.png&quot; rel=&quot;lightbox&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;Every access to the Items property executes the same SQL statement again&quot; class=&quot;size-medium wp-image-265&quot; height=&quot;233&quot; src=&quot;http://cdn.dynatrace.com/blog/wp-content/sharepoint_iterate_listcollection_purepath-600x233.png&quot; style=&quot;border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-color: initial; border-image: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-style: initial; border-top-style: none; border-top-width: 0px; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 100%; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;wp-caption-text&quot; style=&quot;font-size: 0.9em; font-weight: bold; margin-left: auto; margin-right: auto; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
Every access to the Items property executes the same SQL statement again&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;The&amp;nbsp;CORRECT way to do it&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
The&amp;nbsp;correct way to do it is of course to store the Items property return value in a SPListItemCollection variable. With this the database is only queried once and we will then iterate over the result set that is stored within the collection object. Here is the changed sample code:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #505050; font-size: 0.9em; line-height: 16px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 489px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms998322.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;SPListItemCollection &lt;/a&gt;items = &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontext.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;SPContext&lt;/a&gt;.Current.List.Items;
&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;for&lt;/span&gt;(&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;int &lt;/span&gt;i=0;i&amp;lt;100 &amp;amp;&amp;amp; i&amp;lt;items.Count;i++) {
&amp;nbsp; &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;SPListItem&lt;/a&gt; listItem = items[i];
&amp;nbsp; htmlWriter.Write(listItem[&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&quot;Title&quot;&lt;/span&gt;]);
}&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
Resulting in the following PurePath.&lt;/div&gt;
&lt;div class=&quot;wp-caption alignnone&quot; id=&quot;attachment_266&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 100%; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 610px;&quot;&gt;
&lt;a href=&quot;http://cdn.dynatrace.com/blog/wp-content/sharepoint_iterate_listcollectionex_purepath.png&quot; rel=&quot;lightbox&quot; style=&quot;color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: invert; outline-style: none; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;Storing the Items property in a variable elminiates 99.5% of the database calls&quot; class=&quot;size-medium wp-image-266&quot; height=&quot;189&quot; src=&quot;http://cdn.dynatrace.com/blog/wp-content/sharepoint_iterate_listcollectionex_purepath-600x189.png&quot; style=&quot;border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-color: initial; border-image: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-style: initial; border-top-style: none; border-top-width: 0px; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 100%; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;wp-caption-text&quot; style=&quot;font-size: 0.9em; font-weight: bold; margin-left: auto; margin-right: auto; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
Storing the Items property in a variable elminiates 99.5% of the database calls&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Conclusion&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
Many properties in SharePoint return new object instances every time you access them. In order to build good software based on the Microsoft SharePoint Platform its necessary to understand what is going on under the hood. This will eliminate “surprises” once your custom code is first executed with real life data.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #505050; font-family: &#39;helvetica neue&#39;, helvetica, arial, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 20px; padding-top: 5px;&quot;&gt;
There are additional ways to optimize access to data stored in SharePoint lists. I will cover that in my next posts.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/9120922770080775259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/wrong-way-to-iterate-through-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/9120922770080775259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/9120922770080775259'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/wrong-way-to-iterate-through-sharepoint.html' title='The wrong way to iterate through SharePoint SPList Items'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-9022593335667873720</id><published>2012-03-13T07:03:00.000-07:00</published><updated>2012-03-14T01:23:56.160-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Add item to splist"/><category scheme="http://www.blogger.com/atom/ns#" term="SPList.Items.Add"/><category scheme="http://www.blogger.com/atom/ns#" term="Update SpList"/><title type='text'>Add item to splist</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is the code snippet:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using(SpSite site=new SPSite(&quot;Server&quot;))&lt;br /&gt;
{&lt;br /&gt;
using(SpWeb web=site.OpenWeb())&lt;br /&gt;
{&lt;br /&gt;
SpList list=web.Lists[&quot;ListName&quot;];&lt;br /&gt;
SpListItem item=&lt;span style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px; text-align: -webkit-auto;&quot;&gt;list.Items.Add();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px;&quot;&gt;item[&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px;&quot;&gt;&quot;Title&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px;&quot;&gt;] = &quot;testTitle&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #333333; font-size: 15px; line-height: 20px;&quot;&gt;item[&quot;Description&quot;]=&quot;test&quot;;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px;&quot;&gt;item.Update();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Enjoy&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/9022593335667873720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/add-item-to-splist.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/9022593335667873720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/9022593335667873720'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/add-item-to-splist.html' title='Add item to splist'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-7426932413097562721</id><published>2012-03-13T05:36:00.000-07:00</published><updated>2012-03-13T05:36:07.579-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Access error"/><category scheme="http://www.blogger.com/atom/ns#" term="RunWithElevatedPrivileges"/><category scheme="http://www.blogger.com/atom/ns#" term="SPSecurity.RunWithElevatedPrivileges"/><category scheme="http://www.blogger.com/atom/ns#" term="When should I use SPSecurity.RunWithElevatedPrivileges?"/><title type='text'>When should I use SPSecurity.RunWithElevatedPrivileges?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It is very importent to understand why and when to use SPSecurity.RunwithElevatedPrivilages.When we want to retrive&amp;nbsp;or update the data where a normal user don&#39;t have permission,there we use this code segment. How this exactly works is like&amp;nbsp;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;SPSecurity.RunWithElevatedPrivileges runs current process under application pool identity and it allows users to add/update item in list,library or site.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;Example&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;background-color: white; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;background-color: white; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;SPSecurity.RunWithElevatedPrivileges(&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;delegate&lt;/span&gt;()
{
    &lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; (SPSite site = &lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; SPSite(web.Site.ID))
    {


      &lt;span class=&quot;rem&quot; style=&quot;color: green;&quot;&gt;// site will be based on the rights for the system account&lt;/span&gt;

    }

});&lt;/pre&gt;
&lt;br /&gt;
&lt;h1 style=&quot;background-color: white; border-bottom-style: none; border-color: initial; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-style: initial; border-top-style: none; border-width: initial; clear: both; color: #3a3e43; font-family: &#39;Segoe UI Semibold&#39;, &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 1.75em; line-height: 27px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/h1&gt;
&lt;div&gt;
For more details &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx&quot; target=&quot;_blank&quot;&gt;click here&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/7426932413097562721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/when-should-i-use-spsecurityrunwithelev.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/7426932413097562721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/7426932413097562721'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/when-should-i-use-spsecurityrunwithelev.html' title='When should I use SPSecurity.RunWithElevatedPrivileges?'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-4986636644236204076</id><published>2012-03-13T05:26:00.000-07:00</published><updated>2012-03-13T05:26:11.792-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Base Class"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint WeBpart base class"/><category scheme="http://www.blogger.com/atom/ns#" term="Super Class for WebPart"/><category scheme="http://www.blogger.com/atom/ns#" term="WebPart Base Classes"/><title type='text'>Base class used while creating a webpart</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There are two base classes which are going to be consumed by sharepoint can inherit from, either the sharepoint base class or ASP.NET2.0 Webpart base class.When inheriting from sharepoint base class your derived webpart will inherit from Microsoft.Sharepoint.WebPartPages.WebPart base class. When ingeriting from ASP.Net 2.0 webpart base class, your derived webpart will use System.Web.UI.WebControls.WebParts.WebPart . It is preferable to use ASP.NET base class as old base class is meant of backward compatibility &amp;nbsp;with previous version of sharepoint.However there are four exception when it is better to leaverage functionality from sharepoint webpart base class.&lt;br /&gt;
These are the scenarios:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Cross Page connection.&lt;/li&gt;
&lt;li&gt;Connection between webpart that are outside webpart zone.&lt;/li&gt;
&lt;li&gt;Client side conection.&lt;/li&gt;
&lt;li&gt;data-cachieng infrastructure&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
for any further detail,you can post your query.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/4986636644236204076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/base-class-used-while-creating-webpart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/4986636644236204076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/4986636644236204076'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/base-class-used-while-creating-webpart.html' title='Base class used while creating a webpart'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-2998830435088299121</id><published>2012-03-12T07:00:00.000-07:00</published><updated>2012-03-12T07:00:35.763-07:00</updated><title type='text'>Sharepoint 2010 enhancements</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Sharepoint 2010 is very dynamic and more user friendly portal.&lt;br /&gt;
&lt;br /&gt;
User interface:Microsoft has worked very hard on this control.This makes easy access to your need on List,Library or pages.For details &lt;a href=&quot;http://www.etechplanet.com/blog/sharepoint-2010-explore-new-features-and-enhancements-part1.aspx&quot;&gt;click here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Developer view: from developer point of view also this has enlarged on very large scale.Like we have more classes,Web Parts and sevices.For more details click &lt;a href=&quot;http://msdn.microsoft.com/en-us/sharepoint/ee514561&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/2998830435088299121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/sharepoint-2010-enhancements.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2998830435088299121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2998830435088299121'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2012/03/sharepoint-2010-enhancements.html' title='Sharepoint 2010 enhancements'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-2990470444908321183</id><published>2011-12-15T04:26:00.000-08:00</published><updated>2011-12-15T04:26:23.769-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical-sharepoint 2010"/><title type='text'>Use the SharePoint 2010 Managed MetaData Service?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;In Sharepoint 2007 content type globalization was not possible.Content Type Globalization means we create content type in one site collection and we can use this content type in other site collection just by following small steps.&lt;br /&gt;
For detail information look &lt;a href=&quot;http://technet.microsoft.com/en-us/sharepoint/ff394027&quot;&gt;This Video&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/2990470444908321183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2011/12/use-sharepoint-2010-managed-metadata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2990470444908321183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/2990470444908321183'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2011/12/use-sharepoint-2010-managed-metadata.html' title='Use the SharePoint 2010 Managed MetaData Service?'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8594182367029594821.post-5255899865665992151</id><published>2011-09-06T07:19:00.000-07:00</published><updated>2011-09-06T07:19:12.683-07:00</updated><title type='text'>Rypple Lets You Reward Employees On Big Screen</title><content type='html'>&lt;a href=&quot;http://www.informationweek.com/thebrainyard/news/activity_streams/231600746/rypple-lets-you-reward-employees-on-big-screen#.TmYrzPjPaX0.blogger&quot;&gt;Rypple Lets You Reward Employees On Big Screen&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowledgegrip.blogspot.com/feeds/5255899865665992151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://knowledgegrip.blogspot.com/2011/09/rypple-lets-you-reward-employees-on-big.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/5255899865665992151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8594182367029594821/posts/default/5255899865665992151'/><link rel='alternate' type='text/html' href='http://knowledgegrip.blogspot.com/2011/09/rypple-lets-you-reward-employees-on-big.html' title='Rypple Lets You Reward Employees On Big Screen'/><author><name>Hirwani Jain</name><uri>http://www.blogger.com/profile/05263579517691894009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>