<?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: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-6956179292443405618</id><updated>2011-10-11T10:24:44.859+05:30</updated><category term='Common'/><category term='Publishing features'/><category term='User Controls'/><category term='SPQuery'/><category term='SharePoint Interview Questions'/><category term='Sharepoint WebServices'/><category term='PDF Ifilter'/><category term='WorkArounds'/><category term='Infopath'/><category term='Code Samples'/><category term='Workflows'/><category term='Sharepoint 2010'/><title type='text'>Share Point  Conclave</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-4844376018390371302</id><published>2011-03-23T15:49:00.000+05:30</published><updated>2011-03-23T15:49:24.327+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common'/><title type='text'>Sharepoint List Template Id's</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;The following are values for the default list template types&lt;br /&gt;100 Generic list&lt;br /&gt;101 Document library&lt;br /&gt;102 Survey&lt;br /&gt;103 Links list&lt;br /&gt;104 Announcements list&lt;br /&gt;105 Contacts list&lt;br /&gt;106 Events list&lt;br /&gt;107 Tasks list&lt;br /&gt;108 Discussion board&lt;br /&gt;109 Picture library&lt;br /&gt;110 Data sources&lt;br /&gt;111 Site template gallery&lt;br /&gt;112 User Information list&lt;br /&gt;113 Web Part gallery&lt;br /&gt;114 List template gallery&lt;br /&gt;115 XML Form library&lt;br /&gt;116 Master pages gallery&lt;br /&gt;117 No-Code Workflows&lt;br /&gt;118 Custom Workflow Process&lt;br /&gt;119 Wiki Page library&lt;br /&gt;120 Custom grid for a list&lt;br /&gt;130 Data Connection library&lt;br /&gt;140 Workflow History&lt;br /&gt;150 Gantt Tasks list&lt;br /&gt;200 Meeting Series list&lt;br /&gt;201 Meeting Agenda list&lt;br /&gt;202 Meeting Attendees list&lt;br /&gt;204 Meeting Decisions list&lt;br /&gt;207 Meeting Objectives list&lt;br /&gt;210 Meeting text box&lt;br /&gt;211 Meeting Things To Bring list&lt;br /&gt;212 Meeting Workspace Pages list&lt;br /&gt;300 Portal Sites list&lt;br /&gt;301 Blog Posts list&lt;br /&gt;302 Blog Comments list&lt;br /&gt;303 Blog Categories list&lt;br /&gt;850 Page Library&lt;br /&gt;1100 Issue tracking&lt;br /&gt;1200 Administrator tasks list&lt;br /&gt;2002 Personal document library&lt;br /&gt;2003 Private document library&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-4844376018390371302?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/4844376018390371302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/sharepoint-list-template-ids.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/4844376018390371302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/4844376018390371302'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/sharepoint-list-template-ids.html' title='Sharepoint List Template Id&apos;s'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-7097037043314016045</id><published>2011-03-23T15:45:00.002+05:30</published><updated>2011-03-23T15:50:50.704+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='WorkArounds'/><title type='text'>The Web Application at could not be found. Verify that you have typed the URL correctly</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;When running some C# code containing a reference to SPSite ie&lt;br /&gt;&lt;div class="syntaxhighlighter " id="highlighter_430635"&gt;&lt;div class="bar"&gt;&lt;div class="toolbar"&gt;&lt;a class="item viewSource" href="http://www.petestilgoe.com/tag/sharepoint/#viewSource" style="height: 16px; width: 16px;" title="view source"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="lines"&gt;&lt;div class="line alt1"&gt;&lt;code class="number"&gt;&lt;/code&gt;&lt;span class="content"&gt;&lt;span class="block" style="margin-left: 0px ! important;"&gt;&lt;code class="plain"&gt;string siteUrl = &lt;/code&gt;&lt;code class="string"&gt;"http://&lt;server name=""&gt;&lt;servername&gt;servername/"&lt;/servername&gt;&lt;/server&gt;&lt;/code&gt;&lt;code class="plain"&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2"&gt;&lt;code class="number"&gt;&lt;/code&gt;&lt;span class="content"&gt;&lt;span class="block" style="margin-left: 0px ! important;"&gt;&lt;code class="plain"&gt;using (SPSite spSite = &lt;/code&gt;&lt;code class="keyword"&gt;new&lt;/code&gt; &lt;code class="plain"&gt;SPSite(siteUrl))&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;I was getting the following error:&lt;br /&gt;&lt;br /&gt;The Web Application at could not be found. Verify that you have typed  the URL correctly. If the URL should be serving existing content, the  system administrator may need to add a new request URL mapping to the  intended application.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Solution:&lt;/b&gt; Go to Project Properties -&amp;gt; Build -&amp;gt; Target Platform -&amp;gt; Make it Any CPU (default is x86)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-7097037043314016045?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/7097037043314016045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/web-application-at-could-not-be-found.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/7097037043314016045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/7097037043314016045'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/web-application-at-could-not-be-found.html' title='The Web Application at could not be found. Verify that you have typed the URL correctly'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-6562380183364239068</id><published>2011-03-23T15:42:00.003+05:30</published><updated>2011-03-23T15:51:21.137+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common'/><title type='text'>How to delete a corrupted Sharepoint list</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Sometime you will find you have a currupted list that you cant delete  through the normal way as when you try &amp;amp; access the list or the  list settings the webpage throws errors.&lt;br /&gt;In this case use STSADM&lt;br /&gt;&lt;pre class="brush: php"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="brush: php"&gt;stsadm.exe -o forcedeletelist -url http://servername&lt;servername&gt;/Lists/&lt;mylistname&gt;/&lt;/mylistname&gt;&lt;/servername&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-6562380183364239068?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/6562380183364239068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/how-to-delete-corrupted-sharepoint-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/6562380183364239068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/6562380183364239068'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/how-to-delete-corrupted-sharepoint-list.html' title='How to delete a corrupted Sharepoint list'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-7929052315248887506</id><published>2011-03-23T15:41:00.002+05:30</published><updated>2011-03-23T15:43:12.647+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common'/><title type='text'>How to embed a powerpoint presentation into a Sharepoint page</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Open a PowerPoint File&lt;br /&gt;Save As &amp;gt; Other Formats &amp;gt; Save as type Single File Web Page&lt;br /&gt;Upload the .mht file to a document library&lt;br /&gt;Add a Page Viewer WebPart to a Page&lt;br /&gt;Point the Page Viewer WebPart URL to the .mht file of that document library.&lt;br /&gt;Now you can view your presentation in the webpart.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-7929052315248887506?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/7929052315248887506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/how-to-embed-powerpoint-presentation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/7929052315248887506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/7929052315248887506'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/how-to-embed-powerpoint-presentation.html' title='How to embed a powerpoint presentation into a Sharepoint page'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-6490403397220348214</id><published>2011-03-23T15:38:00.003+05:30</published><updated>2011-03-23T15:39:49.166+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common'/><title type='text'>Converting a Sharepoint List into XML</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;This easiest way is to use the URL below &amp;amp; insert your list GUID&lt;br /&gt;http://servername/site/_vti_bin/owssvr.dll?Cmd=Display&amp;amp;List=*YOURUNIQUELISTID*&amp;amp;XMLDATA=TRUE&lt;br /&gt;To get the GUID of the list you need to go into the list &amp;amp; click  ‘Settings’ -&amp;gt; ‘List Settings’.&lt;br /&gt;Now if you look at your URL you will  see something like:&lt;br /&gt;/_layouts/listedit.aspx?List=%7B7B476F98%2D1075%2D4A6D%2D8F63%2D4C754B3F41FC%7D&lt;br /&gt;&lt;br /&gt;The URL is encoded so you will need to replace “%7B” with “{” and  “%7D” with “}” and “%2D” with “-” so the end result would look something  like: {7B476F98-1075-4A6D-8F63-4C754B3F41FC}&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-6490403397220348214?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/6490403397220348214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/converting-sharepoint-list-into-xml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/6490403397220348214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/6490403397220348214'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/converting-sharepoint-list-into-xml.html' title='Converting a Sharepoint List into XML'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-3176095288588154419</id><published>2011-03-23T15:36:00.000+05:30</published><updated>2011-03-23T15:36:51.860+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common'/><title type='text'>Enable anonymous access on a Sharepoint site</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To perform this procedure, an administrator must have enabled  anonymous access for the Web application. If they haven’t done so, the  Anonymous Access option does not appear.&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;Open the site on which you want to enable anonymous access.&lt;/li&gt;&lt;li&gt; On the Site Actions menu , click Site Settings.&lt;/li&gt;&lt;/ol&gt;&lt;b&gt;Note:&lt;/b&gt; On a site for which the Site Actions menu is customized, point  to Site Settings, and then click the settings that you want to view.&lt;br /&gt;&lt;br /&gt;On the Site Settings page, in the Users and Permissions column, click Advanced permissions.&lt;br /&gt;On the Permissions page, on the Settings menu, click Anonymous Access.&lt;br /&gt;On the Change Anonymous Access Settings page, select the parts of your Web site that you want anonymous users to access. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-3176095288588154419?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/3176095288588154419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/enable-anonymous-access-on-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3176095288588154419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3176095288588154419'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/enable-anonymous-access-on-sharepoint.html' title='Enable anonymous access on a Sharepoint site'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-8564548516446531151</id><published>2011-03-23T15:33:00.001+05:30</published><updated>2011-03-23T15:34:25.844+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common'/><title type='text'>Common Sharepoint Error codes</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;401 errors&lt;/b&gt; – These are generally access related.&lt;br /&gt;401;1               Unauthorized access because the logon has failed&lt;br /&gt;401;2               Unauthorized access because the logon has failed due to the server configuration&lt;br /&gt;401;3               Unauthorized access because of an Access Control List (ACL) entry&lt;br /&gt;401;4               Unauthorized access because an IIS filter is blocking access&lt;br /&gt;401;5               Unauthorized access because of an ISAPI or CGI application&lt;br /&gt;&lt;br /&gt;&lt;b&gt;403 errors&lt;/b&gt; – These are security related also.&lt;br /&gt;403;1               Forbidden because execute access isn’t allowed&lt;br /&gt;403;2               Forbidden because read access isn’t allowed&lt;br /&gt;403;3               Forbidden because write access isn’t allowed&lt;br /&gt;403;4               Forbidden because SSL use is required&lt;br /&gt;403;5               Forbidden because 128 bit SSL use is required&lt;br /&gt;403;6               Forbidden because the IP address was rejected&lt;br /&gt;403;7               Forbidden because a client certificate is required&lt;br /&gt;403;8               Forbidden because access to the site is denied&lt;br /&gt;403;9               Forbidden because too many users are presently attached to the site&lt;br /&gt;403;10             Forbidden because of an invalid configuration&lt;br /&gt;403;11             Forbidden because of an invalid password&lt;br /&gt;403;12             Forbidden because the Web site requires a valid client certificate&lt;br /&gt;403;13             Forbidden because the client certificate was revoked&lt;br /&gt;403;14             Forbidden because the directory listing is denied&lt;br /&gt;403;15             Forbidden because client access license count was exceeded&lt;br /&gt;403;16             Forbidden because the client access certificate is invalid or untrusted&lt;br /&gt;403;17             Forbidden because the client access certificate is expired or is not yet valid&lt;br /&gt;&lt;br /&gt;&lt;b&gt;424 Errors&lt;/b&gt;&lt;br /&gt;424 errors normally show up when an application protection level is  set too high. To cure this on your IIS server goto the web application,  select the Properties Virtual Directory tab &amp;amp; set the Application  Protection to Low (IIS Process).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;500 Error&lt;/b&gt;&lt;br /&gt;This is a generic internal error on the IIS server.  A common cause  of this error in a Sharepoint environment is that Check That File Exists  check box in the Internet Service Manager is checked so check here  first!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;503 Error&lt;/b&gt;&lt;br /&gt;This means a service has stopped running or hung, check in Event Viewer on the server to see which one is causing the problem.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-8564548516446531151?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/8564548516446531151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/common-sharepoint-error-codes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/8564548516446531151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/8564548516446531151'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/common-sharepoint-error-codes.html' title='Common Sharepoint Error codes'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-5552106251527581290</id><published>2011-03-23T15:04:00.005+05:30</published><updated>2011-04-19T18:36:52.598+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='WorkArounds'/><title type='text'>Common error situation when using backup/restore to transfer a database to a new farm on MOSS 2007</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;When  moving a database with backup/restore between different web farms the  URL from the Publishing Pages to the PageLayout often contains the  server name of the original farm.&lt;/span&gt;&lt;br /&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;&amp;nbsp;&lt;/span&gt; For Example:&lt;br /&gt;A customer creates a backup of a content database on one server farm (e.g.  using STSADM -o backup or a DB backup in SQL) and restores the backup  on a different farm and attaches the content database to a web  application.&lt;br /&gt;After this operation is done several operations (like variations and  content deployment) fail to work with the following exception:&lt;br /&gt;&lt;span style="color: red;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;System.ArgumentException. Value does not fall within the expected range.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;at   Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String  bstrUrl, Int32 METADATAFLAGS, Guid&amp;amp; pgListId, Int32&amp;amp; plItemId,  Int32&amp;amp; plType, Object&amp;amp; pvarFileOrFolder)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;at  Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl,  Int32 METADATAFLAGS, Guid&amp;amp; pgListId, Int32&amp;amp; plItemId,  Int32&amp;amp; plType, Object&amp;amp; pvarFileOrFolder)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;at  Microsoft.SharePoint.SPWeb.GetMetadataForUrl(String relUrl, Int32  mondoProcHint, Guid&amp;amp; listId, Int32&amp;amp; itemId, Int32&amp;amp;  typeOfObject, Object&amp;amp; fileOrFolder)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;at Microsoft.SharePoint.SPWeb.GetFileOrFolderObject(String strUrl)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;at Microsoft.SharePoint.Publishing.CommonUtilities.GetFileFromUrl(String url, SPWeb web)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;...&lt;/span&gt;&lt;/blockquote&gt;The reason for this problem is that backup/restore does not adjust  the references from the publishing page objects&amp;nbsp;in the Pages library to  their Page Layouts. These URLs are sometimes stored as absolute URLs  including the server name. And this server name is the server name of  the old server farm which cannot be resolved on the new farm.&lt;br /&gt;&lt;span style="color: green;"&gt; &lt;i&gt;&lt;b&gt;Be aware that backup/restore of MOSS content databases  between server farms are not fully supported! Official documentation of  this support limitation is currently in the works. &lt;/b&gt;&lt;b&gt;The  supported way to transfer content between server farms is to use STSADM  -o export/import or content deployment. Backup/restore is only supported  for the same server farm.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt; In case that you have run into the above problem you have two options:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Throw away the database and transfer it correctly using STSADM -o export/import or content deployment&lt;/li&gt;&lt;li&gt;Fix the incorrect links manually using the following steps&lt;/li&gt;&lt;ol type="a"&gt;&lt;li&gt;Open the web in SharePoint Designer&lt;/li&gt;&lt;li&gt;On the “task panes” window, pick hyperlinks.&lt;/li&gt;&lt;li&gt;For the “hyperlink” heading, click the arrow and pick (custom…)&lt;/li&gt;&lt;li&gt;In the dialog, ask to show rows where the hyperlink begins with a URLs which are not valid on the current server farm&lt;/li&gt;&lt;li&gt;For each of the files, right click and say “Edit hyperlink…” and  Replace hyperlink with the hyper link that is valid on the current  server farm&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;This tool allows to correct this problem.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;To build this tool you need to&lt;br /&gt;- create a new C# console application project in VS.NET with name "FixPageLayout"&lt;br /&gt;- replace the .cs file with the FixPageLayout.cs file included in this download&lt;br /&gt;- add references to Microsoft.SharePoint.dll and Microsoft.SharePoint.Publishing.dll&lt;br /&gt;- build the project&lt;br /&gt;Syntax to use the tool:&lt;br /&gt;&lt;b&gt; FixPageLayout.exe &lt;url-to-sitecollection&gt;&amp;nbsp; [&lt;/url-to-sitecollection&gt;&lt;/b&gt;&lt;/span&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;url-to-sitecollection&lt;/span&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;&lt;url-to-sitecollection&gt; &lt;/url-to-sitecollection&gt;&lt;/span&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;&lt;b&gt;&lt;url-to-sitecollection&gt;]&lt;/url-to-sitecollection&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;Code:&lt;/span&gt;&lt;br /&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;///&lt;br /&gt;///&amp;nbsp; This source code is freeware and is provided on an "as is" basis without warranties of any kind, &lt;br /&gt;///&amp;nbsp; whether express or implied, including without limitation warranties that the code is free of defect, &lt;br /&gt;///&amp;nbsp; fit for a particular purpose or non-infringing.&amp;nbsp; The entire risk as to the quality and performance of &lt;br /&gt;///&amp;nbsp; the code is with the end user.&lt;br /&gt;///&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Text;&lt;br /&gt;using Microsoft.SharePoint;&lt;br /&gt;using Microsoft.SharePoint.Publishing;&lt;br /&gt;&lt;br /&gt;namespace FixLayouts&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class FixPageLayout&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const string USAGE = "Usage: FixPageLayout.exe &lt;url-to-sitecollection&gt;";&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const string MASTER_PAGE_LIB = "_catalogs/masterpage";&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static void Main(string[] args)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (args.Length &amp;lt; 1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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; Console.WriteLine(USAGE);&lt;br /&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; return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string SiteCollectionUrl = args[0];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!Uri.IsWellFormedUriString(SiteCollectionUrl, UriKind.Absolute))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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; Console.WriteLine(USAGE);&lt;br /&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; return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;br /&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; // get the site collection&lt;br /&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; using (SPSite site = new SPSite(SiteCollectionUrl))&lt;br /&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; {&lt;br /&gt;&lt;br /&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; // get the servername from RootWeb as it should be&lt;br /&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; using (SPWeb RootWeb = site.RootWeb)&lt;br /&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; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; SiteCollectionUrl = RootWeb.Url.ToLower();&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!SiteCollectionUrl.EndsWith("/"))&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SiteCollectionUrl += "/";&lt;br /&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; }&lt;br /&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; // check each site in the site collection&lt;br /&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; foreach (SPWeb web in site.AllWebs)&lt;br /&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; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // check if the site is a publishing site&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (PublishingWeb.IsPublishingWeb(web))&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PublishingWeb pubWeb = PublishingWeb.GetPublishingWeb(web);&lt;br /&gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // check each Publishing page in the current publishing site&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (PublishingPage page in pubWeb.GetPublishingPages())&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&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; // retrieve the page layout of the publishing page&lt;br /&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;&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; string pageLayout = page.ListItem.Properties["PublishingPageLayout"] as string;&lt;br /&gt;&lt;br /&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;&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; // check for correct syntax of the page layout URL&lt;br /&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;&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; if (pageLayout != null)&lt;br /&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;&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; pageLayout = pageLayout.ToLower();&lt;br /&gt;&lt;br /&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;&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; if (String.IsNullOrEmpty(pageLayout))&lt;br /&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;&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;br /&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;&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; Console.WriteLine("Error: Page \"{0}\" does not have a Page Layout assigned.\n", page.Uri);&lt;br /&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;&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;br /&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;&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; else if (!pageLayout.Contains(MASTER_PAGE_LIB))&lt;br /&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;&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;br /&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;&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; Console.WriteLine("Error: The Page Layout {0} for Page \"{1}\" does not point to the masterpage document library.\n",&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageLayout, page.Uri);&lt;br /&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;&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;br /&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;&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; else if (!pageLayout.StartsWith(SiteCollectionUrl) &amp;amp;&amp;amp; pageLayout.StartsWith("http"))&lt;br /&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;&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;br /&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;&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; // here we have a page which has a page layout with different URL which we have to fix&lt;br /&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;&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; Console.WriteLine("Page {0} has incorrect PageLayout Url", page.Uri);&lt;br /&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;&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; Console.WriteLine("Old URL: {0}", pageLayout);&lt;br /&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;&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; string pageLayoutWithoutPrefix = pageLayout.Substring(pageLayout.IndexOf(MASTER_PAGE_LIB));&lt;br /&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;&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; string newPageLayout = SiteCollectionUrl + pageLayoutWithoutPrefix;&lt;br /&gt;&lt;br /&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;&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; // perform the update in a try/catch block to cover problems&lt;br /&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;&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; try&lt;br /&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;&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;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; int version = page.ListItem.File.MinorVersion;&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; page.CheckOut();&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; page.ListItem.Properties["PublishingPageLayout"] = newPageLayout;&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; page.ListItem.File.Properties["PublishingPageLayout"] = newPageLayout;&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; page.ListItem.Update();&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; page.CheckIn("PublishingPageLayout corrected");&lt;br /&gt;&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; //major version means that the item was published. Lets publish it again.&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (version == 0)&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; page.ListItem.File.Publish("PublishingPageLayout corrected");&lt;br /&gt;&lt;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("Fixed URL: {0}\n", newPageLayout);&lt;br /&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;&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;br /&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;&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; catch (Exception e)&lt;br /&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;&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;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("An error occurred while trying to fix the URL to the page layout:\n{0}", e);&lt;br /&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;&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;br /&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;&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;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }//if Publishing web&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // don't forget to dispose the SPWeb object&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; web.Dispose();&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&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; }&lt;br /&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; }//using SPSite&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (System.IO.FileNotFoundException ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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; Console.WriteLine("{0}", ex.Message);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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; Console.WriteLine("An error has occured: {0}", ex.Message);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/url-to-sitecollection&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-5552106251527581290?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/5552106251527581290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/common-error-situation-when-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/5552106251527581290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/5552106251527581290'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/common-error-situation-when-using.html' title='Common error situation when using backup/restore to transfer a database to a new farm on MOSS 2007'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-2333371643114644753</id><published>2011-03-23T14:53:00.001+05:30</published><updated>2011-03-23T14:55:19.450+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='WorkArounds'/><title type='text'>Activating Office SharePoint Server Publishing Infrastructure - Access Denied</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;To solve the ‘Access Denied’ problem you need to elevate the  permissions of the AppPool of the web application on which you are  trying to activate the Publishing Infrastructure feature.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;One&amp;nbsp;way to&amp;nbsp;achieve this is to temporarily change the AppPool of the web application…&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;1. Open IIS Admin.&lt;br /&gt;2. Location the Web Site for your WSS web application.&lt;br /&gt;3. Goto to the properties and select the ‘Home Directory’ tab.&lt;br /&gt;4. Change the AppPool to be the same as Central Administration.&lt;br /&gt;5. IISRESET&lt;br /&gt;6. Activate the Publishing Infrastructure feature on your site.&lt;br /&gt;7. Change to AppPool back to the original.&lt;br /&gt;8. IISRESET.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;This should allow you to enable the feature and use the publishing features within MOSS.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-2333371643114644753?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/2333371643114644753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/activating-office-sharepoint-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/2333371643114644753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/2333371643114644753'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2011/03/activating-office-sharepoint-server.html' title='Activating Office SharePoint Server Publishing Infrastructure - Access Denied'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-6918941527817134249</id><published>2010-10-15T13:04:00.003+05:30</published><updated>2010-10-15T13:09:02.495+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint 2010'/><title type='text'>New Features in Sharepoint 2010</title><content type='html'>&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;  &lt;br /&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;UI Design:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"&gt;Entire interface in SharePoint 2010 to be W3C XHTML compliant&lt;b&gt; &lt;/b&gt;&lt;/span&gt;  &lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&lt;/span&gt;SharePoint 2010 "more accessible mode" to be WCAG 2.0 AA compliant&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;New ribbon interface replaces toolbars and menus (and considerations for old "CustomAction" commands which may no longer work!)&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;  &lt;span style="font-size: small;"&gt;Wiki content allows web parts to be dropped in (removing over-reliance on web part zones) &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: small;"&gt;&lt;b style="font-family: Arial,Helvetica,sans-serif;"&gt;Lists:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;There are a whole load of new List capabilities (in addition to the "External List" that BCS brings to the plate!).&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&lt;/span&gt;Lookup to Multiple &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;span style="font-size: small;"&gt;This means that when you create a new lookup column, you can now pull down additional fields from the lookup list item and use them for filtering.&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;CAML support for Joins! &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;span style="font-size: small;"&gt;You can now perform "JOIN" operations in your CAML queries for linking lists together.&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Enforced List Relationships&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;span style="font-size: small;"&gt;You can now enforce specific relationships for lookup columns with two options:&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Restrict Delete - cannot delete parent if child items exist.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Cascade Delete - If you delete the parent, all child items are automatically deleted (recycle bin aware with "restore" options!)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Store-level enforcement&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;span style="font-size: small;"&gt;This is code level "required fields", so now you can enforce the requirements even through code !&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Unique Fields&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; margin-left: 27pt; text-indent: -0.25in; vertical-align: middle;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specify a unique field, so that no two values can match (e.g. Email addresses in contacts list)&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&lt;/span&gt;Compound Indices&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; If you want to query by 2 fields, you can now index both at once as a compound index.&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt; &amp;nbsp; &lt;/span&gt;&lt;in&gt; clause for reverse lookups&lt;/in&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;span style="font-size: small;"&gt;This allows a CAML query to do a reverse lookup to get all child items that are associated with the parent!&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt; &lt;/span&gt;Formula based validation&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;span style="font-size: small;"&gt;e.g. Don't allow Field2 to be lower than Field1.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Workflows:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"&gt;Out of the box SharePoint 2010 workflows can now be extended in SharePoint Designer 2010.&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;SharePoint Designer 2010 can be used to create "re-usable" workflows&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;Site Workflows - to manage processes across an entire site.&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;You can now import a SharePoint Designer 2010 workflow into Visual Studio 2010!&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;Import/Export workflow using Visio 2010 for visual workflow modelling.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Content &amp;amp; Document Management:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;"Document Sets" allow you to treat a group of documents as a single item (with 1 version history, group executed workflow and policy, and a "download as zip" option).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp; &lt;/span&gt;Managed Metadata Service&amp;nbsp; allows &lt;b&gt;cross-farm Content Type management &lt;/b&gt;and a pre-defined enterprise taxonomy structure! This is a killer-app, bringing true enterprise content management to SharePoint 2010.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Enterprise Wiki's allow more rapid "in edit" content, as well as Web Parts deployed directly into the rich text editor (no more web part zones?).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&lt;/span&gt;Spelling check and broken link check when you "check-in" WCM pages.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Event Handlers:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;Three new event handlers added&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;WebAdded - Fired every time a child site is created in the web.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;ListAdded - Fired every time a list is created in the web.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Feature Upgrading&amp;nbsp; - Fired when a feature has it's "upgrade" method called&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Security:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Editing of ASPX pages now required "Designer" permissions (instead of contribute).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;XSS (Cross Site Scripting) protection for pages and web parts.&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;HTML pages will now "force download" by default. This stops people from uploading HTML files with malicious scripts, so if you click on an HTML file in a document library you will get a download dialog instead of the file opening in the browser!&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;There are still no field level permissions &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="MsoNormal" style="margin-left: 27pt; text-indent: -0.25in; vertical-align: middle;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;BI and Connectivity:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;New Business Connectivity Services (BCS) allows no-code connections of databases and LOB systems to content types and lists with two-way synchronisation of data&amp;nbsp; and full CRUD support.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;BCS interactivity from within Office clients, allowing LOB system data to be edited directly from desktop applications (such as Outlook and Word).&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;PowerPivot for Excel allows upwards of 100 million rows into an excel workbook with phenominal performance.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Office Application Support&lt;/b&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;New web level services for applications (Excel / Visio with JavaScript events!)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;SharePoint Workspace to replace "Groove" for offline file support and editing.&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;Office Web Applications to allow for direct opening and &lt;b&gt;editing&lt;/b&gt; of documents from within the browser!&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;InfoPath 2010 can now be used to edit the List forms out of the box!&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;b&gt;Databases:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Still a 100GB "limit" for content databases.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;Still cannot have site collections spanning multiple databases.&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;New support for "Failover" databases, SharePoint 2010 is now SQL mirror aware!&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;All "Service Applications" have their own SQL database, along with many other new databases (e.g. Feed Activity, Social Data, Usage Logs).&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;New "read only content databases" open the door for simple content deployment (utilising SQL log shipping or database replication).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Content Deployment:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;All execution now in Timer Jobs.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt; &lt;/span&gt;Performance (and memory usage) improved.&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Export routine now creates database snapshot to improve data integrity!&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;Sandboxed Solutions:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Ability to upload WSPs directly into the content database to execute in minimal permissions using "virtual files" (no impact on the file system!)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt; &lt;/span&gt;Resource throttling, code performance checking and "bad routine" blocking&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Provides new best practice for code development and deployment!&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b style="font-family: Arial,Helvetica,sans-serif;"&gt;Search:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;New FAST search with thumbnail views (and navigation!) for office documents&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;Improved relevancy and non-query searching&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;2 new search products (FAST based)&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;New refinement panel for advanced sorting and filtering "on the fly"&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Multi-lingual support with over 80 languages built-in.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;/div&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b style="font-family: Arial,Helvetica,sans-serif;"&gt;Social Networking:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;New My Sites structure&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt; &lt;/span&gt;Activity Feeds to provide updates on user activity with an extensible architecture!&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;"Social Feedback" functions akin to Delicious and Digg allowing tagging of any URL based content, and subsequent discussions around items that have been "tagged".&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ratings mechanism distributed throughout the product.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt 27pt;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-6918941527817134249?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/6918941527817134249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/10/new-features-in-sharepoint-2010.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/6918941527817134249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/6918941527817134249'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/10/new-features-in-sharepoint-2010.html' title='New Features in Sharepoint 2010'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-5258308981148922924</id><published>2010-09-16T18:29:00.004+05:30</published><updated>2010-09-16T18:33:02.610+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Get User Profile</title><content type='html'>&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Here's the code to retrieve the UserProfile from User Profiles Service Application in Sharepoint 2010 by passing the account name &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&gt;SPSecurity&lt;/span&gt;&lt;span style="font-size: 9.5pt;"&gt;.RunWithElevatedPrivileges(delegate()&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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; {&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;using (SPSite site = new SPSite("SiteUrl"))&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPServiceContext context = SPServiceContext.GetContext(site);&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserProfileManager allProfiles = new UserProfileManager(context);&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string loginName = @"DomainName\AccountName";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Ex: TestDoamin\abc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 9.5pt;"&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; //You can also use UserExists method to check &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (allProfiles.ResolveProfile(loginName).Length == 1)&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserProfile up = allProfiles.GetUserProfile(loginName);&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: 9.5pt;"&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;});&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-5258308981148922924?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/5258308981148922924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/09/get-user-profile.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/5258308981148922924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/5258308981148922924'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/09/get-user-profile.html' title='Get User Profile'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-6160289533410615983</id><published>2010-06-15T17:20:00.000+05:30</published><updated>2010-06-15T17:20:38.847+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Adding Item Level Security to a List Item</title><content type='html'>Item Level Security for the User:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;public override void ItemAdded(SPItemEventProperties properties)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPUser usr = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (SPWeb web = properties.Web)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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; usr = web.SiteUsers.GetByID(web.CurrentUser.ID);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPSecurity.RunWithElevatedPrivileges(delegate()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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; using (SPSite site = new SPSite(properties.SiteId))&lt;br /&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; {&lt;br /&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; using (SPWeb web = site.OpenWeb())&lt;br /&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; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPList lst = web.Lists[properties.ListId];&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPListItem li = lst.GetItemById(properties.ListItemId);&lt;br /&gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPRoleDefinition rd = web.RoleDefinitions.GetByType(SPRoleType.Reader);&lt;br /&gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPRoleAssignment ra = new SPRoleAssignment((SPPrincipal)usr);&lt;br /&gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; ra.RoleDefinitionBindings.Add(rd);&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!li.HasUniqueRoleAssignments)&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; li.BreakRoleInheritance(false);&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt;= li.RoleAssignments.Count - 1; i++)&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; li.RoleAssignments.Remove(i);&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; li.RoleAssignments.Add(ra);&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; li.Update();&lt;br /&gt;&lt;br /&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; }&lt;br /&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; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Item Level Security for a Group:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; public override void ItemAdded(SPItemEventProperties properties)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; SPGroup grp = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string groupname = "ListUsers";&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPSecurity.RunWithElevatedPrivileges(delegate()&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (SPSite site = new SPSite(properties.SiteId))&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (SPWeb web = site.OpenWeb())&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&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.AllowUnsafeUpdates = true; &lt;br /&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;&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; SPGroupCollection groupCollection = web.Groups;&lt;br /&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;&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; if (string.IsNullOrEmpty(groupname) || (groupCollection == null) || (groupCollection.Count == 0))&lt;br /&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;&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;br /&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;&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; throw new ArgumentNullException("Security Group Not Found");&lt;br /&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;&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;br /&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;&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; else&lt;br /&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;&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;br /&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;&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; grp = groupCollection[groupname];&lt;br /&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;&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; SPList lst = web.Lists[properties.ListId];&lt;br /&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;&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; SPListItem li = lst.GetItemById(properties.ListItemId);&lt;br /&gt;&lt;br /&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;&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; SPRoleDefinition rd = web.RoleDefinitions.GetByType(SPRoleType.Reader);&lt;br /&gt;&lt;br /&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;&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; SPRoleAssignment ra = new SPRoleAssignment((SPPrincipal)grp);&lt;br /&gt;&lt;br /&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;&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; ra.RoleDefinitionBindings.Add(rd);&lt;br /&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;&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; if (!li.HasUniqueRoleAssignments)&lt;br /&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;&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;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; li.BreakRoleInheritance(false);&lt;br /&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;&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;br /&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;&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; for (int i = 0; i &amp;lt;= li.RoleAssignments.Count - 1; i++)&lt;br /&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;&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;br /&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; li.RoleAssignments.Remove(i);&lt;br /&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;&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;br /&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;&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; li.RoleAssignments.Add(ra);&lt;br /&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;&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; li.Update();&lt;br /&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;&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.AllowUnsafeUpdates = false;&lt;br /&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;&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;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-6160289533410615983?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/6160289533410615983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/06/adding-item-level-security-to-list-item.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/6160289533410615983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/6160289533410615983'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/06/adding-item-level-security-to-list-item.html' title='Adding Item Level Security to a List Item'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-7416435715616600091</id><published>2010-04-28T10:47:00.000+05:30</published><updated>2010-04-28T10:49:44.381+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>SPContext Object</title><content type='html'>&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;When building custom web parts for Windows SharePoint Services V3. You  can use the SPContext object to get for instance the site or web from  the current context.You can also get the listitem and the webfeatures.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;In WSS V2 you would use SPControl.GetContextSite() or  SPControl.GetContextWeb() but that's a lot less flexible and it's slower  as well.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;A couple of different uses of SPContext are shown  below:&lt;br /&gt;&lt;br /&gt;*************************************************************************&lt;br /&gt;SPList  currentList = SPContext.Current.List;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SPWeb currentSite =  SPContext.Current.Web;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SPSite currentSiteCollection =  SPContext.Current.Site;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SPWebApplication currentWebApplication =  SPContext.Current.Site.WebApplication;&lt;br /&gt;&lt;br /&gt;*************************************************************************&lt;br /&gt;&lt;br /&gt;SPListItem  item = (SPListItem)SPContext.Current.Item;&lt;br /&gt;&lt;br /&gt;*************************************************************************&lt;br /&gt;&lt;br /&gt;SPWeb  site = SPContext.Current.Site.OpenWeb(guid);&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SPUser user =  SPContext.Current.Web.CurrentUser;&lt;br /&gt;&lt;br /&gt;*************************************************************************&lt;br /&gt;&lt;br /&gt;SPSiteDataQuery  siteQuery = new SPSiteDataQuery();&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;DataTable queryResults =  SPContext.Current.Web.GetSiteData(siteQuery);&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;queryResults.TableName  = "queryTable";&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;queryResults.WriteXml("C:\\queryTable.xml");&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;The last example makes use of the SPSiteDataQuery object.&amp;nbsp; In  WSS V3 there are two different query objects. Besides SPSiteDataQuery  object there is also the SPQuery object. &lt;br /&gt;The difference between the  two is that SPQuery can only be used for queries within a single folder  in a single list. SPSiteDataQuery can be used for cross lists and even  cross site queries.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-7416435715616600091?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/7416435715616600091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/spcontext-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/7416435715616600091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/7416435715616600091'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/spcontext-object.html' title='SPContext Object'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-3158408265472761975</id><published>2010-04-27T13:06:00.001+05:30</published><updated>2010-04-27T13:12:32.155+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SPQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>SPQuery Samples</title><content type='html'>&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: bold;"&gt;Basic Query -&lt;/span&gt; Query to get all  the Items from a list where Category field  is equal to "Sp2007"&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;// Get SiteColl&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&lt;span style="color: black;"&gt;SPSite curSite = new  SPSite("http://myPortal"); &lt;/span&gt;     &lt;/span&gt;&lt;span style="color: #990000;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Get Web  Application&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&lt;span style="color: black;"&gt;SPWeb curWeb =  curSite.OpenWeb();&lt;/span&gt;                        &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;// Create a SPQuery Object&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SPQuery curQry = new SPQuery();                           &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Write  the query (suggested using U2U Query Bulider &lt;leo_highlight id="leoHighlights_Underline_0" leohighlights_keywords="tool" leohighlights_underline="true" leohighlights_url_bottom="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsBottom.jsp?keywords%3Dtool%26domain%3Dwww.blogger.com" leohighlights_url_top="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsTop.jsp?keywords%3Dtool%26domain%3Dwww.blogger.com" onclick="leoHighlightsHandleClick('leoHighlights_Underline_0')" onmouseout="leoHighlightsHandleMouseOut('leoHighlights_Underline_0')" onmouseover="leoHighlightsHandleMouseOver('leoHighlights_Underline_0')" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-size: auto auto; background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat; border-bottom: 2px solid rgb(255, 255, 150); cursor: pointer; display: inline;"&gt;Tool&lt;/leo_highlight&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;curQry.Query =  "&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;span style="color: #990000;"&gt;SP2007  ";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;// Set the Row Limit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;curQry.RowLimit = 100; &lt;/span&gt;&lt;br style="color: black;" /&gt; &lt;br /&gt;&lt;span style="color: #009900;"&gt;//Get the List &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&lt;span style="color: black;"&gt;SPList myList = myWeb.Lists["ListName"];&lt;/span&gt;          &lt;/span&gt;&lt;span style="color: #990000;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Get the Items using Query&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SPListItemCollection curItems = &lt;/span&gt;&lt;span style="color: #990000;"&gt;myList&lt;/span&gt;&lt;span style="color: #990000;"&gt;.GetItems(curQry);     &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;// Go through the resulting items &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;foreach (SPListItem curItem in curItems)                                 &lt;/span&gt;&lt;span style="color: #990000;"&gt;   &lt;/span&gt;&lt;br style="color: black;" /&gt; &lt;span style="color: #990000;"&gt;{&lt;/span&gt;&lt;br style="color: black;" /&gt; &lt;span style="color: #990000;"&gt;string ResultItemTitle =  curItem["Title"].ToString();&lt;/span&gt;&lt;br style="color: black;" /&gt; &lt;span style="color: #990000;"&gt;}&lt;/span&gt;&lt;br style="color: black;" /&gt; &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Query on DateTime  Field  &lt;/span&gt;- Query to Find Items in the List with Today's date.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;// Create a SPQuery Object&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SPQuery DateFieldQuery = new SPQuery();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Write the query &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;DateFieldQuery&lt;/span&gt;&lt;span style="color: #990000;"&gt;.Query = “&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;value type="\" ”datetime\”=""&gt;+  DateTime.Now.ToString("yyyy-MM-ddTHH:\\:mm \\:ssZ") + &lt;/value&gt;&lt;/span&gt;&lt;span style="color: #990000;"&gt;”;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Get the List &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SPList myList = myWeb.Lists["ListName"];          &lt;/span&gt;&lt;span style="color: #990000;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Get the Items using Query&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SPListItemCollection ResultItems =  myList.GetItems(&lt;/span&gt;&lt;span style="color: #990000;"&gt;DateFieldQuery&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;span style="color: black;"&gt;);   &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Query Using Yes\No Columns  - &lt;/span&gt;Query  to Retrieve all the Items from a list where a Yes\NO type Field, named  "AreYouCool?" is "Yes". &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;// Create a SPQuery Object&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SPQuery CheckBoxQuery = new SPQuery();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Write the query &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;CheckBoxQuery .Query =  “&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;value type="\" ”bit\”=""&gt;1&lt;/value&gt;&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;span style="color: #990000;"&gt;”;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Get the List &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SPList myList = myWeb.Lists["ListName"];         &lt;/span&gt;&lt;span style="color: #990000;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//Get the Items using Query&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SPListItemCollection ResultItems =  myList.GetItems(CheckBoxQuery);     &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-3158408265472761975?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/3158408265472761975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/spquery-samples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3158408265472761975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3158408265472761975'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/spquery-samples.html' title='SPQuery Samples'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-5247169713438066034</id><published>2010-04-27T13:05:00.000+05:30</published><updated>2010-04-27T13:05:13.699+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Publishing features'/><title type='text'>SharePoint Server Publishing features</title><content type='html'>&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;The publishing features that are enabled when the SharePoint Server  Publishing feature is enabled on a nonpublishing site.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;In Site settings&lt;/span&gt; - When you enable the  SharePoint Server Publishing feature, the following changes are made to  the Site Settings page:&lt;br /&gt;&lt;br /&gt;* In the Galleries section, the  Master pages link is removed, and it is replaced with the Master pages  and page layouts link at both the site collection and site level.&lt;br /&gt;&lt;br /&gt;* In the Site Administration section, a Site output cache link is  added at the site level only.&lt;br /&gt;&lt;br /&gt;* In the Look and Feel section,  the following links are added at both the site collection and site  level:&lt;br /&gt;&lt;br /&gt;o Master Page&lt;br /&gt;&lt;br /&gt;o Page layouts and  site templates&lt;br /&gt;&lt;br /&gt;o Welcome Page&lt;br /&gt;&lt;br /&gt;* In the Site  Actions section, the Save site as template link is removed at both the  site collection and site level.&lt;br /&gt;&lt;br /&gt;* In the Site Collection  Administration section, the following links are added at the site  collection level only:&lt;br /&gt;&lt;br /&gt;o Site collection cache profiles&lt;br /&gt;&lt;br /&gt;o Site collection object cache&lt;br /&gt;&lt;br /&gt;o Site  collection output cache&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Regional  settings&lt;/span&gt;- When you enable the SharePoint Server Publishing  feature, the Subsite Settings section is added to the Regional Settings  page. This enables you specify whether all sites below the current site  should inherit the regional settings set for the current site.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Document libraries and lists Created&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When  you enable the SharePoint Server Publishing feature, the following  document libraries and lists are added:&lt;br /&gt;&lt;br /&gt;* Documents   This  library stores documents that are used on pages in the site.&lt;br /&gt;&lt;br /&gt;*  Images   This library stores images that are used on pages in the site.&lt;br /&gt;&lt;br /&gt;* Pages   This library stores pages that are created in the site.&lt;br /&gt;&lt;br /&gt;* Workflow Tasks   This list stores workflow tasks that are created  in the site.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;List and Libraries Settings-&lt;/span&gt; In  addition to the libraries and lists that are created, the following  changes are made to document library settings:&lt;br /&gt;&lt;br /&gt;* On the  Document Library Settings page, in the General Settings section, a  Manage item scheduling link is added.&lt;br /&gt;&lt;br /&gt;* On the Versioning  Settings page, the following changes are made:&lt;br /&gt;&lt;br /&gt;o The  Document Version History option is set to Create major and minor (draft)  versions. This option determines what versions are created when a file  is edited in the Pages library.&lt;br /&gt;&lt;br /&gt;o The Draft Item  Security option is set to Only users who can edit items. This option  determines who can see draft items in the Pages library.&lt;br /&gt;&lt;br /&gt;o The Require Check Out option is set to Yes. This option requires  documents to be checked out before they can be edited.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: bold;"&gt;Navigation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following  navigation changes are made when you enable the SharePoint Server  Publishing Infrastructure feature:&lt;br /&gt;&lt;br /&gt;* The top link bar is  replaced with the global navigation menu.&lt;br /&gt;&lt;br /&gt;* Default settings  for the global navigation menu and the Quick Launch menu are specified.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Web Parts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When you enable the  SharePoint Server Publishing Infrastructure feature, the following Web  Parts are added at the site collection level and are available to use in  all sites that are created within the site collection:&lt;br /&gt;&lt;br /&gt;*  Content Query Web Part&lt;br /&gt;&lt;br /&gt;* Media Web Part&lt;br /&gt;&lt;br /&gt;* Summary  Links Web Part&lt;br /&gt;&lt;br /&gt;* Table Of Contents Web Part&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Page editing menu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When you  enable the SharePoint Server Publishing feature, the following changes  are made to the page editing menu:&lt;br /&gt;&lt;br /&gt;* The Publish tab and  Publish button are added to the master page.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Other changes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When you  enable the SharePoint Server Publishing feature, the following changes  are made:&lt;br /&gt;&lt;br /&gt;* Users can no longer create pages that have a space  in the name. Spaces are automatically converted to a dash ‘-‘.&lt;br /&gt;&lt;br /&gt;* The Manage Content and Structure link is added to the Site Actions  menu. This opens the Site Content and Structure tool for the entire site  collection.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-5247169713438066034?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/5247169713438066034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/sharepoint-server-publishing-features.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/5247169713438066034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/5247169713438066034'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/sharepoint-server-publishing-features.html' title='SharePoint Server Publishing features'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-3711770623151905910</id><published>2010-04-27T13:01:00.000+05:30</published><updated>2010-04-27T13:03:23.210+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint WebServices'/><title type='text'>SharePoint Web services Samples</title><content type='html'>&lt;span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="color: #cc6600;"&gt;//Add a  New List Item&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;protected void CreateListItem(string  ID, string Title)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;SpWebservice.Lists SPService = new  SpWebservice.Lists();&lt;br /&gt;SPService.Credentials =  System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;&lt;br /&gt;System.Xml.XmlNode  ndListView = SPService.GetListAndView("MyList", "");&lt;br /&gt;string  strListID = ndListView.ChildNodes[0].Attributes["Name"].Value;&lt;br /&gt;string  strViewID = ndListView.ChildNodes[1].Attributes["Name"].Value;&lt;br /&gt;&lt;br /&gt;XmlDocument  doc = new XmlDocument();&lt;br /&gt;&lt;br /&gt;System.Xml.XmlElement batch =  doc.CreateElement("Batch");&lt;br /&gt;&lt;br /&gt;batch.SetAttribute("OnError",  "Continue");&lt;br /&gt;&lt;br /&gt;batch.SetAttribute("ListVersion", "1");&lt;br /&gt;&lt;br /&gt;batch.SetAttribute("ViewName",  strViewID);&lt;br /&gt;&lt;br /&gt;batch.InnerXml = "&lt;method&gt; &lt;id="1" cmd="New"&gt;" +&lt;br /&gt;"&lt;field name="Id"&gt;" + ID +  "&lt;/field&gt;&lt;field name="Title"&gt;" + Title+ "&lt;/field&gt;";&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;SPService.UpdateListItems(strListID,  batch);&lt;br /&gt;}&lt;br /&gt;catch { }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #cc6600;"&gt;/&lt;b&gt;/Update list Item&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/id="1"&gt;&lt;/method&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;method&gt;&lt;id="1" cmd="New"&gt;protected  void UpdateListItem(string ListID,string Title)&lt;br /&gt;{&lt;br /&gt;SpWebservice.Lists  SPService = new SpWebservice.Lists();&lt;br /&gt;SPService.Credentials =  System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;&lt;br /&gt;System.Xml.XmlNode  ndListView = SPService.GetListAndView("MyList", "");&lt;br /&gt;string  strListID = ndListView.ChildNodes[0].Attributes["Name"].Value;&lt;br /&gt;string  strViewID = ndListView.ChildNodes[1].Attributes["Name"].Value;&lt;br /&gt;&lt;br /&gt;XmlDocument  doc = new XmlDocument();&lt;br /&gt;&lt;br /&gt;System.Xml.XmlElement batch =  doc.CreateElement("Batch");&lt;br /&gt;&lt;br /&gt;batch.SetAttribute("OnError",  "Continue");&lt;br /&gt;&lt;br /&gt;batch.SetAttribute("ListVersion", "1");&lt;br /&gt;&lt;br /&gt;batch.SetAttribute("ViewName",  strViewID);&lt;br /&gt;&lt;br /&gt;batch.InnerXml = "&lt;method cmd="Update" id="1"&gt;&lt;field name="ID"&gt;" + ListID+  "&lt;/field&gt;&lt;field name="Title"&gt;" + Title +  "&lt;/field&gt;&lt;/method&gt;";&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;SPService.UpdateListItems(strListID,  batch);&lt;br /&gt;}&lt;br /&gt;catch { }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #cc6600;"&gt;&lt;b&gt;//Get List Items&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/id="1"&gt;&lt;/method&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;method&gt;&lt;id="1" cmd="New"&gt;protected  void GetListItems(string ID)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;SpWebservice.Lists SPService =  new SpWebservice.Lists();&lt;br /&gt;SPService.Credentials =  System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;&lt;br /&gt;System.Xml.XmlNode  ndListView = SPService.GetListAndView("MyList", "");&lt;br /&gt;string  strListID = ndListView.ChildNodes[0].Attributes["Name"].Value;&lt;br /&gt;string  strViewID = ndListView.ChildNodes[1].Attributes["Name"].Value;&lt;br /&gt;&lt;br /&gt;XmlDocument  xmlDoc = new System.Xml.XmlDocument();&lt;br /&gt;&lt;br /&gt;XmlNode ndQuery =  xmlDoc.CreateNode(XmlNodeType.Element, "Query", "");&lt;br /&gt;&lt;br /&gt;XmlNode  ndViewFields = xmlDoc.CreateNode(XmlNodeType.Element, "ViewFields", "");&lt;br /&gt;&lt;br /&gt;ndViewFields.InnerXml  = "";&lt;br /&gt;&lt;br /&gt;ndQuery.InnerXml  = "&lt;where&gt;&lt;eq&gt;&lt;fieldref name="ID/"&gt;&lt;value type="Number"&gt;" + ID +"&lt;/value&gt;&lt;/fieldref&gt;&lt;/eq&gt;";&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;XmlNode  ndListItems =&lt;br /&gt;SPService.GetListItems(strListID, null, ndQuery,  ndViewFields, null, null, null);&lt;br /&gt;&lt;br /&gt;XmlDocument doc = new  XmlDocument();&lt;br /&gt;doc.LoadXml(ndListItems.OuterXml);&lt;br /&gt;XmlNamespaceManager  mg = new XmlNamespaceManager(doc.NameTable);&lt;br /&gt;mg.AddNamespace("sp",  "http://schemas.microsoft.com/sharepoint/soap/");&lt;br /&gt;mg.AddNamespace("z",  "#RowsetSchema");&lt;br /&gt;mg.AddNamespace("rs",  "urn:schemas-microsoft-com:rowset");&lt;br /&gt;mg.AddNamespace("y",  "http://schemas.microsoft.com/sharepoint/soap/ois");&lt;br /&gt;mg.AddNamespace("w",  "http://schemas.microsoft.com/WebPart/v2");&lt;br /&gt;mg.AddNamespace("d",  "http://schemas.microsoft.com/sharepoint/soap/directory");&lt;br /&gt;&lt;br /&gt;XmlNodeList  NodeList = doc.SelectNodes("//sp:listitems/rs:data", mg);&lt;br /&gt;&lt;br /&gt;foreach  (XmlNode ListItem in NodeList)&lt;br /&gt;{&lt;br /&gt;foreach (XmlNode node in  ListItem.ChildNodes)&lt;br /&gt;{&lt;br /&gt;string ID = string.Empty;&lt;br /&gt;string Title =  string.Empty;&lt;br /&gt;&lt;br /&gt;XmlAttribute id = node.Attributes["ows_ID"];&lt;br /&gt;&lt;br /&gt;if  (id != null)&lt;br /&gt;{&lt;br /&gt;ID = id.Value;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;XmlAttribute _Title=  node.Attributes["ows_Title"];&lt;br /&gt;&lt;br /&gt;if (_Title!= null)&lt;br /&gt;{&lt;br /&gt;Title=  _Title.Value;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;_AddToDataTable(ID, Title);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;catch  { }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #cc6600;"&gt;&lt;b&gt;// Get list Fields (using GetList method)&lt;/b&gt;&lt;/span&gt;&lt;/where&gt;&lt;/id="1"&gt;&lt;/method&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"&gt;Below is the code to get the values of a choice field in a sharepoint  list . You can save these values into a datatable and can bind the  datatable with a Drop-down control.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;//get choice field values from sharepoint list&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"&gt;protected  void GetDrpDownValuesFromList()&lt;br /&gt;{&lt;br /&gt;SPWebservice.Lists FMService =  new SPWebservice.Lists();&lt;br /&gt;FMService.Credentials =  System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;XmlNode ndLists =  FMService.GetList("MyList"); &lt;span style="color: #006600;"&gt;//add  list name&lt;/span&gt;&lt;br /&gt;XmlDocument doc = new XmlDocument();&lt;br /&gt;doc.LoadXml(ndLists.OuterXml);&lt;br /&gt;&lt;br /&gt;XmlNamespaceManager  mg = new XmlNamespaceManager(doc.NameTable);&lt;br /&gt;mg.AddNamespace("sp",  "http://schemas.microsoft.com/sharepoint/soap/");&lt;br /&gt;mg.AddNamespace("z",  "#RowsetSchema");&lt;br /&gt;mg.AddNamespace("rs",  "urn:schemas-microsoft-com:rowset");&lt;br /&gt;mg.AddNamespace("y",  "http://schemas.microsoft.com/sharepoint/soap/ois");&lt;br /&gt;mg.AddNamespace("w",  "http://schemas.microsoft.com/WebPart/v2");&lt;br /&gt;mg.AddNamespace("d",  "http://schemas.microsoft.com/sharepoint/soap/directory");&lt;br /&gt;&lt;br /&gt;XmlNodeList  FieldsInList = doc.SelectNodes("//sp:Field", mg);&lt;br /&gt;&lt;br /&gt;foreach  (XmlNode Field in FieldsInList)&lt;br /&gt;{&lt;br /&gt;if (Field.HasChildNodes)&lt;br /&gt;{&lt;br /&gt;if  (Field.Attributes["Name"].Value == "choiceFieldName")&lt;br /&gt;{&lt;br /&gt;foreach  (XmlNode node in Field.ChildNodes)&lt;br /&gt;{&lt;br /&gt;if (node.HasChildNodes)&lt;br /&gt;{&lt;br /&gt;foreach  (XmlNode Newnode in node.ChildNodes)&lt;br /&gt;{&lt;br /&gt;if(Newnode.HasChildNodes)&lt;br /&gt;{&lt;br /&gt;_addToDataTable(Newnode.InnerText);  &lt;span style="color: #006600;"&gt;// Add node value to datatable&lt;br /&gt;}}}}}}}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-3711770623151905910?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/3711770623151905910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/sharepoint-web-services-samples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3711770623151905910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3711770623151905910'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/sharepoint-web-services-samples.html' title='SharePoint Web services Samples'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-997161589560125944</id><published>2010-04-27T12:59:00.000+05:30</published><updated>2010-04-27T12:59:00.051+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint Interview Questions'/><title type='text'>SharePoint Interview Questions - 3</title><content type='html'>&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;Web Parts&lt;/strong&gt; are componentized, self-contained packages of  user interface that can be dropped into place on SharePoint Web Part  pages to provide discrete sets of functionality to users.&lt;br /&gt;It can be  incredibly easy to get confused between sites, webs, web applications,  and site collections. The farm is the topmost level in the hierarchy.  Below the farm, you have web applications represented by the  SPWebApplication class, which typically correspond to an IIS application  pool. Below that, you have a collection of site collections contained  in the SPSiteCollection class. Finally, you have site collections  represented by the SPSite class and individual websites represented by  the SPWeb class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Features&lt;/strong&gt; allow reusable pieces  of functionality to be created and deployed to other sites,without  modifying site templates.It is always better to deploy a feature in new  site instead ofdirectly embedding mountains of complex XML.Using  Features, you can do everything from adding a link to the Site Settings  page to creating a complete, fully functioning Project Management suite  that can be added to any SharePoint site.Features are organized in  folders under the Features directory located under 12 hives; Where  SharePoint Server 2007 puts all of its system files, at the following  path: %SystemDrive%\Program Files\Common Files\Microsoft Shared\web  server extensions\12. The two files that are used to define a feature  are the feature.xml and Elements.xml .The feature XML file defines the  actual feature and will make SharePoint aware of the installed feature.  It usually identifies the Feature itself and its element manifest file  and sets the Feature scope to Web site.&lt;br /&gt;Elements.xml file identifies  the assembly, class, and method to implement in feature.&lt;br /&gt;&lt;br /&gt;You can  directly deploy a feature in sharepoint site with&lt;br /&gt;&lt;br /&gt;stsadm -o  installfeature -filename XYZEventHandler\Feature.xml&lt;br /&gt;&lt;br /&gt;stsadm -o  activatefeature -filename DeletingEventHandler\Feature.xml -url  href="http://server/Site/Subsite"&amp;gt;http://Server/Site/Subsite&lt;br /&gt;&lt;br /&gt;iisreset&lt;br /&gt;&lt;br /&gt;OR  To Deploy it as solution package you need a solution manifest  (manifest.xml).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solutions&lt;/strong&gt; allow you to  package Features in a cabinet (.cab) file and define important metadata  about those Features. After a Solution is installed on a server in the  farm, you can then use SharePoint’s Solution management features to  automate the deployment of that Solution to other sites within the farm.&lt;br /&gt;&lt;br /&gt;The  solution manifest (always called manifest.xml) is stored at the root of  a solution file. This file defines the list of features, site  definitions, resource files, Web Part files, and assemblies to process.  It does not define the file structure—if files are included in a  solution but not listed in the manifest XML file, they are not processed  in any way.&lt;br /&gt;&lt;br /&gt;Because the solution file is essentially a .cab  file, use the makecab.exe tool to create the solution package. The  makecab.exe tool takes a pointer to a .ddf file, which describes the  structure of the .cab file. The format of a .ddf file is, declare a  standard header and then enumerate, one file per line, the set of files  by where they live on disk, separated by where they should live in the  .cab file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Features &amp;amp; Solutions:&lt;/strong&gt;&lt;br /&gt;The  Feature Framework has been extended to allow developers to create custom  Features. Features can be deployed by using SharePoint Portal Server  2007 new form of deployment, namely Solution Deployment. Solutions as  you know, are custom packages (e.g. WSP file) or redistributable CAB  files, created by developers and deployed by SharePoint Administrators.  Administrator can deploy Features to the individual site or to all Web  front End Servers.&lt;br /&gt;&lt;br /&gt;Features are a method for developers to  package customisations and deploy them to the SharePoint portal. They  can then be activated and deactivated at the Site Collection level.  Solutions are a way to bundle features together for deployment.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Custom  action :&lt;/strong&gt; Represents a link, toolbar button, menu item, or any  control that can be added to a toolbar or menu that appears in the UI.  You define custom actions by using a custom action element within a  feature definition file. You can bind custom actions to a list type,  content type, file type, or programmatic identifier (ProgID). For more  information, see Custom Action Definitions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Event  receiver:&lt;/strong&gt; Evaluator of an event and definer of the behavior of  an application. Windows SharePoint Services 3.0 allows you to define  event handlers within libraries, lists, and sites. Event receivers can  be defined by using a receiver element within a feature definition file.  For more information, see Event Registrations.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;Master  page: &lt;/strong&gt;Pages that provide a consistent layout and appearance  (look and feel) for SharePoint sites. They allow you to factor out  layout, structure, and interface elements such as headers, footers,  navigation bars, and content placeholders. Master pages in ASP.NET 2.0  and master pages in Windows SharePoint Services work in the same way.  For more information, see Building Simple Master Pages for Windows  SharePoint Services 3.0.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Module :&lt;/strong&gt; A file or  collection of file instances that define the location where the files  are installed during site creation. Modules are frequently used to  implement a Web Part Page in the site. You can define modules by using a  module element within a feature definition file. For more information,  see Modules.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;SharePoint site:&lt;/strong&gt; A Web site  hosted in a virtual URL. A SharePoint site is a place for collaboration,  communication, or content storage. Depending on your business needs,  you can create sites such as team sites, blog sites, wiki sites, and  others. You can customize a site's appearance, users, user permissions,  galleries, and site administration by using the Site Settings  administration pages.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;SharePoint site collection:&lt;/strong&gt;  A collection of SharePoint sites that share common administration pages  and site settings. Site collections allow you to share content types,  site columns, templates, and Web Parts within a group of SharePoint  sites.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;SharePoint Web farm:&lt;/strong&gt; A group of  Office SharePoint 2007 servers that share the same configuration  database. All site content and all configuration data is shared for all  front-end Web servers in a server farm.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Site  definition.:&lt;/strong&gt; A set of files that includes a master XML  configuration file that is stored on all front-end Web servers. A site  definition provides the basic blueprint for how sites look, what lists  they include, their default navigational structures, and so on. For more  information, see Working with Site Templates and Definitions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Theme:  &lt;/strong&gt;A group of files (CSS, images) that allow you to define the  appearance (look and feel) of Web pages. Themes in ASP.NET 2.0 and  themes in SharePoint Products and Technologies work in the same way.  Themes are used to help organizations to brand their portals and team  sites. Office SharePoint Server 2007 includes a set of predefined  themes. However, as a developer, you can create custom themes for your  company.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-997161589560125944?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/997161589560125944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/sharepoint-interview-questions-3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/997161589560125944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/997161589560125944'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/sharepoint-interview-questions-3.html' title='SharePoint Interview Questions - 3'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-633897327792854391</id><published>2010-04-27T12:00:00.000+05:30</published><updated>2010-04-27T12:00:52.079+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint Interview Questions'/><title type='text'>SharePoint Interview Questions - 2</title><content type='html'>&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;strong&gt;Q. What are &lt;span style="color: rgb(0, 0, 0) ! important;"&gt;&lt;span class="kLink"&gt;Application&lt;/span&gt;&lt;/span&gt; Pages in SharePoint?&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Ans  :&lt;/strong&gt; Unlike site pages (for example, default&lt;span style="color: blue ! important; position: static;"&gt;&lt;span class="kLink" style="color: blue ! important; position: relative;"&gt;.&lt;span style="color: black;"&gt;aspx&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;), a custom  application page is deployed once per Web server and cannot be  customized on a site-by-site basis. Application pages are based in the  virtual _layouts directory. In addition, they are compiled into a single  assembly DLL.&lt;br /&gt;&lt;br /&gt;A good example of an Application Page is the  default Site Settings page: every site has one, and it's not  customizable on a per site basis (although the contents can be different  for sites).&lt;br /&gt;&lt;br /&gt;With application pages, you can also add inline  code. With site pages, you cannot add inline code.&lt;br /&gt;Typically, you  link custom application pages to application.master, the master page  file that is used by the default application pages in Windows SharePoint  Services. You should also write application pages to inherit from a  base class defined inside the Microsoft.SharePoint assembly named  LayoutsPageBase.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. Which is Better a UserControl or  WebPart?&lt;br /&gt;Ans:&lt;/strong&gt; Advantages of Using User Control are :&lt;br /&gt;Advantages  of User control&lt;br /&gt;There are three primary advantages to user controls  when dealing with SharePoint. They are: familiarity, reusability, and  development speed.&lt;br /&gt;*Familiarity:&lt;br /&gt;One of the keys to development is  managing the degree of change that the team is put through as it  transitions from &lt;span style="color: rgb(0, 0, 0) ! important; position: static;"&gt;&lt;span class="kLink" style="position: relative;"&gt;technology&lt;/span&gt;&lt;/span&gt; to  technology. Part of managing that change is minimizing it where  possible. This is one of the reasons that user controls are such a good  solution for many organizations. User controls are a core ASP.NET  construct, they are something that developers are likely already  familiar with — or at least aware of. This familiarity increases the  knowledge reuse coming into the project, which keeps morale high,  improves productivity, and improves reuse of the experience after the  SharePoint project.&lt;br /&gt;&lt;br /&gt;*Reusability&lt;br /&gt;Another way user controls are  advantageous is that they can be used with other ASP.NET-based  solutions. They aren't explicitly tied to SharePoint. If for some reason  in the future you decide that SharePoint isn't the right platform for  the solutions you're building — or you decide you need to reuse the  technology in another non-SharePoint project — you have that capability.&lt;br /&gt;&lt;br /&gt;*Development  Speed:&lt;br /&gt;Direct support by Visual Studio for a visual interface for  user controls — as opposed to manually adding in controls through code —  is a great advantage in development speed. Having a visual look and  feel instantly available makes the process go faster.&lt;br /&gt;&lt;br /&gt;*Debugging  is faster too, as you can construct testing harnesses that fully  exercise and instrument the user control. Web Parts are essentially only  runable from within SharePoint. This means that you must deal with all  of the SharePoint infrastructure while trying to debug.&lt;br /&gt;Maintenance  is also easier and faster with User Controls, primarily because they are  easier to understand and debug. The net of this is that developing with  user controls is substantially faster than developing a Web Part for  everything but the most trivial implementations&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. When  to use Diffrent Site Collections?&lt;br /&gt;Ans. &lt;/strong&gt;An Individual Site  collection offers following :&lt;br /&gt;For the Users:&lt;br /&gt;Dedicated Recycle  bins&lt;br /&gt;Dedicated usage Reports&lt;br /&gt;Distributed administration (site  collection administrators)&lt;br /&gt;Dedicated search scopes, keywords, and  best-bets&lt;br /&gt;Custom feature deployments&lt;br /&gt;Dedicated language  translation maintenance&lt;br /&gt;Dedicated galleries for web parts, master  pages, content types, site columns, site templates, and list templates&lt;br /&gt;Dedicated  shared libraries, such as site collection images and site collection  styles&lt;br /&gt;Dedicated real estate (Self Containment)&lt;br /&gt;&lt;br /&gt;For the IT  Administrators:&lt;br /&gt;Site quota templates&lt;br /&gt;Distributed administration&lt;br /&gt;Site  locking&lt;br /&gt;Database maintenance options&lt;br /&gt;Backup / Restore abilities&lt;br /&gt;Content  Deployments&lt;br /&gt;InfoPath forms services global template targeting&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  Why to use diffrent site collections:&lt;br /&gt;Ans.&lt;/strong&gt; Following are  the resons:&lt;br /&gt;1. Site quotas is one of the reasons. The issue is the  recycle bin is based on site collections and the quota for a site  collection. If everyone shares a site collection, then they share the  recycle bins storage size.&lt;br /&gt;&lt;br /&gt;2. Delegated Security and distributed  administration is the next big thing. For eg, you have a IT department  that doesn't know who should be able to see what content, besides how it  should be organized. This is the job of the content owners and users.  SharePoint site collections offers IT the ability to create a site  collection for a project, team, department, document, or whatever the  needs are, then assign an owner and hand it off to them.&lt;br /&gt;&lt;br /&gt;3. In  addition to these two points is the need to separate the content between  databases.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is Authentication and Authorization.&lt;br /&gt;Ans  : &lt;/strong&gt;An authentication system is how you identify yourself to the  &lt;a class="kLink" href="http://programmingsharepoint.blogspot.com/2008/04/sharepoint-developer-interview.html#" id="KonaLink3" style="position: static; text-decoration: underline ! important;" target="undefined"&gt;&lt;span style="color: blue ! important; position: static;"&gt;&lt;span class="kLink" style="color: blue ! important; position: relative;"&gt;computer&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;. The goal  behind an authentication &lt;a class="kLink" href="http://programmingsharepoint.blogspot.com/2008/04/sharepoint-developer-interview.html#" id="KonaLink2" style="position: static; text-decoration: underline ! important;" target="undefined"&gt;&lt;span style="color: blue ! important; position: static;"&gt;&lt;span class="kLink" style="color: blue ! important; position: relative;"&gt;system&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; is to verify  that the user is actually who they say they are.&lt;br /&gt;Once the system  knows who the user is through authentication, authorization is how the  system decides what the user can do.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What are Security  methods(Authentication methods) available in sharepoint.&lt;br /&gt;Ans :&lt;/strong&gt;  "Out of the box", SharePoint 2007 supports nine authentication methods.  NTLM (short for NT Lan Manager, which is simply the Windows  authentication that everyone is familiar with) and Kerberos (also a  Windows "standard" authentication) are offered during installation, but I  recommend to get started with NTLM, as Kerberos requires "special  configuration by the domain administrator", while NTLM works without  further hassle.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is the relationship between  Microsoft SharePoint Portal Server and Microsoft Windows Services?&lt;br /&gt;Ans.&lt;/strong&gt;  Microsoft SharePoint Products and Technologies (including SharePoint  Portal Server and Windows SharePoint Services) deliver highly scalable  collaboration solutions with flexible deployment and management tools.  Windows SharePoint Services provides sites for team collaboration, while  Share Point Portal Server connects these sites, people, and business  processes-facilitating knowledge sharing and smart organizations.  SharePoint Portal Server also extends the capabilities of Windows  SharePoint Services by providing organizational and management tools for  SharePoint sites, and by enabling teams to publish information to the  entire organization.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is a SharePoint Feature?  What files are used to define a feature?&lt;br /&gt;Ans.&lt;/strong&gt; A SharePoint  Feature is a functional component that can be activated and deactivate  at various scopes throughout a SharePoint instances, scope of which are  defined as&lt;br /&gt;1. Farm level 2. Web Application level 3. Site level 4.  Web level&lt;br /&gt;Features have their own receiver architecture, which allow  you to trap events such as when a feature is&lt;br /&gt;Installing,  Uninstalling, Activated, or Deactivated.&lt;br /&gt;The element types that can  be defined by a feature include&lt;br /&gt;menu commands, link commands, page  templates, page instances, list definitions, list instances,&lt;br /&gt;event  handlers, and workflows.&lt;br /&gt;&lt;br /&gt;The two files that are used to define a  feature are the feature.xml and manifest file(elements.xml). The feature  XML file defines the actual feature and will make SharePoint aware of  the installed feature. The manifest file contains details about the  feature such as functionality.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. Workflow can be applied  to what all elements of SharePoint ?&lt;br /&gt;Ans.&lt;/strong&gt; Workflow  associations are often created directly on lists and libraries, a  workflow association can also be created on a content type that exists  within the Content Type Gallery for the current site or content types  defined within a list. In short, it can be applied ...&lt;br /&gt;At the level  of a list/library&lt;br /&gt;At the level of a content type defined at site  scope&lt;br /&gt;At the level of a content type defined at list scope&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  What are the types of input forms that can be created for a workflow ?&lt;br /&gt;Ans.&lt;/strong&gt;  You can create four different types of input forms including&lt;br /&gt;1. An  association form&lt;br /&gt;2. An initiation form&lt;br /&gt;3. A modification form&lt;br /&gt;4.  A task edit form.&lt;br /&gt;&lt;br /&gt;Note that these forms are optional when you  create a workflow template.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What are ways to create  input forms for workflow ?&lt;br /&gt;Ans.&lt;/strong&gt; 1. You can create your forms  by using custom application pages, which are standard .aspx pages  deployed to run out of the _layouts directory. ( disadv: lot of code  required when compared to Infopath approach)&lt;br /&gt;2. Using Microsoft  Office InfoPath 2007 (disadv: picks up a dependenct on MOSS, i.e. it  cannot run in a standalone WSS environment)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is  the difference between method activity and event activity in WorkFlow ?&lt;br /&gt;Ans.&lt;/strong&gt;  A method activity is one that performs an action, such as creating or  updating a task. An event activity is one that runs in response to an  action occurring.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What are content types?&lt;br /&gt;Ans.&lt;/strong&gt;  A content type is a flexible and reusable WSS type definition (or we  can a template) that defines the columns and behavior for an item in a  list or a document in a document library. For example, you can create a  content type for a leave approval document with a unique set of columns,  an event handler, and its own document template and attach it with a  document library/libraries.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. Can a content type have  receivers associated with it?&lt;br /&gt;Ans.&lt;/strong&gt; Yes, a content type can  have an event receiver associated with it, either inheriting from the  SPListEventReciever base class for list level events, or inheriting from  the SPItemEventReciever base class. Whenever the content type is  instantiated, it will be subject to the event receivers that are  associated with it.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What two files are typically (this  is kept generally) included when developing a content type, and what is  the purpose of each?&lt;br /&gt;Ans.&lt;/strong&gt; There is generally the main  content type file that holds things like the content type ID, name,  group, description, and version. There is also the ContentType.Fields  file which contains the fields to include in the content type that has  the ID, Type, Name, DisplayName, StaticName, Hidden, Required, and  Sealed elements. They are related by the FieldRefs element in the main  content type file.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is an ancestral type and what  does it have to do with content types?&lt;br /&gt;Ans.&lt;/strong&gt; An ancestral  type is the base type that the content type is deriving from, such as  Document (0x0101). The ancestral type will define the metadata fields  that are included with the custom content type.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. Can a  list definition be derived from a custom content type?&lt;br /&gt;Ans.&lt;/strong&gt;  Yes, a list definition can derive from a content type which can be seen  in the schema.XML of the list definition in the element.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  When creating a list definition, how can you create an instance of the  list?&lt;br /&gt;Ans.&lt;/strong&gt; You can create a new instance of a list by  creating an instance.XML file&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is a Field Control?&lt;br /&gt;Ans.&lt;/strong&gt;  Field controls are simple ASP.NET 2.0 server controls that provide the  basic field functionality of SharePoint. They provide basic general  functionality such as displaying or editing list data as it appears on  SharePoint list pages.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What base class do custom Field  Controls inherit from?&lt;br /&gt;Ans.&lt;/strong&gt; This varies. Generally, custom  field controls inherit from the  Microsoft.SharePoint.WebControls.BaseFieldControl namespace, but you can  inherit from the default field controls.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. Can multiple  SharePoint installs point to the same DB?&lt;br /&gt;Ans.&lt;/strong&gt; Multiple  SharePoint installs can use the same &lt;span style="color: rgb(0, 0, 0) ! important; position: static;"&gt;&lt;span class="kLink" style="position: relative;"&gt;database &lt;/span&gt;&lt;span class="kLink" style="position: relative;"&gt;server&lt;/span&gt;&lt;/span&gt;. Not literally  the same database on that server. That server must be SQL Server 2000 or  &lt;span style="color: rgb(0, 0, 0) ! important; position: static;"&gt;&lt;span class="kLink" style="background-color: transparent; border-bottom: 1px solid blue; position: relative;"&gt;SQL &lt;/span&gt;&lt;span class="kLink" style="background-color: transparent; border-bottom: 1px solid blue; position: relative;"&gt;Server &lt;/span&gt;&lt;span class="kLink" style="background-color: transparent; border-bottom: 1px solid blue; position: relative;"&gt;2005&lt;/span&gt;&lt;/span&gt;&lt;span class="preLoadWrap" id="preLoadWrap6" style="position: relative;"&gt;&lt;div id="preLoadLayer6" style="display: none; left: -18px; position: absolute; top: -32px; z-index: 2147482647;"&gt;&lt;img class="preloadImg" src="http://kona.kontera.com/javascript/lib/imgs/grey_loader.gif" style="border: medium none; height: 22px; width: 22px;" /&gt;&lt;/div&gt;&lt;/span&gt;. It cannot be Oracle or another  vendor.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. How to create links to the mapped network  drives?&lt;br /&gt;Ans.&lt;/strong&gt; Creating links to mapped drives in WSS v3 or  MOSS 2007 can be done via&lt;br /&gt;the new content type for .lnk files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  While creating a Web part, which is the ideal location to Initialize my  new controls?&lt;br /&gt;Ans.&lt;/strong&gt; Override the CreateChildControls method  to include your new controls. You can control the exact rendering of  your controls by calling the .Render method in the web parts Render  method.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What are the two base classes a WebPart you  are going to use within SharePoint 2007 can inherit from?&lt;br /&gt;Ans.&lt;/strong&gt;  There are two base classes that a WebPart which is going to be consumed  by SharePoint can inherit from, either the&lt;br /&gt;SharePoint WebPart Base  class&lt;br /&gt;or the&lt;br /&gt;ASP.NET 2.0 WebPart base class.&lt;br /&gt;When inheriting  from the SharePoint WebPart Base class your derived WebPart class will  inherit from Microsoft.SharePoint.WebPartPages.WebPart. When inheriting  from the ASP.NET 2.0 WebPart base class your derived WebPart class will  inherit from System.Web.UI.WebControls.WebParts.WebPart. It is  considered good practice to use the ASP.NET WebPart base class since the  old base class is meant for backwards compatibility with previous  version of SharePoint, however there are four exception when it is  better to leverage functionality from the SharePoint WebPart base class:&lt;br /&gt;Cross  page connections&lt;br /&gt;Connections between Web Parts that are outside of a  Web Part zone&lt;br /&gt;Client-side connections (Web Part Page Services  Component)&lt;br /&gt;Data caching infrastructure&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is the  WebPartManager sealed class? What is its purpose?&lt;br /&gt;Ans.&lt;/strong&gt; The  WebPartManager sealed class is responsible for managing everything  occurring on a WebPart page, such as the WebParts (controls), events,  and misc. functionality that will occur in WebPartZones. For example,  the WebPartManager is responsible for the functionality that is provided  when you are working with moving a WebPart from WebPartZone to  WebPartZone. It is known as the “the central class of the Web Part  Control Set.”&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What does AllowUnsafeUpdates do ?&lt;br /&gt;Ans.&lt;/strong&gt;  If your code modifies Windows SharePoint Services data in some way, you  may need to allow unsafe updates on the &lt;span style="color: rgb(0, 0, 0) ! important; position: static;"&gt;&lt;span class="kLink" style="background-color: transparent; border-bottom: 1px solid blue; position: relative;"&gt;Web &lt;/span&gt;&lt;span class="kLink" style="background-color: transparent; border-bottom: 1px solid blue; position: relative;"&gt;site&lt;/span&gt;&lt;/span&gt;&lt;span class="preLoadWrap" id="preLoadWrap7" style="position: relative;"&gt;&lt;div id="preLoadLayer7" style="display: inline; left: -18px; position: absolute; top: -32px; z-index: 2147482648;"&gt;&lt;img class="preloadImg" src="http://kona.kontera.com/javascript/lib/imgs/grey_loader.gif" style="border: medium none; height: 22px; width: 22px;" /&gt;&lt;/div&gt;&lt;/span&gt;, without requiring a security  validation. You can do by setting the AllowUnsafeUpdates property.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  What does RunWithElevatedPrivileges do?&lt;br /&gt;Ans.&lt;/strong&gt; There are  certain object model calls model that require site-administration  privileges. To bypass access-denied error, we use  RunWithElevatedPrivileges property when request is initiated by a  nonprivileged user. We can successfully make calls into the object model  by calling the RunWithElevatedPrivileges method provided by the  SPSecurity class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What does SPWeb.EnsureUser method  do?&lt;br /&gt;Ans.&lt;/strong&gt; Checks whether the specified login name belongs to a  valid user of the Web site, and if the login name does not already  exist, adds it to the Web site.&lt;br /&gt;e.g SPUser usr =  myWeb.EnsureUser("user");&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is a SPSite and SPWeb  object, and what is the difference between each of the objects?&lt;br /&gt;Ans.&lt;/strong&gt;  The SPSite object represents a collection of sites (site collection [a  top level site and all its subsites]). The SPWeb object represents an  instance SharePoint Web, and SPWeb object contains things like the  actual content. A SPSite object contains the various subsites and the  information regarding them.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What does a  SPWebApplication object represent?&lt;br /&gt;Ans.&lt;/strong&gt; The SPWebApplication  objects represents a SharePoint Web Application, which essentially is  an IIS virtual server. Using the class you can instigate high level  operations, such as getting all the features of an entire Web  Application instance, or doing high level creation operations like  creating new Web Applications through code.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. Would you  use SPWebApplication to get information like the SMTP address of the  SharePoint site?&lt;br /&gt;Ans.&lt;/strong&gt; Yes, since this is a Web Application  level setting. You would iterate through each SPWebApplication in the  SPWebApplication collection, and then use the appropriate property calls  (OutboundMailServiceInstance) in order to return settings regarding the  mail service such as the SMTP address.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. How do you  return SharePoint List items using SharePoint web services?&lt;br /&gt;Ans.&lt;/strong&gt;  In order to retrieve list items from a SharePoint list through Web  Services, you should use the lists.asmx web service by establishing a  web reference in Visual Studio. The lists.asmx exposes the GetListItems  method, which will allow the return of the full content of the list in  an XML node. It will take parameters like the GUID of the name of the  list you are querying against, the GUID of the view you are going to  query, etc.&lt;br /&gt;Side Question: I got asked how I built queries with the  lists.asmx web service. In order to build queries with this service, one  of the parameters that the GetListItems method exposes is the option to  build a CAML query. There are other ways to do this as well, but that  was how I answered it.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. When retrieving List items  using SharePoint Web Services, how do you specify explicit credentials  to be passed to access the list items?&lt;br /&gt;Ans.&lt;/strong&gt; In order to  specify explicit credentials with a Web Service, you generally  instantiate the web service, and then using the credentials properties  of the Web Service object you use the System.Net.NetworkCredential class  to specify the username, password, and domain that you wish to pass  when making the web service call and operations.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What  is CAML, and why would you use it?&lt;br /&gt;Ans.&lt;/strong&gt; CAML stands for  Collaborative Application Markup Language. CAML is an XML based language  which provides data constructs that build up the SharePoint fields,  view, and is used for table definition during site provisioning. CAML is  responsible for rending data and the resulting HTML that is output to  the user in SharePoint. CAML can be used for a variety of circumstances,  overall is used to query, build and customize SharePoint based sites. A  general use would be building a CAML query in a SharePoint WebPart in  order to retrieve values from a SharePoint list.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What  is impersonation, and when would you use impersonation?&lt;br /&gt;Ans.&lt;/strong&gt;  Impersonation can basically provide the functionality of executing  something in the context of a different identity, for example assigning  an account to users with anonymous access. You would use impersonation  in order to access resources on behalf of the user with a different  account, that normally, that wouldn’t be able to access or execute  something.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What are WebPart properties, and what are  some of the attributes you see when declaring WebPart properties in  code?&lt;br /&gt;Ans.&lt;/strong&gt; WebPart properties are just like ASP.NET control  properties, they are used to interact with and specify attributes that  should be applied to a WebPart by a user. Some of the attributes you see  with ASP.NET 2.0 properties are WebDescription, WebDisplayName,  Category, Personalizable, and WebBrowsable. Although most of these  properties come from the System.Web.UI.WebControls.WebParts class, ones  like Category come out of System.ComponentModel namespace.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  Why are properties important in WebPart development, and how have you  exploited them in past development projects? What must each custom  property have?&lt;br /&gt;Ans.&lt;/strong&gt; Properties are important because  WebParts allow levels of personalization for each user. WebPart  properties make it possible for a user to interact, adjust, and increase  overall experience value with the programmatic assets that you develop  without having the need to use an external editor or right any code. A  very simple example of exploiting a property would be something like  allowing the user to change the text on the WebPart design interface so  that they can display whatever string of text they desire.&lt;br /&gt;Each  custom property that you have must have the appropriate get and set  accessor methods.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What are ClassResources? How do you  reference and deploy resources with an ASP.NET 2.0 WebPart?&lt;br /&gt;Ans&lt;/strong&gt;.  ClassResources are used when inheriting from the  SharePoint.WebPart.WebPartPages.WebPart base class, and are defined in  the SharePoint solution file as things that should be stored in the  wpresources directory on the server. It is a helpful directory to use in  order to deploy custom images. In ASP.NET 2.0, typically things such as  images are referenced by embedding them as resources within an  assembly. The good part about ClassResources is they can help to  eliminate recompiles to change small interface adjustments or  alterations to external JavaScript files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is a  SharePoint Solution File? How does it differ from WebPart .cab files in  legacy development? What does it contain?&lt;br /&gt;Ans.&lt;/strong&gt; A SharePoint  solution file is essentially a .cabinet file with all a developers ustom  componets suffixed with a .wsp extension that aids in deployment. The  big difference with SharePoint solution files is is that a solution:&lt;br /&gt;allows  deployment to all WFE’s in a farm&lt;br /&gt;is highly manageable from the  interface allowing deployment, retraction, and versioning&lt;br /&gt;Can package  all types of assets like site definitions, feature definitions (and  associated components), Webparts, etc.&lt;br /&gt;Can provide Code Access  Security provisioning to avoid GAC deployments&lt;br /&gt;And much more..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  What is a .ddf file and what does it have to do with SharePoint  Solution creation?&lt;br /&gt;Ans.&lt;/strong&gt; A .ddf file is a data directive file  and is used when building the SharePoint solution bundle specifying the  source files and their destination locations. The important thing for  someone to understand is that the .ddf file will be passed as a  parameter to the MAKECAB utility to orchestrate construction of the  SharePoint solution file.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What file does a SharePoint  solution package use to orchestrate (describe) its packaged contents?&lt;br /&gt;Ans.&lt;/strong&gt;  The solution Manifest.XML file.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What deployment  mechanism can you use to instigate Code Access Security attributes for  your WebParts?&lt;br /&gt;Ans.&lt;/strong&gt; SharePoint solution files can add in  order to handle code access security deployment issues. This is done in  the element in the SharePoint solution manifest.XML, which makes it  easier to get assemblies the appropriate permissions in order to operate  in the bin directory of the web application.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What are  event receivers?&lt;br /&gt;Ans.&lt;/strong&gt; Event receivers are classes that  inherit from the SpItemEventReciever or SPListEventReciever base class  (both of which derive out of the abstract base class  SPEventRecieverBase), and provide the option of responding to events as  they occur within SharePoint, such as adding an item or deleting an  item.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. When would you use an event receiver?&lt;br /&gt;Ans.&lt;/strong&gt;  Since event receivers respond to events, you could use a receiver for  something as simple as canceling an action, such as deleting a document  library by using the Cancel property. This would essentially prevent  users from deleting any documents if you wanted to maintain retention of  stored data.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What base class do event receivers  inherit from?&lt;br /&gt;Ans.&lt;/strong&gt; Event receivers either inherit from the  SPListEventReciever base class or the SPItemEventReciever base class,  both which derive from the abstract base class SPEventReceiverBase.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  If I wanted to not allow people to delete documents from a document  library, how would I go about it?&lt;br /&gt;Ans.&lt;/strong&gt; You would on the  ItemDeleting event set: properties.Cancel= true.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What  is the difference between an asynchronous and synchronous event  receivers?&lt;br /&gt;Ans.&lt;/strong&gt; An asynchronous event occurs after an action  has taken place, and a synchronous event occurs before an action has  take place. For example, an asynchronous event is ItemAdded, and its  sister synchronous event is ItemAdding&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. Workflow  can be applied to what all elements of SharePoint ?&lt;br /&gt;Ans.&lt;/strong&gt;  While workflow associations are often created directly on lists and  document libraries, a workflow association can also be created on a  content type that exists within the Content Type Gallery for the current  site or content types defined within a list. In short, it can be  applied ...&lt;br /&gt;At the level of a list (or document library)&lt;br /&gt;At the  level of a content type defined at site scope&lt;br /&gt;At the level of a  content type defined at list scope&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What are the ways  to initiate the workflow ?&lt;/strong&gt;1. Automatic&lt;br /&gt;2. Manual  (standard WSS UI interface)&lt;br /&gt;3. Manual (Custom UI Interface)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.  What are the types of input forms that can be created for a workflow ?&lt;br /&gt;Ans.&lt;/strong&gt;  You can create four different types of input forms including an  association form, an initiation form, a modification form, and a task  edit form. Note that these forms are optional when you create a workflow  template.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. While creating a Webpart, which is the  ideal location to Initialize my new controls ?&lt;br /&gt;Ans.&lt;/strong&gt; Override  the CreateChildControls method to include your new controls. To make  sure that the new controls are initialized.. call 'EnsureChildControls'  in the webparts Render method. You can control the exact Rendering of  your controls by calling the .Render method in the webparts Render  method.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. How to query from multiple lists ?&lt;br /&gt;Ans.&lt;/strong&gt;  Use SPSiteDataQuery to fetch data from multiple lists.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q.How  Does SharePoint work?&lt;br /&gt;Ans.&lt;/strong&gt; The browser sends a DAV packet  to IIS asking to perform a document check in. PKMDASL.DLL, an ISAPI DLL,  parses the packet and sees that it has the proprietary INVOKE command.  Because of the existence of this command, the packet is passed off to  msdmserv.exe, who in turn processes the packet and uses EXOLEDB to  access the WSS, perform the operation and send the results back to the  user in the form of XML.&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Q. What is ServerUpdate() ?&lt;br /&gt;Ans.&lt;/strong&gt;  Any changes in the list, i.e. new addition or modification of an item..  the operation is complete by calling the Update method.&lt;br /&gt;But if a  List is set to maintain versions .. and you are editing an item, but  don't want to save it as a new version, then use the SystemUpdate method  instead and pass in 'false' as the parameter.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Q. What is  query.ViewAttributes OR How can you force SPQuery to return results  from all the folders of the list?&lt;br /&gt;Ans.&lt;/strong&gt; If you use SPQuery on  any SPlist .. it will bring back results from the current folder only.&lt;br /&gt;If  you want to get results from all the folders in the list.. then you  need to specify the scope of the query by the use of ViewAttributes..&lt;br /&gt;e.g.  query.ViewAttributes = "Scope=\"Recursive\"";&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-633897327792854391?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/633897327792854391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/sharepoint-interview-questions-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/633897327792854391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/633897327792854391'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/sharepoint-interview-questions-2.html' title='SharePoint Interview Questions - 2'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-5660638432954908913</id><published>2010-04-12T20:22:00.001+05:30</published><updated>2010-04-12T20:26:38.250+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Workflows'/><category scheme='http://www.blogger.com/atom/ns#' term='Infopath'/><title type='text'>Add Basic Workflow with InfoPath Roles and Rules</title><content type='html'>&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 11" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 11" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CUsers%5Cvinodkum%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C14%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:Wingdings;	panose-1:5 0 0 0 0 0 0 0 0 0;	mso-font-charset:2;	mso-generic-font-family:auto;	mso-font-pitch:variable;	mso-font-signature:0 268435456 0 0 -2147483648 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;}@font-face	{font-family:Verdana;	panose-1:2 11 6 4 3 5 4 4 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1593833729 1073750107 16 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin-top:0in;	margin-right:0in;	margin-bottom:10.0pt;	margin-left:0in;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:Calibri;	mso-fareast-font-family:"Times New Roman";	mso-bidi-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;} /* List Definitions */ @list l0	{mso-list-id:432408482;	mso-list-template-ids:-1207010238;}@list l0:level1	{mso-level-number-format:bullet;	mso-level-text:;	mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-ansi-font-size:10.0pt;	font-family:Symbol;}ol	{margin-bottom:0in;}ul	{margin-bottom:0in;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Two user roles, one named "Employee" and      one named "Manager." &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Two views, one named "Expenses" and one      named "Manager Approval." &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Two data connections for submitting the form by      e-mail, one called "Standard" and one called "For      Approval." &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;A "Total" field in the data source.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana; font-size: 9pt; line-height: 140%;"&gt;Adding User Roles:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 9pt; line-height: 140%;"&gt;Tools &lt;/span&gt;&lt;span style="color: black; font-family: Wingdings; font-size: 9pt; line-height: 140%;"&gt;--&amp;gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana; font-size: 9pt; line-height: 140%;"&gt; User Roles&lt;/span&gt;&lt;span style="color: black; font-family: Wingdings; font-size: 9pt; line-height: 140%;"&gt; --&amp;gt; &lt;/span&gt;&lt;span style="color: black; font-family: Verdana; font-size: 9pt; line-height: 140%;"&gt;Add&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_C7Wh6Zu7TIc/S8M0JMy4WRI/AAAAAAAAACE/KxpOyFqo1yQ/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="201" src="http://2.bp.blogspot.com/_C7Wh6Zu7TIc/S8M0JMy4WRI/AAAAAAAAACE/KxpOyFqo1yQ/s320/1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 11" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 11" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CUsers%5Cvinodkum%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C13%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;}@font-face	{font-family:Verdana;	panose-1:2 11 6 4 3 5 4 4 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1593833729 1073750107 16 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin-top:0in;	margin-right:0in;	margin-bottom:10.0pt;	margin-left:0in;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:Calibri;	mso-fareast-font-family:"Times New Roman";	mso-bidi-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;} /* List Definitions */ @list l0	{mso-list-id:1912693100;	mso-list-template-ids:2030306900;}@list l0:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}@list l1	{mso-list-id:2005471811;	mso-list-template-ids:-1699300080;}@list l1:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}@list l2	{mso-list-id:2099403603;	mso-list-template-ids:-1429029774;}@list l2:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}ol	{margin-bottom:0in;}ul	{margin-bottom:0in;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;Adding a View:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;For the purposes of demonstrating how to switch views, rename the default view and add a second view to the form template: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;On the &lt;b&gt;Views&lt;/b&gt; task pane, click the &lt;b&gt;View      Properties&lt;/b&gt; button. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Change "View 1" in the &lt;b&gt;View name&lt;/b&gt; box      to "Expenses." &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Add a New View&lt;/b&gt; link on the &lt;b&gt;Views&lt;/b&gt;      task pane. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Name the new view "Manager Approval." &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;Adding a Rule to Switch Views on Open:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Once you have user roles defined and a view added, it is easy to create a rule to switch views based on the current user's role. To switch views when a form is first opened, the rule must run at that time. Follows these steps to create a rule that runs when a form is opened:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;Form Options&lt;/b&gt; from the &lt;b&gt;Tools&lt;/b&gt; menu.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Open and Save&lt;/b&gt; category in the &lt;b&gt;Form      Options&lt;/b&gt; dialog box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Then click the &lt;b&gt;Rules&lt;/b&gt; button in the &lt;b&gt;Open      behavior&lt;/b&gt; section.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;In the &lt;b&gt;Rules for Opening Forms&lt;/b&gt; dialog box: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Add&lt;/b&gt; button. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Give the rule a name. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Set Condition&lt;/b&gt; button.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 115%;"&gt;This will display the &lt;b&gt;Condition&lt;/b&gt; dialog box, which contains a series of three drop-down list boxes as shown in Figure 2. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 115%;"&gt;SwitchToMangerView&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_C7Wh6Zu7TIc/S8M0fJ59MoI/AAAAAAAAACM/djH7_ojH7Ns/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_C7Wh6Zu7TIc/S8M0fJ59MoI/AAAAAAAAACM/djH7_ojH7Ns/s320/2.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 11" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 11" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CUsers%5Cvinodkum%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C15%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:Wingdings;	panose-1:5 0 0 0 0 0 0 0 0 0;	mso-font-charset:2;	mso-generic-font-family:auto;	mso-font-pitch:variable;	mso-font-signature:0 268435456 0 0 -2147483648 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;}@font-face	{font-family:Verdana;	panose-1:2 11 6 4 3 5 4 4 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1593833729 1073750107 16 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin-top:0in;	margin-right:0in;	margin-bottom:10.0pt;	margin-left:0in;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:Calibri;	mso-fareast-font-family:"Times New Roman";	mso-bidi-font-family:"Times New Roman";}h2	{mso-style-link:"Heading 2 Char";	mso-margin-top-alt:auto;	margin-right:0in;	mso-margin-bottom-alt:auto;	margin-left:0in;	mso-pagination:widow-orphan;	mso-outline-level:2;	font-size:14.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:Calibri;	font-weight:bold;}p	{mso-style-noshow:yes;	margin-top:0in;	margin-right:0in;	margin-bottom:7.5pt;	margin-left:0in;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:Calibri;}span.Heading2Char	{mso-style-name:"Heading 2 Char";	mso-style-locked:yes;	mso-style-link:"Heading 2";	mso-ansi-font-size:14.0pt;	mso-bidi-font-size:14.0pt;	font-family:Calibri;	mso-fareast-font-family:Calibri;	mso-ansi-language:EN-US;	mso-fareast-language:EN-US;	mso-bidi-language:AR-SA;	font-weight:bold;}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;} /* List Definitions */ @list l0	{mso-list-id:41754410;	mso-list-template-ids:-2146411840;}@list l0:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}@list l1	{mso-list-id:170222731;	mso-list-template-ids:-971193000;}@list l1:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}@list l2	{mso-list-id:650017994;	mso-list-template-ids:1715086150;}@list l2:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}@list l3	{mso-list-id:709183609;	mso-list-template-ids:334662220;}@list l3:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}@list l4	{mso-list-id:1381591034;	mso-list-template-ids:1660825496;}@list l4:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}@list l5	{mso-list-id:1740636204;	mso-list-template-ids:-1899193894;}@list l5:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}@list l6	{mso-list-id:2009552990;	mso-list-template-ids:-986684540;}@list l6:level1	{mso-level-tab-stop:.5in;	mso-level-number-position:left;	text-indent:-.25in;	mso-bidi-font-family:"Times New Roman";}ol	{margin-bottom:0in;}ul	{margin-bottom:0in;}--&gt;&lt;/style&gt;  &lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the first drop-down and select &lt;b&gt;User's current role&lt;/b&gt;. The second drop-down, unless changed, has a value of &lt;b&gt;is equal to&lt;/b&gt;. Click the third drop-down to select "Manager," then click &lt;b&gt;OK&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Once the condition is set, add an action to switch the view based on the user's role.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Add Action&lt;/b&gt; button on the &lt;b&gt;Rule&lt;/b&gt;      dialog box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Choose &lt;b&gt;Switch views&lt;/b&gt; from the &lt;b&gt;Action&lt;/b&gt;      drop-down list box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Choose the "Manager Approval" view from the      &lt;b&gt;View&lt;/b&gt; drop-down list box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Press &lt;b&gt;OK&lt;/b&gt; four times to dismiss all dialog      boxes and return to the form.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;Adding Data Connections:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Tools&lt;/span&gt;&lt;span style="color: black; font-family: Wingdings; font-size: 10pt; line-height: 140%;"&gt;à&lt;/span&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt; &lt;b&gt;Data Connection&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;Create a new connection to:&lt;/b&gt;, then &lt;b&gt;Submit      data&lt;/b&gt; on the first screen of the &lt;b&gt;Data Connection Wizard&lt;/b&gt;. Click &lt;b&gt;Next&lt;/b&gt;.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;As an e-mail messsage&lt;/b&gt; for the &lt;b&gt;How do      you want to submit your data?&lt;/b&gt; option on the second screen. Click &lt;b&gt;Next&lt;/b&gt;.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;For the &lt;b&gt;To:&lt;/b&gt; line, insert a valid email      address. When creating the second data connection, use a different email      address in order to test the submit rules. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;For the &lt;b&gt;Subject:&lt;/b&gt; line, insert either      "Expense Report" for the "Standard" data connection or      "Expense Approval" for the "For Approval" data      connection. Click &lt;b&gt;Next&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Select &lt;b&gt;Send the form data as an attachment&lt;/b&gt;,      and check the &lt;b&gt;Attach the form template to ensure that users can open      the form&lt;/b&gt; checkbox. Click &lt;b&gt;Next&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Name the connection either "Standard" or      "For Approval," depending on which e-mail data connection you      are creating, then click &lt;b&gt;Finish&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Repeat steps 1 through 6 to create the second e-mail      data connection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: 140%; vertical-align: top;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;Adding a Total field&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Drag a &lt;b&gt;Text Box&lt;/b&gt; from the &lt;b&gt;Controls&lt;/b&gt; task      pane onto the form. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;With the text box selected, click &lt;b&gt;Text Box      Properties&lt;/b&gt; on the &lt;b&gt;Format&lt;/b&gt; menu. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;In the &lt;b&gt;Text Box Properties&lt;/b&gt; dialog box, change      the &lt;b&gt;Field name&lt;/b&gt; to "Total" and the &lt;b&gt;Data type&lt;/b&gt; to &lt;b&gt;Decimal      (double)&lt;/b&gt;, then click &lt;b&gt;OK&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: 140%; vertical-align: top;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;Enabling the Submit Button and Adding Logic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;Submit Options&lt;/b&gt; on the &lt;b&gt;Tools&lt;/b&gt; menu.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Check the &lt;b&gt;Allow users to submit this form&lt;/b&gt; and      click &lt;b&gt;Perform custom action using Rules&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Change the caption of the &lt;b&gt;Show the Submit menu      item and the Submit toolbar button&lt;/b&gt; to "Submit Expenses" and      then click the &lt;b&gt;Rules&lt;/b&gt; button.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; vertical-align: top;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;To create the Manager Submit rule:&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Add&lt;/b&gt; button on the &lt;b&gt;Rules&lt;/b&gt;      dialog box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Name the rule "Manager Submit" and press      the &lt;b&gt;Set Condition&lt;/b&gt; button. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;In the &lt;b&gt;Condition&lt;/b&gt; dialog box, select &lt;b&gt;User's      current role&lt;/b&gt;, &lt;b&gt;is equal to&lt;/b&gt;, and "Manager" for the      three drop-down list boxes. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Add Action&lt;/b&gt; button on the &lt;b&gt;Rules&lt;/b&gt;      dialog box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Select &lt;b&gt;Submit using a data connection&lt;/b&gt; from the      &lt;b&gt;Action&lt;/b&gt; drop-down box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Select "Standard" from the Data connection      drop-down box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Stop processing rules when this rule      finishes&lt;/b&gt; checkbox. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; vertical-align: top;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;To create the Employee Submit rule:&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Add&lt;/b&gt; button on the &lt;b&gt;Rules&lt;/b&gt;      dialog box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Name the rule "Employee Submit" and press      the &lt;b&gt;Set Condition&lt;/b&gt; button. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;In the Condition dialog box, select &lt;b&gt;User's current      role&lt;/b&gt;, &lt;b&gt;is equal to&lt;/b&gt;, and "Employee" for the three      drop-down list boxes. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;And &amp;gt;&amp;gt;&lt;/b&gt; button at the end of      the third drop-down list box to add a second condition. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;Select a field or group &lt;/b&gt;from the first      drop-down list box and choose the "Total" field. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;is less than or equal to &lt;/b&gt;in the second      drop-down list box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;Type a number&lt;/b&gt; in the third drop-down      list box and type "1000" without the quotation marks. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Add Action&lt;/b&gt; button on the &lt;b&gt;Rules&lt;/b&gt;      dialog box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Select &lt;b&gt;Submit using a data connection&lt;/b&gt; from the      &lt;b&gt;Action&lt;/b&gt; drop-down box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Select "Standard" from the Data connection      drop-down box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the&lt;b&gt; Stop processing rules when&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Verdana; font-size: 8pt; line-height: 140%;"&gt; this rule      finishes&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Verdana; font-size: 8pt; line-height: 140%;"&gt; checkbox. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 8pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; vertical-align: top;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;To create the Approval Submit rule:&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana;"&gt;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click the &lt;b&gt;Add Action&lt;/b&gt; button on the &lt;b&gt;Rules&lt;/b&gt;      dialog box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Name the rule "Approval Submit" and press      the &lt;b&gt;Add Action&lt;/b&gt; button. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Select &lt;b&gt;Submit using a data connection&lt;/b&gt; from the      &lt;b&gt;Action&lt;/b&gt; drop-down box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Select "For Approval" from the Data      connection drop-down box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: black; line-height: 140%; margin-bottom: 2.25pt; vertical-align: top;"&gt;&lt;span style="font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt; on the &lt;b&gt;Rule&lt;/b&gt; dialog box, &lt;b&gt;OK&lt;/b&gt;      on the &lt;b&gt;Rules&lt;/b&gt; dialog box, and then &lt;b&gt;OK&lt;/b&gt; on the &lt;b&gt;Button      Properties&lt;/b&gt; dialog box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2 style="line-height: 140%; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 11pt; line-height: 140%;"&gt;Previewing by Role:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 140%; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;To test the form logic, you need to preview the form using different roles. Click &lt;b&gt;Form Options&lt;/b&gt; from the &lt;b&gt;Tools&lt;/b&gt; menu and click the &lt;b&gt;Preview&lt;/b&gt; category. Select either "Employee" or "Manager" from the &lt;b&gt;Preview as&lt;/b&gt; drop-down list box, then click &lt;b&gt;OK&lt;/b&gt;. These options are also accessible from the &lt;b&gt;Preview&lt;/b&gt; split-button on the &lt;b&gt;Standard&lt;/b&gt; toolbar. Click &lt;b&gt;Preview&lt;/b&gt; on the &lt;b&gt;Standard&lt;/b&gt; toolbar to test the form logic.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 140%; vertical-align: top;"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 140%;"&gt;After selecting "Employee" from the &lt;b&gt;Preview as&lt;/b&gt; drop-down, preview the form and enter a value of "1500" in the "Total" field and click &lt;b&gt;Submit Expenses&lt;/b&gt;. This will display the e-mail submit dialog, which will send an e-mail to the address entered in the "For Approval" data connection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;  &lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 115%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black; font-family: Verdana; font-size: 10pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-5660638432954908913?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/5660638432954908913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/add-basic-workflow-with-infopath-roles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/5660638432954908913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/5660638432954908913'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/add-basic-workflow-with-infopath-roles.html' title='Add Basic Workflow with InfoPath Roles and Rules'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_C7Wh6Zu7TIc/S8M0JMy4WRI/AAAAAAAAACE/KxpOyFqo1yQ/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-3368962804292847326</id><published>2010-04-12T20:20:00.000+05:30</published><updated>2010-04-12T20:20:32.073+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='PDF Ifilter'/><title type='text'>Installing The PDF Ifilter In SharePoint and Registering the PDF Icon</title><content type='html'>Here are the steps for adding the PDF ifilter and icon &lt;br /&gt;1. Download Adobe iFilter 6 here: &lt;br /&gt;http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611 &lt;br /&gt;2. Install Adobe iFilter on the Indexing Server (SharePoint Server 2007) &lt;br /&gt;3. Add it to the File Type in the SSP &lt;br /&gt;     a. In Central Administration click on Application Management &lt;br /&gt;     b. Under Office SharePoint Server Shared Services click: &lt;br /&gt;        Create or configure this farm's shared services &lt;br /&gt;     c. Click on the defualt SSP &lt;br /&gt;     d. Under Search click Search settings &lt;br /&gt;     e. Under Crawl Settings click File Types &lt;br /&gt;     f. Click New File Type and add pdf &lt;br /&gt;4. Add PDF Icon: &lt;br /&gt;     a. Switch to the folder that contains the Adobe PDF Filter 6.0 files. &lt;br /&gt;        For example, switch to the following folder: &lt;br /&gt;        Drive:\Program Files\Adobe\PDF IFilter 6.0 &lt;br /&gt;     b. Type regsvr32.exe pdffilt.dll, and then press ENTER. &lt;br /&gt;     c. If you receive a message that the operation was successful, click OK . &lt;br /&gt;     d. Copy the .gif file that you want to use for the icon to the following &lt;br /&gt;        folder on the server: &lt;br /&gt;        Drive:\Program Files\Common Files\Microsoft Shared\Web Server &lt;br /&gt;        Extensions\12\Template\Images &lt;br /&gt;        Icon can be found here (use 17 x 17 one): &lt;br /&gt;        http://www.adobe.com/misc/linking.html &lt;br /&gt;     e. Edit the Docicon.xml file to include the .pdf extension. To do so: &lt;br /&gt;        Start Notepad, and then open the Docicon.xml file. &lt;br /&gt;        Drive:\Program Files\Common Files\Microsoft Shared\Web server &lt;br /&gt;        extensions\12\Template\Xml &lt;br /&gt;     f. Add an entry for the .pdf extension. For example, where NameofIconFile &lt;br /&gt;        is the name of the .gif file: &lt;br /&gt;        &lt;Mapping Key="pdf" Value="NameofIconFile.gif"/&gt; &lt;br /&gt;     g. On the File menu, click Save, and then quit Notepad.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-3368962804292847326?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/3368962804292847326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/installing-pdf-ifilter-in-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3368962804292847326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3368962804292847326'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/installing-pdf-ifilter-in-sharepoint.html' title='Installing The PDF Ifilter In SharePoint and Registering the PDF Icon'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-1045458668622030181</id><published>2010-04-12T20:17:00.000+05:30</published><updated>2010-04-12T20:21:11.743+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='User Controls'/><title type='text'>Deploying User Control as a WebPart</title><content type='html'>Introduction:&lt;br /&gt;To Create a Web Part for sharepoint sites, Create a User control in Visual studio(handling all the events). Drag it into a sharepoint Webpart application(project). And Finally, Deploy the webpart into sharepoint site.&lt;br /&gt;Steps:&lt;br /&gt;1. Create a blank web application and add a web user control (name WebUserControl1.ascx) into it.&lt;br /&gt;&lt;br /&gt;2. Add one TextField and a Button to the user control. The ids of these controls are TextBox1 and Button1 respectively.&lt;br /&gt;&lt;br /&gt;3. Add a button1_click even in codebehind file of WebUserControl1 , i.e. WebUserControl1.cs&lt;br /&gt;Like:&lt;br /&gt;protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;TextBox1.Text = "I am in Web part -&gt; In user control ";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;4. Now copy this user control to a new folder,name it "controls".The folder should be placed under your (Web Application)&lt;br /&gt;path.eg: “C:\Inetpub\wwwroot\wss\VirtualDirectories\80\controls\”.&lt;br /&gt;&lt;br /&gt;5. Create a New Web part application using Visual Studio SharePoint Web Part template.&lt;br /&gt;&lt;br /&gt;And The code in Web part application goes below:&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Runtime.InteropServices;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Xml.Serialization;&lt;br /&gt;using Microsoft.SharePoint;&lt;br /&gt;using Microsoft.SharePoint.WebControls;&lt;br /&gt;using Microsoft.SharePoint.WebPartPages;&lt;br /&gt;namespace WepPart_Usercontrol&lt;br /&gt;{&lt;br /&gt;[Guid("68dd6b12-7b2d-4dc8-941f-80acbf83f16f")]&lt;br /&gt;&lt;br /&gt;public class WepPart_Usercontrol : System.Web.UI.WebControls.WebParts.WebPart&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;UserControl userControl;&lt;br /&gt;&lt;br /&gt;public WepPart_Usercontrol()&lt;br /&gt;{&lt;br /&gt;this.ExportMode = WebPartExportMode.All;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;protected override void Render(HtmlTextWriter writer)&lt;br /&gt;{&lt;br /&gt;userControl.RenderControl(writer);&lt;br /&gt;}&lt;br /&gt;protected override void CreateChildControls()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;base.CreateChildControls();&lt;br /&gt;userControl = (UserControl)Page.LoadControl(@"/controls/WebUserControl1.ascx");&lt;br /&gt;Controls.Add(userControl);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-1045458668622030181?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/1045458668622030181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/deploying-user-control-as-webpart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/1045458668622030181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/1045458668622030181'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/04/deploying-user-control-as-webpart.html' title='Deploying User Control as a WebPart'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-8111164759635236319</id><published>2010-02-22T12:47:00.000+05:30</published><updated>2010-04-27T12:56:29.329+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint Interview Questions'/><title type='text'>SharePoint Interview Questions - 1</title><content type='html'>&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;1) Where are Master Pages and Layout Pages located in a SharePoint site?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: masterPage(Master Page Gallery) under _catalogs folder of root site.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;2)What will you use to make a web part zone invisible when its not containing any web part?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:You can set the id and the name attribute of the tag containing the web part zone as _invisibleIfEmpty.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;For e.g&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;WebPart zone....&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;3)What is the Difference between Master Pages and Layout Pages in SharePoint?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:Master pages and page layouts dictate the overall look and feel of your SharePoint site.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Differences are&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;1) Master pages contain controls that are shared across multiple page layouts,&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;such as navigation,search, or language-preference for multilingual sites.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Page layouts contain field controls and Web Parts.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;2) Page layouts can be used by all page instances that are based on that&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;page layout.Master pages can be used by all page instances in a site.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;&lt;br /&gt;4)Explain the Page Processing Model?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:The following list gives a step-by-step breakdown of how ASP.NET 2.0 and Windows SharePoint Services 3.0 interact to render pages in a SharePoint site:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;1) The browser requests a Web page from Microsoft Internet Information Services IIS).&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;2) IIS passes the request to ASP.NET 2.0.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;3) An HttpApplication pipeline is created for the request.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;4) ASP.NET 2.0 fetches the page via the Windows SharePoint Services 3.0 file provider. ASP.NET passes the URL to the file provider, and the file provider fetches the page and returns the page stream. The Windows SharePoint Services file provider implements caching and reduces round-trips to the database.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;5) ASP.NET loads a Page class, parses the page stream, and finds a reference to the page layout upon which the page is based.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;6) The ASP.NET engine compiles the page stream and stores it in memory.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;7) ASP.NET queries the Windows SharePoint Services file provider for the page layout.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;8) ASP.NET loads the stream for the page layout associated with the current page.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;9) ASP.NET compiles the page layout and stores it in memory. ASP.NET can free this memory later if the system needs memory.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;10) ASP.NET determines the master page for the site and fetches the master page via the Windows SharePoint Services file provider.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;11) ASP.NET compiles the master page and writes to the disk so you never have to recompile the master page unless you modify it.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;12) The page layout runs each control on the page in the context of the page that was requested.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;13) ASP.NET updates the necessary caches.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;14) IIS returns the page to the browser.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;5) What are absolute and relative URL?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: When a URL is absolute, it defines unambiguously where the object is located.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Relative Url is an abbreviated to a current location.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;6) What Do you know about SharePoint Object Model?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:In Sharepoint Object model there are two Important namespaces, Microsoft.Office.Server and Microsoft.SharePoint . The Microsoft.Office.Server namespace is the root namespace of all Office Server objects and Microsoft.SharePoint is the root namespace for all WSS objects.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In Sharepoint Object model there are two Important namespaces.&lt;br /&gt;&lt;br /&gt;The  &lt;span style="color: #990000;"&gt;Microsoft.Office.Server&lt;/span&gt;  namespace is the root namespace of all Office Server objects and &lt;span style="color: #990000;"&gt;Microsoft.SharePoint&lt;/span&gt; is the root  namespace for all WSS objects.&lt;br /&gt;&lt;br /&gt;The Chart Below illustrates some  of the key classes contained in each of these namespaces, as well as to  which functional area they belong.&lt;br /&gt;&lt;br /&gt;Document Libraries  (Microsoft.SharePoint)&lt;br /&gt;&lt;span style="color: #333399;"&gt;SPDocumentLibrary  , SPPictureLibrary&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Business Data Catalog  (Microsoft.Office.Server.ApplicationRegistry.Administration)&lt;br /&gt;&lt;span style="color: #333399;"&gt;EntityCollection , ApplicationRegistry&lt;/span&gt;&lt;br /&gt;Features  (Microsoft.SharePoint)&lt;br /&gt;&lt;span style="color: #333399;"&gt;SPFeatureDefinition,  SPFeatureScope, SPElementDefinition, SPFeature, SPFeatureProperty&lt;/span&gt;&lt;br /&gt;Sites  (Microsoft.SharePoint)&lt;br /&gt;&lt;span style="color: #333399;"&gt;SPSite,  SPSiteAdministration, SPSiteCollection, SPWeb&lt;/span&gt;&lt;br /&gt;Meetings  (Microsoft.SharePoint.Meetings)&lt;br /&gt;&lt;span style="color: #333399;"&gt;SPMeeting, MtgUtility&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;User Profiles  (Microsoft.Office.Server.UserProfiles)&lt;br /&gt;&lt;span style="color: #333399;"&gt;UserProfile, UserProfileManager&lt;/span&gt;&lt;br /&gt;Solutions  (Microsoft.SharePoint.Administration)&lt;br /&gt;&lt;span style="color: #333399;"&gt;SPsolution, SPFeatureReceiver, SPSolutionCollection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Lists  (Microsoft.SharePoint)&lt;br /&gt;&lt;span style="color: #333399;"&gt;SPList,  SPListItem, SPListItemCollection&lt;/span&gt;&lt;br /&gt;Notes:&lt;br /&gt;* To use the  SharePoint API, your code must reside on one of the machines in a  SharePoint&lt;br /&gt;application server farm. Your code can still work with  other sites in the farm from any&lt;br /&gt;other site in the farm, but you  cannot, for example, work with the SharePoint API from a&lt;br /&gt;machine on  which MOSS or WSS is not installed.&lt;br /&gt;&lt;br /&gt;* The only practical way to  consume SharePoint data and functionality from a remote client is to use  the SharePoint web services.&lt;br /&gt;&lt;br /&gt;* The object model is not designed  to support Remoting.&lt;br /&gt;&lt;br /&gt;* To add a reference to a Sharepoint API,  Right-click the project(in VS) and select Add Reference. Click the  Browse tab and select the&lt;br /&gt;following directory:&lt;br /&gt;C:\program  files\common files\microsoft shared\web server extensions\12\isapi&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;7) How Do you implement Impersonation in SharePoint.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: By Using RunWithElevatedPrivileges method provided by SPSecurity class.&lt;/span&gt;&lt;br /&gt;Although not recommended, there may be times when you need your code to  perform certain functions that the current user does not have the  necessary permissions to perform.&lt;br /&gt;&lt;br /&gt;The SPSecurity class provides a  method (RunWithElevatedPrivileges) that allows you to run a subset of  code in the context of an account with higher privileges than the  current user.&lt;br /&gt;The premise is that you wrap the  RunWithElevatedPrivileges method around your code. And also In certain  circumstances, such as when working with Web forms, you may also need to  set the AllowSafeUpdates method to true to temporarily turn off  security validation within your code. If you use this technique, it is  imperative that you set the AllowSafeUpdates method back to false to  avoid any potential security risks.&lt;br /&gt;&lt;br /&gt;Code example&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #6666cc;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #6666cc;"&gt;SPSite mySite = SPContext.Current.Site;&lt;br /&gt;SPWeb  myWeb = mySite.OpenWeb();&lt;br /&gt;&lt;br /&gt;//Using RunWithElevatedPrivileges&lt;br /&gt;&lt;br /&gt;SPSecurity.RunWithElevatedPrivileges(delegate()&lt;br /&gt;{&lt;br /&gt;//  Get references to the site collection and site for the current context.&lt;br /&gt;//  The using statement makes sures these references are disposed properly.&lt;br /&gt;&lt;br /&gt;using  (SPSite siteCollection = new SPSite(mySite.ID))&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;using  (SPWeb web = siteCollection.OpenWeb(myWeb.ID))&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;web.AllowUnsafeUpdates  = true;&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;//Your code&lt;br /&gt;} &lt;/span&gt;&lt;span style="color: #6666cc;"&gt;&lt;br /&gt;&lt;br /&gt;web.AllowUnsafeUpdates = false;&lt;br /&gt;&lt;br /&gt;//siteCollection  = null;&lt;br /&gt;//web = null;&lt;br /&gt;&lt;br /&gt;}&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;8)What is the performance impact of RunWithElevatedPrivileges?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: RunWithElevatedPrivileges creates a new thread with the App Pool's credentials, blocking your current thread until it finishes.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;9) What is the difference between a Site Definition and a Site Template?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Site Definitions are stored on the hard drive of the SharePoint front end servers. They are used by the SharePoint application to generate the sites users can create. Site Templates are created by users as a copy of a site they have configured and modified so that they do not have to recreate lists, libraries, views and columns every time they need a new instance of a site.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;10) How Do you use\refer External Javascript and Css file in your WebPart?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: You can use javascript,Css or Image files placed in _Layouts or any other location by registering them on the webpart page. See Code examples at Using External Javascript, CSS or Image File in a WebPart.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;11) Can you add a Custom aspx or WebApplication Page in SharePoint ?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Yes, Following modification are required in the Page to display it in SharePoint.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;1. Add the references for various share point assemblies on the Page.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;2. Wrap the Code in PlaceHolderMain contentPlaceholder, so that it gets displayed as a content page.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;3. Specify SharePoint Master in aspx and Code behind. You can switch the master page in code behind of the Page as well.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;12) When should you dispose SPWeb and SPSite objects? And even more important, when not?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: You should always dispose them if you created them yourself, but not otherwise. You should never dispose SPContext.Current.Web/Site and you should normally not dispose SPWeb if IsRootWeb is true.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;13) When modifying a list item, what is the "main" difference between using SPListItem.Update() and SPListItem.SystemUpdate()?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:Using SystemUpdate() will not create a new version and will also retain timestamps.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;14) If you have an ItemUpdated or ItemUpdating event receiver and it causes an update to the item, how do you prevent another ItemUpdated and ItemUpdating event from being fired during your update?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Before performing your update, call DisableEventFiring(). &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;After update, call EnableEventFiring().&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;15) What is a SharePoint Feature? What files are used to define a feature?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: A SharePoint Feature is a functional component that can be activated and deactivate at various scopes throughout a SharePoint instances, scope of which are defined as 1. Farm level 2. Web Application level 3. Site level 4. Web level&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Features have their own receiver architecture, which allow you to trap events such as when a feature is Installing, Uninstalling, Activated, or Deactivated.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;The element types that can be defined by a feature include menu commands, link commands, page templates, page instances, list definitions, list instances, event handlers, and workflows.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;The two files that are used to define a feature are the feature.xml and manifest file(elements.xml). The feature XML file defines the actual feature and will make SharePoint aware of the installed feature. The manifest file contains details about the feature such as functionality.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;16) How Do you bind a Drop-Down Listbox with a Column in SharePoint List ?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Method 1 : You can get a datatable for all items in the list and add that table to a data set. Finally, specify the dataset table as datasource for dropdown listbox.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Method 2 : You can also use SPDatasource in your aspx or design page.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;See Code example Binding Drop-Down with Sharepoint List data&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #333399;"&gt;&lt;strong&gt;Method 1:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;if  (!Page.IsPostBack)&lt;br /&gt;{&lt;br /&gt;DataSet ds = new DataSet();&lt;br /&gt;&lt;br /&gt;SPSite  mySite = SPContext.Current.Site;&lt;br /&gt;SPWeb myWeb = mySite.OpenWeb();&lt;br /&gt;&lt;br /&gt;SPList  list = myWeb.Lists["ListName"];&lt;br /&gt;DataTable DTable_List =  list.Items.GetDataTable();&lt;br /&gt;DTable_List.TableName = "Table1";&lt;br /&gt;ds.Tables.Add(DTable_List);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DropDownList.DataSource  = ds.Tables["Table1"];&lt;br /&gt;DropDownList.DataTextField = "FieldName";&lt;br /&gt;DropDownList.DataValueField  = "FieldName";&lt;br /&gt;DropDownList.DataBind();&lt;br /&gt;DropDownList.SelectedIndex  = 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Method2:&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_C7Wh6Zu7TIc/S9aRkp6Jk8I/AAAAAAAAADI/xVWFXWo00qM/s1600/spdatasource.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_C7Wh6Zu7TIc/S9aRkp6Jk8I/AAAAAAAAADI/xVWFXWo00qM/s320/spdatasource.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;&lt;br /&gt;17) Can you name some of the tools used for SharePoint Administration?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;Axceler's ControlPoint&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Latest Version : ContolPoint 3.5&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Description : ControlPoint 3.5 helps enterprises adopt and embrace Microsoft SharePoint more than ever before. ControlPoint 3.5 boasts powerful new capabilities that give enterprises more control over their configuration and deployment of SharePoint while strengthening their SharePoint security.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Key Features: Moving sites, site collections, list, library, documents and items accross the farm.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;DocAve&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Latest Version : DocAve Software Platform v5.3&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Description : DocAve Software Platform v5.3, is considered the industry's most comprehensive software solution for SharePoint backup and recovery, administration, archiving, auditing, replication, reporting, compliance, and migration. This latest release introduces the DocAve Storage Optimization Suite, comprised of an enhanced DocAve Archiver module, and the new DocAve Connector and DocAve Extender modules - each delivering features that enable the efficient management of SharePoint storage.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Key Features : Used as a good SharePoint archiving solution. It has a great UI and performs good reporting and auditing.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;Nintex Workflow 2007&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Description : Nintex Workflow 2007 enables organizations to build complex workflow processes quickly and easily using a web browser interface. Nintex Workflow 2007 empowers users across the organization to automate business processes, review workflow activities and automate common SharePoint administrative tasks.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Key Features : Easy to Use, and well intergrates with Active Directory.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;18) What is Authentication and Authorization?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: An authentication system is how you identify yourself to the computer. The goal behind an authentication system is to verify that the user is actually who they say they are.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Once the system knows who the user is through authentication, authorization is how the system decides what the user can do.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;19) How Do you Increase trust level for a single WebPart for in the WebConfig file.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: To list a Web Part with Full Permissions within your Web Application while still retaining a WSS_Minimal permission set for all other Web Parts follow these steps:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;1. Make a copy of the WSS_Minimal.Config file from the 12\Config folder and paste it into the same folder renaming it to Custom_WSS_Minimal.Config.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;2. Edit the Custom_WSS_Minimal.Config file with an XML editor such as Visual Studio.NET or NotePad.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;3. Obtain the Public Key Token and Public Key Blob for the Web Part assembly that you want to deploy using the following command: sn –Tp filename.dll.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;4. Create a new entry in your Custom_WSS_Minimal.Config file for your WebPart.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;5. Create a new TrustLevel element for your config file in the Web.Config called Custom_WSS_Minimal that points to your custom file in the 12\config folder.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;6. Set the Trust Level of the Web.Config to Custom_WSS_Minimal&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;7. Recycle the Application Pool or run IISReset&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;8. Deploy &amp;amp; Test your Web Part.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;20)What SharePoint Databases are Created during the standard Install?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: During standard install, the following databases are created :&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SharePoint_AdminContent&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SharePoint_Config&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;WWS_Search_SERVERNAME%_%GUID_3%&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SharedServicesContent_%GUID_4%&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SharedServices1_DB_%GUID_5%&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SharedServices1_Search_DB_%&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;GUID_6%WSS_Content_%GUID_7%&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;21) What are content types?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: A content type is a flexible and reusable WSS type definition (or we can a template) that defines the columns and behavior for an item in a list or a document in a document library. For example, you can create a content type for a leave approval document with a unique set of columns, an event handler, and its own document template and attach it with a document library/libraries.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;22) Can a content type have receivers associated with it?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Yes, a content type can have an event receiver associated with it, either inheriting from the SPListEventReciever base class for list level events, or inheriting from the SPItemEventReciever base class. Whenever the content type is instantiated, it will be subject to the event receivers that are associated with it.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;23) What two files are typically (this is kept generally) included when developing a content type, and what is the purpose of each?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: There is generally the main content type file that holds things like the content type ID, name, group, description, and version. There is also the ContentType.Fields file which contains the fields to include in the content type that has the ID, Type, Name, DisplayName, StaticName, Hidden, Required, and Sealed elements. They are related by the FieldRefs element in the main content type file.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;24) Can a list definition be derived from a custom content type?&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Yes, a list definition can derive from a content type which can be seen in the schema.XML of the list definition in the element.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;25) While creating a Web part, which is the ideal location to Initialize my new controls?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Override the CreateChildControls method to include your new controls. You can control the exact rendering of your controls by calling the .Render method in the web parts Render method.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;26) How do you return SharePoint List items using SharePoint web services?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;In order to retrieve list items from a SharePoint list through Web Services, you should use the lists.asmx web service by establishing a web reference in Visual Studio. The lists.asmx exposes the GetListItems method, which will allow the return of the full content of the list in an XML node. It will take parameters like the GUID of the name of the list you are querying against, the GUID of the view you are going to query, etc.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;27) What are ClassResources? How do you reference and deploy resources with an ASP.NET 2.0 WebPart?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans:ClassResources are used when inheriting from the SharePoint.WebPart.WebPartPages.WebPart base class, and are defined in the SharePoint solution file as things that should be stored in the wpresources directory on the server. It is a helpful directory to use in order to deploy custom images. In ASP.NET 2.0, typically things such as images are referenced by embedding them as resources within an assembly. The good part about ClassResources is they can help to eliminate recompiles to change small interface adjustments or alterations to external JavaScript files.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;28)What are event receivers?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Event receivers are classes that inherit from the SpItemEventReciever or SPListEventReciever base class (both of which derive out of the abstract base class SPEventRecieverBase), and provide the option of responding to events as they occur within SharePoint, such as adding an item or deleting an item.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;29) When would you use an event receiver?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Since event receivers respond to events, you could use a receiver for something as simple as canceling an action, such as deleting a document library by using the Cancel property. This would essentially prevent users from deleting any documents if you wanted to maintain retention of stored data.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;&lt;br /&gt;30) If I wanted to not allow people to delete documents from a document library, how would I go about it?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: You would on the ItemDeleting event set: properties.Cancel= true.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;31) What is the difference between an asynchronous and synchronous event receivers?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: An asynchronous event occurs after an action has taken place, and a synchronous event occurs before an action has take place. For example, an asynchronous event is ItemAdded, and its sister synchronous event is ItemAdding&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;32) While creating a Webpart, which is the ideal location to Initialize my new controls ?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Override the CreateChildControls method to include your new controls. To make sure that the new controls are initialized.. call 'EnsureChildControls' in the webparts Render method. You can control the exact Rendering of your controls by calling the .Render method in the webparts Render method.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;33) How to query from multiple lists ?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: Use SPSiteDataQuery to fetch data from multiple lists.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;34)What is the difference between a site and a web?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: A site in sharePoint is a site collection. It is an object of SPsite class in sharepoint. While a Web is simply a blank site within that site collection. Web is a Part of SPweb class, thus represents a site within a site collection.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small; font-weight: bold;"&gt;35) Can a web application use few shared services like search,audience from ssp?&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Ans: No, it has to use all the shared services in that SSP.&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Calibri; font-size: small;"&gt; &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Calibri;"&gt; &lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-8111164759635236319?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/8111164759635236319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/02/sharepoint-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/8111164759635236319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/8111164759635236319'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/02/sharepoint-interview-questions.html' title='SharePoint Interview Questions - 1'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_C7Wh6Zu7TIc/S9aRkp6Jk8I/AAAAAAAAADI/xVWFXWo00qM/s72-c/spdatasource.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-1974769457924063165</id><published>2010-02-19T17:25:00.000+05:30</published><updated>2010-02-22T12:42:35.259+05:30</updated><title type='text'>Deploying a WebPart Solution in SharePoint 2007 the Simple Way</title><content type='html'>Deploying web parts into MOSS 2007 isn’t exactly straight forward and after looking around the web for a while it became apparent that there is no ’standard’ way for deploying them.&lt;br /&gt;&lt;br /&gt;I looked at a few different options and found that creating a Solution file using Visual Studio’s CAB Setup Project was the easiest and most reusable way of accomplishing this task.&lt;br /&gt;&lt;br /&gt;Below is a step by step guide to developing and deploying a simple WebPart.&lt;br /&gt;First we need to create a WebPart to deploy; the easiest way I have found of doing this is to download the Visual Studio SharePoint extensions from Microsoft&lt;br /&gt;After installing the extensions open Visual Studio and create a new project. You should now have some extra project templates under the SharePoint section.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_C7Wh6Zu7TIc/S4ItPBNTHaI/AAAAAAAAABs/trt2xKk8CwE/s1600-h/1.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: left; cursor: pointer; width: 320px; height: 109px;" src="http://4.bp.blogspot.com/_C7Wh6Zu7TIc/S4ItPBNTHaI/AAAAAAAAABs/trt2xKk8CwE/s320/1.jpg" alt="" id="BLOGGER_PHOTO_ID_5440961035862482338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Select ‘Web Part’ project, give it a name and click OK.&lt;br /&gt;Visual studio will now create a basic Web Part class for you to edit.&lt;br /&gt;My Web Part was called ClientViewerWebPart and I inserted some code into the overridden Render method which basically outputs data from a SharePoint list. This code looks like this so far:&lt;br /&gt; &lt;br /&gt;using System;&lt;br /&gt;using System.Runtime.InteropServices;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Xml.Serialization;&lt;br /&gt;using Microsoft.SharePoint;&lt;br /&gt;using Microsoft.SharePoint.WebControls;&lt;br /&gt;using Microsoft.SharePoint.WebPartPages;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;namespace ClientViewerWebPart&lt;br /&gt;{&lt;br /&gt;    [Guid(“6bf05a67-118d-4cc4-80f7-b923be02773a”)]&lt;br /&gt;    public class ClientViewerWebPart : System.Web.UI.WebControls.WebParts.WebPart&lt;br /&gt;    {&lt;br /&gt;        public ClientViewerWebPart()&lt;br /&gt;        {&lt;br /&gt;            this.ExportMode = WebPartExportMode.All;&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;        protected override void Render(HtmlTextWriter writer)&lt;br /&gt;        {&lt;br /&gt;            SPSite site = new SPSite(“http://leesbs/”);&lt;br /&gt;            SPWeb web = site.OpenWeb();&lt;br /&gt;            SPListCollection collection = web.Lists;&lt;br /&gt;            SPList list = collection.GetList(new Guid(“{936518FF-CC2E-4BD9- ABB9-0580EA04BCD6}”),false);&lt;br /&gt; &lt;br /&gt;            for (int index = 0; index &lt; list.Items.Count; index++)&lt;br /&gt;            {&lt;br /&gt;                SPListItem item = list.Items[index];&lt;br /&gt;                writer.Write(“&lt;table&gt;”);&lt;br /&gt;                writer.Write(“&lt;tr&gt;&lt;td&gt;Client Name&lt;/td&gt;”);&lt;br /&gt;                writer.Write(“&lt;td&gt;” + item[“Client Name”].ToString() + “&lt;/td&gt;&lt;/tr&gt;”);&lt;br /&gt;                writer.Write(“&lt;/table&gt;”);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;Next we need to tell SharePoint to allow this web part to be executed from a partially trusted location. We do this by making an entry into the web parts AssemblyInfo file.&lt;br /&gt;In Solution Explorer Expand Properties and open up the AssemblyInfo.cs file. At the bottom of the file insert the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[assembly: System.Security.AllowPartiallyTrustedCallers()]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we need to add a manifest file to out Web Part project. This manifest file is what defines our solution and tells SharePoint everything it needs to know about our Web Part.&lt;br /&gt;Add a new XML file to tthe project and rename it manifest.xml. Insert the following XML into the file:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;?xml version=“1.0“ encoding=“utf-8“ ?&gt;&lt;br /&gt;    &lt;Solution xmlns=“http://schemas.microsoft.com/sharepoint/“&lt;br /&gt;                    SolutionId=“{E3CF88A3-0EC3-49b9-B09E-5F84417EC6ED}“&gt;&lt;br /&gt;        &lt;Assemblies&gt;&lt;br /&gt;            &lt;Assembly DeploymentTarget=“WebApplication“&lt;br /&gt;                                  Location=“ClientViewerWebPart.dll“&gt;&lt;br /&gt;                &lt;SafeControls&gt;&lt;br /&gt;                    &lt;SafeControl Assembly=“ClientViewerWebPart, Version=1.0.0.0, Culture=neutral,                                                                                         PublicKeyToken=3858ebd08dca7ee0“&lt;br /&gt;                                            Namespace=“ClientViewerWebPart“ TypeName=“*“/&gt;&lt;br /&gt; &lt;br /&gt;                &lt;/SafeControls&gt;&lt;br /&gt;        &lt;/Assembly&gt; &lt;br /&gt;    &lt;/Assemblies&gt;&lt;br /&gt;&lt;/Solution&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;You need to provide your own GUID value for the SolutionId attribute, you can do this within Visual Studio by using the GUID Generator under the Tools menu. You also need to enter your assemblies PublicKeyToken value which can be found by either using ILDASM.exe or Reflector.&lt;br /&gt; &lt;br /&gt;The last thing we need to do to our Web Part project is make sure it has a strong name when it’s compiled, you can do this either using the SN.exe command line tool, or opening the project properties from within Visual Studio and navigating to the Signing section. From here you can create a new key file which will be used to strong name the assembly at compile time.&lt;br /&gt; &lt;br /&gt;Now we have a fully working Web Part which can be compiled, what we need to do now is deploy this Web Part into our SharePoint site.&lt;br /&gt; &lt;br /&gt;We are going to use a Visual Studio setup project to accomplish this, so add a new project to the same solution your Web part project is in, and create a CAB setup project. I called my setup project ClientViewerWebPartSetup.&lt;br /&gt; &lt;br /&gt;Right click on the project and goto Add -&gt; Project Output, from the ‘Add Project Output Group’ dialog box, select your Web Part project and then select ‘Primary Output’.&lt;br /&gt; &lt;br /&gt;Repeat the step above but this time instead of selecting ‘Primary Output’ select ‘Content Files’.&lt;br /&gt; &lt;br /&gt;After this is done you should have a solution that looks something like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_C7Wh6Zu7TIc/S4It6Qo_XMI/AAAAAAAAAB0/szEmicHM9eg/s1600-h/2.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 109px;" src="http://1.bp.blogspot.com/_C7Wh6Zu7TIc/S4It6Qo_XMI/AAAAAAAAAB0/szEmicHM9eg/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5440961778739535042" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now you can compile your setup project, this will create a cab file containing the WebPart assembly and the manifest.xml file so all we need to do now to create our SharePoint solution file is rename our .cab file to .wsp.&lt;br /&gt; &lt;br /&gt;We are now ready to deploy this solution file into SharePoint and we do this by using the STSADM.exe tool. This tool is located in your SharePoint installation directory under the bin folder mine was located here C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN. I strongly suggest you add this path to you PATH environment variable for ease of use.&lt;br /&gt; &lt;br /&gt;You need to use the addsolution argument to the STSADM tool the first time you deploy a Web Part into your SharePoint site. When updating the Web Part you can use the upgrade solution argument.&lt;br /&gt; &lt;br /&gt;The following is how I deployed my Web Part into my SharePoint site for the first time.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_C7Wh6Zu7TIc/S4IuKp-mYpI/AAAAAAAAAB8/OEIdmde63aM/s1600-h/3.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 25px;" src="http://1.bp.blogspot.com/_C7Wh6Zu7TIc/S4IuKp-mYpI/AAAAAAAAAB8/OEIdmde63aM/s320/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5440962060418966162" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Great! Your Web Part is now deployed into your SharePoint site, or is it?&lt;br /&gt; &lt;br /&gt;We need to do one more thing to make out Web Part available to our SharePoint site.&lt;br /&gt; &lt;br /&gt;Open up Central Administration and navigate to ‘Operations’ under ‘Global Configuration’ click ‘Solution Management’. You should see your Web Part Solution sitting in the list with ‘Not Deployed’ as it’s status. Click on the Solution and click the ‘Deploy Solution’ button.&lt;br /&gt; &lt;br /&gt;You should now be able to add your Web Part to any sites Web Part gallery.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-1974769457924063165?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/1974769457924063165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/02/deploying-webpart-solution-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/1974769457924063165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/1974769457924063165'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2010/02/deploying-webpart-solution-in.html' title='Deploying a WebPart Solution in SharePoint 2007 the Simple Way'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_C7Wh6Zu7TIc/S4ItPBNTHaI/AAAAAAAAABs/trt2xKk8CwE/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-2185508147165892643</id><published>2009-11-02T11:03:00.000+05:30</published><updated>2010-02-19T17:23:14.960+05:30</updated><title type='text'>Configure Single Sign-On (Office SharePoint Server)</title><content type='html'>&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: georgia;" rel="File-List" href="file:///C:%5CUsers%5Cvinodkum%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C04%5Cclip_filelist.xml"&gt;&lt;link style="font-family: georgia;" rel="Edit-Time-Data" href="file:///C:%5CUsers%5Cvinodkum%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C04%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:Calibri; 	mso-fareast-font-family:"Times New Roman"; 	mso-bidi-font-family:"Times New Roman";} a:link, span.MsoHyperlink 	{color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{color:purple; 	text-decoration:underline; 	text-underline:single;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:438454129; 	mso-list-template-ids:-581523822;} @list l0:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l1 	{mso-list-id:530846906; 	mso-list-template-ids:-736313358;} @list l1:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l2 	{mso-list-id:544029576; 	mso-list-template-ids:329039730;} @list l2:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l3 	{mso-list-id:546526983; 	mso-list-template-ids:-1029545122;} @list l3:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l4 	{mso-list-id:600796537; 	mso-list-template-ids:630519470;} @list l4:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l5 	{mso-list-id:703746667; 	mso-list-template-ids:1118723956;} @list l5:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l6 	{mso-list-id:1241063480; 	mso-list-template-ids:1480654232;} @list l6:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l6:level2 	{mso-level-number-format:alpha-lower; 	mso-level-tab-stop:1.0in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l7 	{mso-list-id:1277250376; 	mso-list-template-ids:-1161681752;} @list l7:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l8 	{mso-list-id:1372002152; 	mso-list-template-ids:1541178754;} @list l8:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l9 	{mso-list-id:1514610431; 	mso-list-template-ids:-1222575988;} @list l9:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l10 	{mso-list-id:1944070325; 	mso-list-template-ids:-557385012;} @list l10:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-bidi-font-family:"Times New Roman";} @list l10:level2 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:1.0in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Single Sign-On (SSO) is a Microsoft Office Share Point Server feature that provides storage and mapping of credentials such as account names and passwords. Using SSO, portal site–based applications can retrieve information from third-party applications and back-end systems such as Enterprise Resource Planning (ERP) and Customer Relations Management (CRM) systems.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The use of single sign-on functionality enables users to authenticate only once when they access portal site–based applications that need to obtain information from other business applications and systems. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Configuring single sign-on consists of five tasks:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style="font-family: georgia;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;                    Configure and start the Microsoft Single Sign-On service&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Configure Single Sign-On for Office SharePoint Server 2007&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Manage the encryption key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Manage enterprise application definitions&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Manage account information for an enterprise application definition&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Note that you must be logged into the SharePoint Central Administration Web site on a farm server to configure single sign-on (SSO) for Office SharePoint Server 2007. If you attempt to configure SSO on a workstation or any computer that is not a farm server, you will see an error message that reads "Single sign-on cannot be configured from this server. To configure single sign-on, go to the computer running the single sign-on service and specify these settings locally." &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Follow the procedures in the sections that follow to configure SSO for your Office Share Point Server 2007 environment.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 13.5pt 0in 6pt; line-height: 120%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Configure and start the Microsoft Single Sign-On service&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;To use single sign-on, the Microsoft Single Sign-On service (SSOSrv) must be installed on all Microsoft Windows front-end Web servers in the farm. SSOSrv must also be installed on all servers running Excel Services. If the Business Data Catalog search is used, SSOSrv must also be installed on the index server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;SSOSrv is configured by using the Services console. When configuring the service, a logon account is required. The logon account must meet all of the following criteria:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="margin-top: 0in; font-family: georgia;" type="disc"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Must be a domain user account. It cannot be a      group account. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Must be an Office SharePoint Server farm      account. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Must be a member of the local Administrators      group on the encryption-key server. (The encryption-key server is the      first server on which you start SSOSrv.) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Must be a member of the Security Administrators      role and db_creator role on the computer running Microsoft SQL Server. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Must be either the same as the single sign-on      administrator account, or a member of the group account that is the single      sign-on administrator account.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Configure and start the Microsoft Single Sign-On service&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="1" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the server, click &lt;b&gt;Start&lt;/b&gt;, &lt;b&gt;Control      Panel&lt;/b&gt;, &lt;b&gt;Administrative Tools&lt;/b&gt;, and then click &lt;b&gt;Computer      Management&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;In the Computer Management console, expand &lt;b&gt;Services      and Applications&lt;/b&gt;, and then click &lt;b&gt;Services&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Right-click &lt;b&gt;Microsoft Single Sign-On Service&lt;/b&gt;,      and then choose &lt;b&gt;Properties&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the &lt;b&gt;General&lt;/b&gt; tab, change the &lt;b&gt;Startup      type&lt;/b&gt; to &lt;b&gt;Automatic&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the &lt;b&gt;General&lt;/b&gt; tab, under &lt;b&gt;Service      Status&lt;/b&gt;, click &lt;b&gt;Start&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Click &lt;b&gt;OK&lt;/b&gt; to save your changes and close      the &lt;b&gt;Properties&lt;/b&gt; window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Repeat steps 1 through 6 for each applicable      server in the farm.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin: 13.5pt 0in 6pt; line-height: 120%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Configure Single Sign-On for Office SharePoint Server 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Managing server settings for single sign-on includes specifying the appropriate administrator accounts, the single sign-on database server and server name, and time-out and audit log settings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="border: 1pt solid rgb(221, 221, 221); width: 97%; margin-left: 3.75pt; font-family: georgia;" width="97%" border="1" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(239, 239, 247); -moz-background-inline-policy: continuous;" valign="bottom"&gt;   &lt;p class="MsoNormal" style="margin: 3.75pt 0in; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;    &lt;v:stroke joinstyle="miter"&gt;    &lt;v:formulas&gt;     &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;     &lt;v:f eqn="sum @0 1 0"&gt;     &lt;v:f eqn="sum 0 0 @1"&gt;     &lt;v:f eqn="prod @2 1 2"&gt;     &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;     &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;     &lt;v:f eqn="sum @0 0 1"&gt;     &lt;v:f eqn="prod @6 1 2"&gt;     &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;     &lt;v:f eqn="sum @8 21600 0"&gt;     &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;     &lt;v:f eqn="sum @10 21600 0"&gt;    &lt;/v:formulas&gt;    &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;    &lt;o:lock ext="edit" aspectratio="t"&gt;   &lt;/v:shapetype&gt;&lt;v:shape id="Picture_x0020_1" spid="_x0000_i1025" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt;visibility:visible'"&gt;    &lt;v:imagedata src="file:///C:\Users\vinodkum\AppData\Local\Temp\msohtml1\04\clip_image001.gif" title=""&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;Note: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(247, 247, 255); -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;You must open Central Administration on   the computer that runs Office SharePoint Server 2007 to manage server   settings for single sign-on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Configure SSO for Office SharePoint Server 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="1" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On Central Administration, on the top navigation      bar, click &lt;b&gt;Operations&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Operations page, in the &lt;b&gt;Security      Configuration&lt;/b&gt; section, click &lt;b&gt;Manage settings for single sign-on&lt;/b&gt;.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Settings for Single Sign-On page,      in the &lt;b&gt;Server Settings&lt;/b&gt; section, click &lt;b&gt;Manage server settings&lt;/b&gt;.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Settings for Single Sign-On page,      in the &lt;b&gt;Account name&lt;/b&gt; box in the &lt;b&gt;Single Sign-On Administrator      Account&lt;/b&gt; section, type the single sign-on administrator account name by      using the form &lt;i&gt;domain&lt;/i&gt;/&lt;i&gt;group&lt;/i&gt; or &lt;i&gt;domain&lt;/i&gt;/&lt;i&gt;username&lt;/i&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;table class="MsoNormalTable" style="border: 1pt solid rgb(221, 221, 221); width: 97%; margin-left: 39.75pt; font-family: georgia;" width="97%" border="1" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(239, 239, 247); -moz-background-inline-policy: continuous;" valign="bottom"&gt;   &lt;p class="MsoNormal" style="margin: 3.75pt 0in; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="Picture_x0020_2" spid="_x0000_i1026" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt;visibility:visible'"&gt;    &lt;v:imagedata src="file:///C:\Users\vinodkum\AppData\Local\Temp\msohtml1\04\clip_image001.gif" title=""&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;Note: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(247, 247, 255); -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The single sign-on administrator   account specifies the set of people who can create, delete, or modify   application definitions. The administrator account can also back up the   encryption key.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="5" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;The user or group that you specify as the single      sign-on administrator must be all of the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul style="margin-top: 0in;" type="disc"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Either a Windows global group or an individual       user account. This account cannot be a domain local group account or a       distribution list. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;The same account as the single sign-on service       account, if a user is specified. If a group is specified, the single sign-on       service account must be a member of that group.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;The same as the configuration account for       single sign-on, if a user is specified. If a group is specified, the       configuration account for single sign-on must be a member of that group. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;A member of the Farm Administrators group on       Central Administration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 7.5pt 0.5in; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;If a group is specified, all users who are added to the group for the purpose of administering single sign-on must be members of the local Administrators group on the encryption-key server. Do not make this account a member of the local Administrators group on the encryption-key server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="6" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;In the &lt;b&gt;Enterprise Application Definition      Administrator Account&lt;/b&gt; section, in the &lt;b&gt;Account name&lt;/b&gt; box, type      the account name of the group or user who can set up and manage enterprise      application definitions. Type the name by using the form &lt;i&gt;domain&lt;/i&gt;/&lt;i&gt;group&lt;/i&gt;      or &lt;i&gt;domain&lt;/i&gt;/&lt;i&gt;username&lt;/i&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 7.5pt 0.5in; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The enterprise application definition administrator account can manage credentials of an enterprise application definition, including changing the password of a group enterprise application definition and changing or deleting credentials for an individual enterprise application definition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 7.5pt 0.5in; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The user or group that you specify must be the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="6" type="1"&gt;&lt;ul style="margin-top: 0in;" type="disc"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Either a Windows global group or an individual       user account. This account cannot be a domain local group account or a       distribution list. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;A member of the Reader SharePoint group on       Central Administration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;In the &lt;b&gt;Database Settings&lt;/b&gt; section, in the &lt;b&gt;Server      name&lt;/b&gt; box, type the NetBIOS name of the single sign-on database server      (for example, &lt;i&gt;computer_name&lt;/i&gt; or &lt;i&gt;computer_name&lt;/i&gt;\&lt;i&gt;SQL_Server_instance&lt;/i&gt;).      Do not type the fully qualified domain name. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;In the &lt;b&gt;Database name&lt;/b&gt; box, enter the name      of the single sign-on database server. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;table class="MsoNormalTable" style="border: 1pt solid rgb(221, 221, 221); width: 97%; margin-left: 39.75pt; font-family: georgia;" width="97%" border="1" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(239, 239, 247); -moz-background-inline-policy: continuous;" valign="bottom"&gt;   &lt;p class="MsoNormal" style="margin: 3.75pt 0in; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="Picture_x0020_3" spid="_x0000_i1027" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt;visibility:visible'"&gt;    &lt;v:imagedata src="file:///C:\Users\vinodkum\AppData\Local\Temp\msohtml1\04\clip_image001.gif" title=""&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;Note: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(247, 247, 255); -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Unless you are pre-creating databases,   we recommend that you use the default database server and single sign-on   database server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="9" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;In the &lt;b&gt;Time Out Settings&lt;/b&gt; section, in the &lt;b&gt;Ticket      time out (in minutes)&lt;/b&gt; box, type a value for how many minutes passes      before a single sign-on ticket expires. The time-out should be long enough      to last between the time that the ticket is issued and the time that the      enterprise application redeems the ticket. Two minutes is the recommended      value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;In the &lt;b&gt;Delete audit log records older than      (in days)&lt;/b&gt; box, type a value for how many days the audit log holds      records before deleting them. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin: 13.5pt 0in 6pt; line-height: 120%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Manage the encryption key&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The first server that SSOSrv is enabled on becomes the encryption-key server. The encryption-key server generates and stores the encryption key. The encryption key is used to encrypt and decrypt the credentials that are stored in the SSO database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Because the encryption key protects security credentials, we recommend that you create a new encryption key on a regular schedule (for example, every 90 days). We also recommend that you create a new encryption key immediately if you suspect that account credentials have been compromised.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The encryption key must be backed up each time a new key is created. You do not need to back up the encryption key at any other time (except when you are moving the encryption-key server role from one server to another). You must back up the encryption key from the encryption-key server locally; the key cannot be backed up remotely.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;You can also use encryption key backup and restore to move the encryption-key server role from one server to another. (Other tasks must also be completed to move the encryption-key server role.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="border: 1pt solid rgb(221, 221, 221); width: 97%; margin-left: 3.75pt; font-family: georgia;" width="97%" border="1" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(239, 239, 247); -moz-background-inline-policy: continuous;" valign="bottom"&gt;   &lt;p class="MsoNormal" style="margin: 3.75pt 0in; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="Picture_x0020_4" spid="_x0000_i1028" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt;visibility:visible'"&gt;    &lt;v:imagedata src="file:///C:\Users\vinodkum\AppData\Local\Temp\msohtml1\04\clip_image001.gif" title=""&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;Note: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(247, 247, 255); -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;You must open Central Administration on   the computer that runs Office SharePoint Server 2007 to manage the encryption   key.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Manage the encryption key&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="1" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On Central Administration, on the top navigation      bar, click &lt;b&gt;Operations&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Operations page, in the &lt;b&gt;Security      Configuration&lt;/b&gt; section, click &lt;b&gt;Manage settings for single sign-on&lt;/b&gt;.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Settings for Single Sign-On page,      in the &lt;b&gt;Server Settings&lt;/b&gt; section, click &lt;b&gt;Manage encryption key&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;From the Manage Encryption Key page, you can perform three management tasks:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="font-family: georgia;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Create a new encryption key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Back up an encryption key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Restore an encryption key&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Create a new encryption key&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="1" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Encryption Key page, in the &lt;b&gt;Encryption      Key&lt;/b&gt; section, click &lt;b&gt;Create Encryption Key&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Create Encryption Key page, select the &lt;b&gt;Re-encrypt      all credentials by using the new encryption key&lt;/b&gt; check box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;table class="MsoNormalTable" style="border: 1pt solid rgb(221, 221, 221); width: 97%; margin-left: 39.75pt; font-family: georgia;" width="97%" border="1" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(239, 239, 247); -moz-background-inline-policy: continuous;" valign="bottom"&gt;   &lt;p class="MsoNormal" style="margin: 3.75pt 0in; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="Picture_x0020_5" spid="_x0000_i1029" type="#_x0000_t75" alt="Important" style="'width:7.5pt;height:7.5pt;visibility:visible'"&gt;    &lt;v:imagedata src="file:///C:\Users\vinodkum\AppData\Local\Temp\msohtml1\04\clip_image002.gif" title=""&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;Important: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(247, 247, 255); -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;If you do not re-encrypt the existing   credentials with the new encryption key, users must retype their credentials   for individual application definitions, and administrators must retype group   credentials for group application definitions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="3" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Back up an encryption key&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="1" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Encryption Key page, in the &lt;b&gt;Drive&lt;/b&gt;      list in the &lt;b&gt;Encryption Key Backup&lt;/b&gt; section, click the removable      media drive on which you want to store the encryption-key backup. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Click &lt;b&gt;Back Up&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Restore an encryption key&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;You should always back up the encryption key when you back up the single sign-on database, because the database is useless without the encryption key. Also, before you replace an encryption-key server, make sure to back up the encryption key so that it can be restored on the new encryption-key server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="1" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Encryption Key page, in the &lt;b&gt;Drive&lt;/b&gt;      list in the &lt;b&gt;Encryption Key Restore&lt;/b&gt; section, click the removable      media drive from which you want to restore the encryption-key backup. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Click &lt;b&gt;Restore&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin: 13.5pt 0in 6pt; line-height: 120%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Manage enterprise application definitions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;In the single sign-on environment, the back-end external data sources and systems are referred to as enterprise applications. For each enterprise application that Office SharePoint Server 2007 connects to, a corresponding enterprise application definition needs to be configured.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="1" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On Central Administration, on the top navigation      bar, click &lt;b&gt;Operations&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Operations page, in the &lt;b&gt;Security      Configuration&lt;/b&gt; section, click &lt;b&gt;Manage settings for single sign-on&lt;/b&gt;.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Settings for Single Sign-On page,      click &lt;b&gt;Manage settings for enterprise application definitions&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin: 13.5pt 0in 6pt; line-height: 120%; vertical-align: top; font-family: georgia;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Manage account information for an enterprise application definition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top; font-family: georgia;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;If you are using a group to connect to the enterprise application, you need to provide account credentials for the group to use. If individual users are connecting directly to the enterprise application, you can preset or reset user passwords, or you can delete users from the enterprise application definition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="1" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On Central Administration, on the top navigation      bar, click &lt;b&gt;Operations&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Operations page, in the &lt;b&gt;Security      Configuration&lt;/b&gt; section, click &lt;b&gt;Manage settings for single sign-on&lt;/b&gt;.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Settings for Single Sign-On page,      in the &lt;b&gt;Enterprise Application Definition Settings&lt;/b&gt;&lt;b&gt;Manage      account information for enterprise application definitions&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; section, click &lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Manage Account Information for an      Enterprise Application Definition page, in the &lt;b&gt;Enterprise application      definition&lt;/b&gt; list in the &lt;b&gt;Account Information&lt;/b&gt; section, click the      application definition for which you want to manage account information. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;In the &lt;b&gt;Group account name&lt;/b&gt; box, type the      name of the group that is allowed access to the enterprise application. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;In the &lt;b&gt;Enterprise Application Definition&lt;/b&gt;      section, select one of the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;table class="MsoNormalTable" style="border: 1pt solid rgb(221, 221, 221); width: 97%; margin-left: 39.75pt; font-family: georgia;" width="97%" border="1" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(204, 204, 204); -moz-background-inline-policy: continuous;" valign="bottom"&gt;   &lt;p class="MsoNormal" style="margin: 3.75pt 0in; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;Option &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% rgb(204, 204, 204); -moz-background-inline-policy: continuous;" valign="bottom"&gt;   &lt;p class="MsoNormal" style="margin: 3.75pt 0in; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;Purpose &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% white; -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Update account information&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% white; -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Enter credentials for the first time or   update the credentials used to connect to the enterprise application. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% white; -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Delete stored credentials for this   account from this enterprise application definition&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% white; -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Delete the credentials currently used   to connect to the enterprise application. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% white; -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Delete stored credentials for this   account from all enterprise application definitions&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid; border-color: rgb(204, 204, 204) rgb(213, 213, 211) rgb(204, 204, 204) rgb(204, 204, 204); border-width: 1pt; padding: 3.75pt; background: none repeat scroll 0% 0% white; -moz-background-inline-policy: continuous;" valign="top"&gt;   &lt;p class="MsoNormal" style="margin: 0in 0.75pt 0.0001pt; line-height: normal;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Delete the credentials currently used   to connect the selected enterprise application from all enterprise   application definitions. Deleting stored credentials deletes credentials only   for individual accounts; it does not delete credentials for group accounts.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;ol style="margin-top: 0in; font-family: georgia;" start="7" type="1"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;If you select &lt;b&gt;Update account information&lt;/b&gt;,      complete the following steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;ol style="margin-top: 0in;" start="1" type="a"&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Click &lt;b&gt;Set&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;On the Provide Account Information page, in the       &lt;b&gt;Logon Information&lt;/b&gt; section, type the user name and password of the       account that will be used to connect to the enterprise application. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Click &lt;b&gt;OK&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li class="MsoNormal"  style="margin-bottom: 7.5pt; line-height: 140%; vertical-align: top;color:black;"&gt;&lt;span style="font-size:100%;"&gt;Click &lt;b&gt;Done&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-2185508147165892643?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/2185508147165892643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/11/configure-single-sign-on-office.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/2185508147165892643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/2185508147165892643'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/11/configure-single-sign-on-office.html' title='Configure Single Sign-On (Office SharePoint Server)'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-4792258435373419660</id><published>2009-10-30T14:40:00.000+05:30</published><updated>2009-10-30T15:01:47.412+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>SharePoint Object Model Code Samples</title><content type='html'>SharePoint provides a solid framework for the .Net developers to write code against and extend sharepoint functionality. As sharepoint is done on ASP.NET 2.0 and have a power code base of .Net Class libraries, a lot of developers can now make use of them and create excellent applications utilizing sharepoint features and libraries.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;&lt;br /&gt;SPSiteDataQuery Class&lt;/span&gt;&lt;br /&gt;Imagine a scenario in which you want to run a single query against every list in the current site collection that has been created from the Announcements list type and return all list items that were created today. The following code sample demonstrates how to do this by creating an SPSiteDataQuery object, initializing it with the necessary CAML statements, and then passing it to the current SPWeb object’s GetSiteData method.&lt;br /&gt;&lt;br /&gt;SPSiteDataQuery query = new SPSiteDataQuery();&lt;br /&gt;query.Lists = @"";&lt;br /&gt;query.ViewFields = @"";&lt;br /&gt;query.Webs = "";&lt;br /&gt;&lt;br /&gt;string queryText = @" ";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;query.Query = queryText;&lt;br /&gt;&lt;br /&gt;DataTable table = site.GetSiteData(query);&lt;br /&gt;&lt;br /&gt;foreach (DataRow row in table.Rows) {&lt;br /&gt;Console.WriteLine(row["Title"].ToString());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Using SPQuery to query specific items in the list&lt;/span&gt;&lt;br /&gt;To get back specific results within a list, you can use the SPQuery object. When you use an SPQuery object, you will create CAML statements to select specific data within the target list. To select announcements that have expired, you may want to use a query built with CAML statements, as shown in the following example:&lt;br /&gt;SPQuery query = new SPQuery();&lt;br /&gt;query.ViewFields = @"";&lt;br /&gt;query.Query =&lt;br /&gt;@" ";&lt;br /&gt;&lt;br /&gt;SPList list = site.Lists["News"];&lt;br /&gt;SPListItemCollection items = list.GetItems(query);&lt;br /&gt;foreach (SPListItem expiredItem in items) {&lt;br /&gt;Console.WriteLine(expiredItem["Title"]);&lt;br /&gt;}&lt;br /&gt;You must specify the fields you want returned in the query by using the ViewFields property. Also note that you must specify the fields in terms of the field Name, and not DisplayName. If you attempt to access fields without specifying them in ViewFields, you will experience an exception of type ArgumentException&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Enumerating through the Fields excluding Hidden and read only fields&lt;/span&gt;&lt;br /&gt;foreach (SPListItem item in list.Items) {&lt;br /&gt;foreach (SPField field in list.Fields) {&lt;br /&gt;if (!field.Hidden &amp;amp;&amp;amp; !field.ReadOnlyField)&lt;br /&gt;Console.WriteLine("{0} = {1}", field.Title, item[field.Id]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;foreach (SPListItem item in list.Items) {&lt;br /&gt;foreach (SPField field in list.Fields) {&lt;br /&gt;if (!field.Hidden &amp;amp;&amp;amp; !field.ReadOnlyField)&lt;br /&gt;Console.WriteLine("{0} = {1}", field.Title, item[field.Id]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Checking if the List Exists and Adding a new list if it does not Exists&lt;/span&gt;&lt;br /&gt;using System;&lt;br /&gt;using Microsoft.SharePoint;&lt;br /&gt;&lt;br /&gt;class Program {&lt;br /&gt;static void Main() {&lt;br /&gt;using (SPSite site = new SPSite("http://spdevserver"3000")) {&lt;br /&gt;using (SPWeb web = site.OpenWeb()) {&lt;br /&gt;string listName = "News";&lt;br /&gt;SPList list = null;&lt;br /&gt;foreach (SPList currentList in web.Lists) {&lt;br /&gt;if (currentList.Title.Equals(listName,&lt;br /&gt;StringComparison.InvariantCultureIgnoreCase)) {&lt;br /&gt;list = currentList;&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (list == null) {&lt;br /&gt;Guid listID = web.Lists.Add(listName, "News",&lt;br /&gt;SPListTemplateType.Announcements);&lt;br /&gt;list = web.Lists[listID];&lt;br /&gt;list.OnQuickLaunch = true;&lt;br /&gt;list.Update();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Check if list is of the type Document Library or Not?&lt;/span&gt;&lt;br /&gt;public bool CkechIfListisDocLib(SPList list) {&lt;br /&gt;if (list is SPDocumentLibrary)&lt;br /&gt;return true;&lt;br /&gt;else&lt;br /&gt;return false;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Running a Code with Elevated Permissions&lt;/span&gt;&lt;br /&gt;If you want to run a portion of the code with elevated permissions&lt;br /&gt;&lt;br /&gt;SPSecurity.RunWithElevatedPrivileges(delegate()&lt;br /&gt;{&lt;br /&gt;// do something&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Download a file from Document Library and Save it locally&lt;/span&gt;&lt;br /&gt;private static void DownloadFile()&lt;br /&gt;{&lt;br /&gt;//site url&lt;br /&gt;SPSite site = new SPSite("http://spdevser:3000/");&lt;br /&gt;//web url&lt;br /&gt;SPWeb web = site.OpenWeb(@"/sites");&lt;br /&gt;//list name&lt;br /&gt;SPList list = web.Lists["Form Templates"];&lt;br /&gt;//downloading first items&lt;br /&gt;File.WriteAllBytes(@"c:\test.doc", list.Items[0].File.OpenBinary());file&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Add an Item to the List&lt;/span&gt;&lt;br /&gt;private static void AddItem()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;SPSite site = new SPSite("http://spdevserver:3000/"); //site url&lt;br /&gt;&lt;br /&gt;SPWeb web = site.OpenWeb(@"/Dev/template"); //weburl&lt;br /&gt;&lt;br /&gt;SPList list = web.Lists["COI"]; //list&lt;br /&gt;&lt;br /&gt;SPListItem item = list.Items.Add(); //item to be added&lt;br /&gt;&lt;br /&gt;item["Title"] = "Welcome"; //update the title field&lt;br /&gt;&lt;br /&gt;list.Update(); //update list&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;Update a file to the Document Library &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SPSite site = new SPSite("http://spdevserver:3000/");&lt;br /&gt;SPWeb web = site.OpenWeb();&lt;br /&gt;web.AllowUnsafeUpdates = true;&lt;br /&gt;&lt;br /&gt;FileStream fs = File.Open(@"C:\Sample.doc",FileMode.OpenOrCreate,FileAccess.Read);&lt;br /&gt;&lt;br /&gt;SPFolder myfolder = web.Folders["Documents"];&lt;br /&gt;&lt;br /&gt;myfolder.Files.Add("Sample.doc", fs);&lt;br /&gt;myfolder.Update();&lt;br /&gt;&lt;br /&gt;web.AllowUnsafeUpdates = false;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-4792258435373419660?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/4792258435373419660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/sharepoint-object-model-code-samples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/4792258435373419660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/4792258435373419660'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/sharepoint-object-model-code-samples.html' title='SharePoint Object Model Code Samples'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-967520028959665684</id><published>2009-10-30T14:37:00.000+05:30</published><updated>2009-10-30T14:37:00.638+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Getting / Setting values for Lookup &amp; Hyperlink Fields</title><content type='html'>&lt;b&gt;Set the url field of a link&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Use the &lt;i&gt;SPFieldUrlValue &lt;/i&gt;class to create an object that holds the url to link to, and the title to display:&lt;br /&gt;&lt;br /&gt;SPList list = web.Lists["Links"];&lt;br /&gt;&lt;br /&gt;SPListItem newLink = list.Items.Add();&lt;br /&gt;&lt;br /&gt;SPFieldUrlValue value = new SPFieldUrlValue();&lt;br /&gt;&lt;br /&gt;value.Description = "Sample";&lt;br /&gt;&lt;br /&gt;value.Url = "http://sharepoint-unleashed.blogspot.com/";&lt;br /&gt;&lt;br /&gt;newLink["URL"] = value;&lt;br /&gt;&lt;br /&gt;newLink.Update();&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Get the url field of a link&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Use the &lt;i&gt;SPFieldUrlValue &lt;/i&gt;class to create an object that gets the url and description:&lt;br /&gt;&lt;br /&gt;SPList list = web.Lists["Links"];&lt;br /&gt;&lt;br /&gt;SPListItem existingLink = list.Items[0];&lt;br /&gt;&lt;br /&gt;SPFieldUrlValue value = new SPFieldUrlValue(existingLink["URL"].ToString());&lt;br /&gt;&lt;br /&gt;string linkTitle = value.Description;&lt;br /&gt;&lt;br /&gt;string linkURL = value.Url;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Set the value of a lookup field for a known title and ID&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In the following example I am using &lt;i&gt;SPFieldLookupValue &lt;/i&gt;to set the value of a lookup field ("Group Name") to item "Program Operations", whose ID is 14:&lt;br /&gt;&lt;br /&gt;SPList list = web.Lists["Branches"];&lt;br /&gt;&lt;br /&gt;SPListItem newBranch = list.Items.Add();&lt;br /&gt;&lt;br /&gt;newBranch["Title"] = "A New Branch";&lt;br /&gt;&lt;br /&gt;SPFieldLookupValue newValue = new SPFieldLookupValue(14,"Program Operations");&lt;br /&gt;&lt;br /&gt;newBranch["Group Name"] = newValue;&lt;br /&gt;&lt;br /&gt;newBranch.Update();&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Get the value of a lookup field from an item&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Reading the value of the group name field (which is a lookup field in the branches list):&lt;br /&gt;&lt;br /&gt;SPList list = web.Lists["Branches"];&lt;br /&gt;&lt;br /&gt;SPListItem existingBranch = list.Items[0];&lt;br /&gt;&lt;br /&gt;SPFieldLookupValue group = new SPFieldLookupValue(existingBranch["Group Name"].ToString());&lt;br /&gt;&lt;br /&gt;int lookedUpItemID = group.LookupId;&lt;br /&gt;&lt;br /&gt;string lookedUpItemTitle = group.LookupValue;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-967520028959665684?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/967520028959665684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/getting-setting-values-for-lookup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/967520028959665684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/967520028959665684'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/getting-setting-values-for-lookup.html' title='Getting / Setting values for Lookup &amp; Hyperlink Fields'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-3959726606178307754</id><published>2009-10-30T14:30:00.000+05:30</published><updated>2009-10-30T14:30:30.099+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Retrieving a user profile property value</title><content type='html'>if (Profile[this.UserProfilePropertyName].Count == 1)&lt;br /&gt;    return Profile[this.UserProfilePropertyName].Value.ToString();&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;    StringBuilder sbret= new StringBuilder("");&lt;br /&gt;    UserProfileValueCollection profilevalues = Profile[this.UserProfilePropertyName];&lt;br /&gt;    System.Collections.IEnumerator enmValues = profilevalues.GetEnumerator();&lt;br /&gt;    while(enmValues.MoveNext())&lt;br /&gt;    {&lt;br /&gt;        sbret.Append(allValues.Current.ToString());&lt;br /&gt;        sbret.Append(";");&lt;br /&gt;    }&lt;br /&gt;    return sbret.ToString();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-3959726606178307754?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/3959726606178307754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/retrieving-user-profile-property-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3959726606178307754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3959726606178307754'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/retrieving-user-profile-property-value.html' title='Retrieving a user profile property value'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-8281589650789956637</id><published>2009-10-30T13:08:00.001+05:30</published><updated>2009-10-30T13:09:45.973+05:30</updated><title type='text'>SharePoint 2010 New Features</title><content type='html'>Microsoft announced SharePoint 2010 New Features &lt;br /&gt;&lt;br /&gt;- New User Interface including Ribbon&lt;br /&gt;- Web Edit&lt;br /&gt;- Silverlight WebPart&lt;br /&gt;- Rich Theming&lt;br /&gt;- Multiple Browser Support&lt;br /&gt;- Visio Services&lt;br /&gt;- Business Connectivity Services&lt;br /&gt;- SharePoint Workspace&lt;br /&gt;- Rich Media Support&lt;br /&gt;- Tagging any type of content/site&lt;br /&gt;- Streamlined Central Administration&lt;br /&gt;- SharePoint Best Practices Analyzer&lt;br /&gt;- Usage Reporting and Logging&lt;br /&gt;- Large List Resource Throttling&lt;br /&gt;- Unattached Content Database Recovery&lt;br /&gt;- Visual Upgrade&lt;br /&gt;- Language Integrated (LINQ) for SharePoint&lt;br /&gt;- Developer Dashboard&lt;br /&gt;- Business Connectivity Services&lt;br /&gt;- Client Object Model (OM)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Tom Rizzo, SharePoint Senior Director, shares exciting news about SharePoint 2010.&lt;br /&gt;http://media.nuveminc.net:8080/spc09/tom_rizzo.wmv&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-8281589650789956637?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/8281589650789956637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/sharepoint-2010-new-features.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/8281589650789956637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/8281589650789956637'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/sharepoint-2010-new-features.html' title='SharePoint 2010 New Features'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-7303379524652997724</id><published>2009-10-29T18:00:00.000+05:30</published><updated>2009-10-29T18:05:33.035+05:30</updated><title type='text'>Differences between WSS 3.0 &amp; Moss 2007</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CUsers%5Cvinodkum%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C04%5Cclip_filelist.xml"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"&gt;&lt;/o:smarttagtype&gt;&lt;/span&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if !mso]&gt;&lt;object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"&gt;&lt;/object&gt; &lt;style&gt; st1\:*{behavior:url(#ieooui) } &lt;/style&gt; &lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:TT15Et00; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:0; 	mso-generic-font-family:auto; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:TT15Ct00; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:0; 	mso-generic-font-family:auto; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:3 0 0 0 1 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} table.MsoTableGrid 	{mso-style-name:"Table Grid"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	border:solid windowtext 1.0pt; 	mso-border-alt:solid windowtext .5pt; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-border-insideh:.5pt solid windowtext; 	mso-border-insidev:.5pt solid windowtext; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 13pt; font-family: TT15Et00; color: rgb(147, 209, 80);"&gt;WSS 3.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 13pt; font-family: TT15Et00; color: rgb(147, 209, 80);"&gt;MOSS 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;Windows SharePoint Services (WSS3.0) comes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;free with Windows Server 2003.&lt;/span&gt;&lt;span style="font-size: 13pt; font-family: TT15Et00; color: rgb(147, 209, 80);"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;MOSS is not free and it is installed on top of WSS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;3.0.MOSS has both a server cost and a client access&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;license (&lt;st1:place st="on"&gt;&lt;st1:state st="on"&gt;CAL&lt;/st1:state&gt;&lt;/st1:place&gt;)   cost.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 13pt; font-family: TT15Et00; color: rgb(147, 209, 80);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;WSS 3.0 offers all the standard site templates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;to build team sites, document workspaces,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;blank sites, blogs, wikis, and meeting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;workspaces.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;MOSS 2007 offers business intelligence features&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;that allow you to track key performance indicators&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;and build BI dashboards into your team site.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;WSS 3.0 can be used to create people and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;group lists.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;Moss is used as a super powerful content&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;management system, which aims to provide content&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;management, enterprise content services and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;enterprise search.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;You can integrate WSS 3.0 sites with Access&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;2007, Excel 2007, Outlook 2007, Word 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;and PowerPoint 2007.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;Workflow can also be integrated into MOSS 2007.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;It also serves as a platform for application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;development. Including such IT resources as portals, team workspaces,   e-mail, presence awareness, and Web based conferencing, Windows SharePoint   Services enables users to locate distributed information quickly and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;efficiently, as well as connect to and work with others more   productively.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;Moss also offers My Sites, which are individual minisites&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;that can be set up to show who in your&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;company you're connected to, what your tasks and skills are,   your contact information, and more. MOSS 2007 is the portal system,   comparable to SharePoint Portal Server 2003. It brings a wealth of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;built-in functionality and interoperability to a company's   intranet over and above the functions of WSS 3.0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;Create Site Collection: Select template will give minimum   options it's like Collaboration and Meetings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;Create Site Collection:Select template will give more&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;options it's like Collaboration, Meetings, &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Enterprise&lt;/st1:city&gt;&lt;/st1:place&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;Custom and Publishing Only WSS 3.0&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 11pt; font-family: TT15Ct00; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-7303379524652997724?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/7303379524652997724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/differences-between-wss-30-moss-2007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/7303379524652997724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/7303379524652997724'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/differences-between-wss-30-moss-2007.html' title='Differences between WSS 3.0 &amp; Moss 2007'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-3740795055520738431</id><published>2009-10-29T14:23:00.000+05:30</published><updated>2009-10-29T14:43:33.950+05:30</updated><title type='text'>Microsoft Office SharePoint Server 2007 top 10 Benefits</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;1) Provide a simple, familiar, and consistent user experience.&lt;/span&gt;&lt;br /&gt;MOSS 2007 is tightly integrated with familiar client desktop applications, e-mail, and Web browsers to provide a consistent user experience that simplifies how people interact with content, processes, and business data. This tight integration, coupled with robust out-of-the-box functionality, helps you employ services themselves and facilitates product adoption.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;2) Boost employee productivity by simplifying everyday business activities.&lt;/span&gt;&lt;br /&gt;Take advantage of out-of-the-box workflows for initiating, tracking, and reporting common business activities such as document review and approval, issue tracking, and signature collection. You can complete these activities without any coding. Tight integration with familiar&lt;br /&gt;client applications, e-mail, and Web browsers provide you with a simple, consistent experience. Modifying and extending these out-ofthe-box workflow processes is easy.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;3) Help meet regulatory requirements through comprehensive control over content.&lt;/span&gt;&lt;br /&gt;By specifying security settings, storage policies, auditing policies, and expiration actions for business records in accordance with compliance regulations, you can help ensure your sensitive business information can be controlled and managed effectively. Tight integration of Office SharePoint Server 2007 with familiar desktop applications means that policy settings are rendered onto client applications in the Microsoft Office system, making it simpler for employees to be aware of and comply with regulatory requirements.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;4) Effectively manage and repurpose content to gain increased business value.&lt;/span&gt;&lt;br /&gt;Business users and content authors can create and submit content for approval and scheduled deployment to intranet or Internet sites. Managing multilingual content is simplified through new document library templates that are specifically designed to maintain a relationship between the original version and different translations of a document.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;5) Simplify organization wide access to both structured and unstructured information across disparate systems. &lt;/span&gt;&lt;br /&gt;Give your users access to business data found in common line-of-business (LOB) systems like SAP and Siebel through Office SharePoint Server 2007. Users can also create personalized views and interactions with LOB systems through a browser by dragging  configurable back-end connections. Enterprisewide repositories help your organizations store and organize business documents in one central location.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;6) Connect people with information and expertise.&lt;/span&gt;&lt;br /&gt;Enterprise search in Office SharePoint Server 2007 incorporates business data along with information about documents, people, and Web pages to produce comprehensive, relevant results. Features like duplicate collapsing, spelling correction, and alerts improve the relevance&lt;br /&gt;of the results, so you can easily find what you need.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;7) Accelerate shared business processes across organizational boundaries.&lt;/span&gt;&lt;br /&gt;Without coding any custom applications, you can use smart, electronic forms–driven solutions to collect critical business information from customers, partners, and suppliers through a Web browser. Built-in data validation rules help you gather accurate and consistent data that&lt;br /&gt;can be directly integrated into back-end systems to avoid redundancy and errors that result from manual data re-entry.&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;8) &lt;span style="font-weight: bold;"&gt;Share business data without divulging sensitive information.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Give your employees access to real-time, interactive Microsoft Office Excel® spreadsheets from a Web browser through Excel Services running on Office SharePoint Server 2007. Use these spreadsheets to maintain and efficiently share one central and up-to-date version while helping to protect any proprietary information embedded in the documents (such as financial models).&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;9) Enable people to make better-informed decisions by presenting business-critical information in one central location. &lt;/span&gt;&lt;br /&gt;Office SharePoint Server 2007 makes it easy to create live, interactive business intelligence (BI) portals that assemble and display information from disparate sources, using integrated BI capabilities such as dashboards, Web Parts, scorecards, key performance indicators, and business data connectivity technologies.&lt;br /&gt;Centralized Report Center sites give users a single place for locating information.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 102);"&gt;10) Provide a single, integrated platform to manage intranet, extranet, and Internet applications across the enterprise.&lt;/span&gt;&lt;br /&gt;Office SharePoint Server 2007 is built on an open, scalable architecture, with support for Web services and interoperability standards including&lt;br /&gt;XML and Simple Object Access Protocol (SOAP). The server has rich application programming interfaces (APIs) and event handlers for lists and&lt;br /&gt;documents. These features provide integration with existing systems and the flexibility to incorporate non-Microsoft IT investments.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-3740795055520738431?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/3740795055520738431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/microsoft-office-sharepoint-server-2007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3740795055520738431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/3740795055520738431'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/microsoft-office-sharepoint-server-2007.html' title='Microsoft Office SharePoint Server 2007 top 10 Benefits'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6956179292443405618.post-1477061038468534003</id><published>2009-10-16T14:49:00.000+05:30</published><updated>2009-10-29T14:19:14.259+05:30</updated><title type='text'>An Introduction to Microsoft Office SharePoint Server 2007</title><content type='html'>Microsoft Office SharePoint Server (MOSS) 2007 is an enterprise content management server that is tightly integrated with Microsoft (MS) Office. It is a single infrastructure for intranet, internet and extranet portals or applications. It has been designed to provide strategic business solutions in order to increase the business values for organizations. It allows enterprises to build applications on the basis of different types of solutions. These solutions include Portal, Collaboration, Enterprise search, Enterprise content management, Business Forms and Business Intelligence (BI). While we implement solutions using MOSS 2007, we need to plan in order to manage these new capabilities. MOSS 2007 also provides new capabilities over the Windows SharePoint Services (WSS) 3.0&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 102);"&gt;Design Goals&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It is specifically designed to meet these goals:&lt;br /&gt;&lt;br /&gt;1. Aggregation&lt;br /&gt;&lt;br /&gt;2. Collaboration&lt;br /&gt;&lt;br /&gt;3. Communication&lt;br /&gt;&lt;br /&gt;4. Distribution&lt;br /&gt;&lt;br /&gt;5. Integration&lt;br /&gt;&lt;br /&gt;6. Management&lt;br /&gt;&lt;br /&gt;Partners, Customers, Vendors, Independent Software Vendor (ISV) make use of MOSS 2007 in order to build solutions for business and technical requirements of respective organizations. As a result efficiency of information employees, Business Development Managers (BDMs) is improved at the job level.&lt;br /&gt;&lt;br /&gt;The six building blocks of MOSS 2007 can be categorized as&lt;br /&gt;&lt;br /&gt;·         Collaboration&lt;br /&gt;&lt;br /&gt;·         Portal&lt;br /&gt;&lt;br /&gt;·         Enterprise Search&lt;br /&gt;&lt;br /&gt;·         Content Management&lt;br /&gt;&lt;br /&gt;·         Business Forms&lt;br /&gt;&lt;br /&gt;·         Business Intelligence&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 102);"&gt;Collaborative Solutions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The design goals for collaborative solutions include provision for Collaboration-oriented base framework as team. These solutions are interoperable with communication technologies. These solutions include extended features that enable information to collaborate in intuitive and efficient ways. An example of these solutions is integrating Workspaces, E-Mail integration, Outlook integration, Project management "lite," Offline documents/lists, Tasks, Forums, Surveys, Blogs, RSS and Wikis.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 102);"&gt;Portal Solutions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The design goals for portal solutions focused on providing accurate, relevant information in a timely, effective and context-sensitive manner. Due to this feature Employees have the required tools and information to undertake their role-specific/job specific tasks. These solutions are integrated with Windows Share Point Services.&lt;br /&gt;&lt;br /&gt;Some of the examples of portal solutions are Topics, Site Directory, People and Expertise Search:&lt;br /&gt;&lt;br /&gt;People specific search "tab," Social network support, My Site, Improved Public Page, Personal homepage, Targeting and personalization, Easier targeting – Distribution lists and Security Groups, Profile store improvements, Scalability, flexible schema, LDAP synchronization&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 102);"&gt;Enterprise Search Solutions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The design goals for enterprise search solutions include ensuring that information workers have access to appropriate information, content, and people to efficiently perform their tasks. A well-designed search-and-indexing strategy provides adequate and appropriate search results.&lt;br /&gt;&lt;br /&gt;There are ways to programmatically admin the enterprise search.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 102);"&gt;Content Management Solutions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The design goals for content management solutions include providing robust and flexible frameworks which in turn help organizations manage every aspect of their content processes and life cycles, such as managing documents, records, and Web-based content.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102); font-weight: bold;"&gt;Business Forms Solutions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The design goals for forms solutions include streamlining, consolidating, and automating data capture processes so that business processes can run smoothly and efficiently.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 102);"&gt;Business Intelligence (BI) Solutions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The design goals for business intelligence solutions include providing features and technologies that enable business decision makers to make informed decisions on the basis of easy data access and robust data analysis. MOSS 2007 provides these solutions with the help of Excel client/services, Dash Boards and KPI's.&lt;br /&gt;&lt;br /&gt;The need for Excel client is for creating the spreadsheets and then it is published to the MOSS 2007 document libraries. The Excel Services provides the necessary features for displaying the Excel files as reports or customized manner in the web browser.&lt;br /&gt;&lt;br /&gt;Dashboard provides optimized analysis of data by the end user. They also make the information relevant within in the reports. This data can be stored in the form of Aggregate workbooks, reports, scorecards, etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6956179292443405618-1477061038468534003?l=sharepoint-unleashed.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-unleashed.blogspot.com/feeds/1477061038468534003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/soon-to-be-updated-with-moss-2007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/1477061038468534003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6956179292443405618/posts/default/1477061038468534003'/><link rel='alternate' type='text/html' href='http://sharepoint-unleashed.blogspot.com/2009/10/soon-to-be-updated-with-moss-2007.html' title='An Introduction to Microsoft Office SharePoint Server 2007'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/04746607610786530439</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
