<?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-8982619124555969036</id><updated>2012-02-16T01:51:43.799-08:00</updated><category term='sharepoint'/><category term='installation'/><category term='infopath'/><category term='configuration'/><category term='&apos;Person or Group&apos;'/><category term='workflow'/><category term='Questions'/><category term='Mangaldas'/><category term='SPJobLockType'/><category term='SPFieldUserValue'/><category term='Site Definition'/><category term='Job Definition'/><category term='MOSS'/><category term='&apos;Lookup&apos;'/><category term='host file'/><category term='2007'/><category term='Mano'/><category term='SPFieldLookupValue'/><category term='Interview'/><category term='Welcome'/><title type='text'>Mano's blog.</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-7662505183937336240</id><published>2011-01-13T12:12:00.000-08:00</published><updated>2011-01-13T12:12:38.143-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Job Definition'/><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='SPJobLockType'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>SharePoint Job – SPJobLockType – which one should you use ?</title><content type='html'>&lt;span xmlns=""&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;&lt;span style="TEXT-DECORATION: underline;font-family:Consolas;" &gt;&lt;strong&gt;Architecture: &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;
&lt;a href="http://4.bp.blogspot.com/_g-JN_WB_wo4/SGP7xPyaijI/AAAAAAAAAN8/iIrcOzNjR6I/s1600-h/servers.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5216289616895314482" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_g-JN_WB_wo4/SGP7xPyaijI/AAAAAAAAAN8/iIrcOzNjR6I/s400/servers.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:Consolas;"&gt;There are 8 Servers in all..&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family:Consolas;"&gt;1 Database Server&lt;br /&gt;
1 Mail Server&lt;br /&gt;
2 Web-FrontEnds&lt;br /&gt;
4 App Servers (out of which one is the Central Admin and also a Web Frontend)&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family:Consolas;"&gt;&lt;span style="TEXT-DECORATION: underline"&gt;&lt;strong&gt;&lt;br /&gt;
Observation:&lt;br /&gt;
&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://2.bp.blogspot.com/_g-JN_WB_wo4/SGP61rhuoKI/AAAAAAAAANo/QtiwGDp7EjI/s1600-h/Observation.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5216288593549369506" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_g-JN_WB_wo4/SGP61rhuoKI/AAAAAAAAANo/QtiwGDp7EjI/s400/Observation.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family:Consolas;"&gt;If you take a look at the Job Status in the Operations tab of the Central Admin, we can see that some jobs are running 6 instances, some 3 and some 1 instance.&lt;br /&gt;
&lt;br /&gt;
The number of instances is controlled by the SPJobLockType parameter that has to be passed to your job constructor. ( For a guide to creating custom jobs refer Andrew Connell's article &lt;a href="http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx"&gt;http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx&lt;/a&gt; )&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://2.bp.blogspot.com/_g-JN_WB_wo4/SGP695VZ23I/AAAAAAAAANw/M2UEH_cNI_I/s1600-h/SPLockTypeCode.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5216288734694726514" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_g-JN_WB_wo4/SGP695VZ23I/AAAAAAAAANw/M2UEH_cNI_I/s400/SPLockTypeCode.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style="font-family:Consolas;"&gt;There are 3 Locks available..&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family:Consolas;"&gt;SPJobLockType.None -- if you set it none, the instance will run in all the available servers in the Farm (e.g. Application Server Timer Job) &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:Consolas;"&gt;SPJobLockType.ContentDatabase – this will cause 3 instances to be running in each of the Web-Frontends.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:Consolas;"&gt;SPJobLockType.Job – this will cause only one instance of the job to run on any of the front-end servers. (Note: it is possible to see multiple instances listed in the Job Status .. but if you look at the time it was last run.. only one would have run lately)&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;&lt;span style="font-family:Consolas;"&gt;If you have to develop a job, you have to first decide on the type of lock you need for your job.&lt;br /&gt;
E.g. If your job does something with the files in the Web-Frontend server you might want to use a ContentDatabase lock.. or if you have something that manipulates the data in a list.. you will have to use Job lock.&lt;br /&gt;
&lt;br /&gt;
Note: If you use other types of locks to manipulate the data in a list.. the multiple job instances will run simultaneously and cause Data Update conflict errors.&lt;br /&gt;
&lt;br /&gt;
Note: If for any reason you re-deploy your job.. either put the dll directly in GAC or deploysolution.. make sure you restart the 'Windows Sharepoint Services Timer' service. (OWSTIMER.EXE)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Consolas;"&gt;Note: The account used by the Timer service should have access to the Content Database.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-7662505183937336240?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/7662505183937336240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/06/sharepoint-job-spjoblocktype-which-one.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7662505183937336240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7662505183937336240'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/06/sharepoint-job-spjoblocktype-which-one.html' title='SharePoint Job – SPJobLockType – which one should you use ?'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_g-JN_WB_wo4/SGP7xPyaijI/AAAAAAAAAN8/iIrcOzNjR6I/s72-c/servers.gif' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-7424223997501940119</id><published>2010-02-13T05:10:00.001-08:00</published><updated>2010-02-13T05:44:31.543-08:00</updated><title type='text'>Sharepoint 2007 ( MOSS ) Interview Questions - 6</title><content type='html'>&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt; &lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt; &lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td align=right width=15%&gt; Next &gt;&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;&lt;span xmlns='' style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are WebPart properties, and what are some of the attributes you see when declaring WebPart properties in code?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Why are properties important in WebPart development, and how have you exploited them in past development projects? What must each custom property have?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are ClassResources? How do you reference and deploy resources with an ASP.NET 2.0 WebPart?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a SharePoint Solution File? How does it differ from WebPart .cab files in legacy development? What does it contain?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a .ddf file and what does it have to do with SharePoint Solution creation?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;.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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What file does a SharePoint solution package use to orchestrate (describe) its packaged contents?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The solution Manifest.XML file.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What deployment mechanism can you use to instigate Code Access Security attributes for your WebParts?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - When would you use an event receiver?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What base class do event receivers inherit from?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - If I wanted to not allow people to delete documents from a document library, how would I go about it?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;You would on the ItemDeleting event set: properties.Cancel= true.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - When running with SPSecurity.RunWithElevatedPrivileges (web context) what credentials are being used?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;In a web context, this is the application pool identity. In a timer job and workflow, this will be the 'Windows SharePoint Timer Services' identity.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - When should you dispose SPWeb and SPSite objects? And even more important, when not?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;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. More tricky constructs are things along the line of SPList.ParentWeb.&lt;br /&gt;
Also dispose each web when iterating over SPWeb.Webs &lt;br /&gt;
Also dispose SPLimitedWebPartManager's SPWeb property (.web) &lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What bugs have you found in SharePoint?  And what did you do to work around them?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What base classes do event receivers inherit from?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;SPListEventReceiver, SPItemEventReciever, and SPWebEventReceiver inherit from the abstract base class SPEventReceiverBase.&lt;br /&gt;
SPWorkflowLibraryEventReceiver inherits from SPItemEventReceiver.&lt;br /&gt;
SPEmailEventReceiver inherits directly from System.Object.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are the built in ways to backup a SharePoint install?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;A: Through the central administration and the stsadm command&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - (more advanced) You've created and deployed a Web Part, when you deploy to the server you get a page saying your Web Part couldn't be loaded, click here to go to the Web Part maintenance page, etc. to disable the web part. What step(s) should you take to get a stack dump from your web part instead of that error page?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Go to the web.config file for your website and find the CallStack Attribute in the SafeControls element and set the value to true&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How would you programmatically retrieve a list item?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;SPQuery and SPSiteDataQuery. Bonus points for knowledge of CrossListQueryCache, PortalSiteMapProvider. Negative points for use of foreach.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are the data types which are supported as Lookup column in SharePoint.&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Only Single Line of Text and Calculated columns are supported as lookup columns.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - how can debugging share point application and timer jobs ? with steps?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;&lt;ol&gt;&lt;li&gt;build application place .dll into gac and reset iis&lt;/li&gt;
&lt;li&gt;On the Debug menu, select Attach to Process&lt;/li&gt;
&lt;li&gt;select the Show processes from all users check box.&lt;/li&gt;
&lt;li&gt;select W3W.exe and OSWTIMER.exe can attach&lt;/li&gt;
&lt;li&gt;refresh sharepoint site point break point&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - what is web part?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Web Parts are the fundamental building blocks for Share Point user interface, and with them we can build and integrate many different types of applications.In share point also be create custom web part using .oscx control&lt;br /&gt;
steps create custom web part&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;create web part project copied .oscx control and build application.place .dll file in GAC .reset IIS.&lt;/li&gt;
&lt;li&gt;go 12 hive _layout folder create folder past your .oscx control&lt;/li&gt;
&lt;li&gt;go inetpub -&gt;wwwroot-&gt;wss-&gt;open Your site -&gt;web con fig-&gt;create safe control write assembly information of web part application&lt;/li&gt;
&lt;li&gt;open sharepoint site -&gt;site action-site editing-&gt;Galleries -&gt;web part-&gt;new Add your web part.&lt;/li&gt;
&lt;/ol&gt;follow few web part in WSS 3.0&lt;br /&gt;
Content Editor Web Part&lt;br /&gt;
Data View Web Part&lt;br /&gt;
List View Web Part&lt;br /&gt;
Image Web Part&lt;br /&gt;
Members Web Part .&lt;br /&gt;
Page Viewer Web Part&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are the advantages of SharePoint Portal Services (SPS) over SharePoint Team Services (STS)?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;harePoint Portal Services (SPS) has MUCH better document management. It has check-in, check-out, versioning, approval, publishing, subscriptions, categories, etc. STS does not have these features, or they are very scaled back. SharePoint Portal Services (SPS) has a better search engine, and can crawl multiple content sources. STS cannot. STS is easier to manage and much better for a team environment where there is not much Document Management going on. SPS is better for an organization, or where Document Management is crucial.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;a href="http://howtosharepoint.blogspot.com/2009/11/sharepoint-server-2010-interview.html"&gt;Sharepoint 2010 Interview questions&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;h3&gt;NOTE: To prepare for these interview question and to ensure 100% success, you should follow instructions in the post &lt;a href='http://manomangaldas.blogspot.com/2008/01/sharepoint-2007-moss-interview.html' target='_self'&gt;Sharepoint 2007 ( MOSS ) Interview preparation&lt;/a&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt; &lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt; &lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td align=right width=15%&gt; Next &gt;&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-7424223997501940119?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/7424223997501940119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7424223997501940119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7424223997501940119'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html' title='Sharepoint 2007 ( MOSS ) Interview Questions - 6'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-5078964863894230447</id><published>2010-02-13T05:09:00.000-08:00</published><updated>2010-02-13T05:21:08.067-08:00</updated><title type='text'>Sharepoint 2007 ( MOSS ) Interview Questions - 5</title><content type='html'>&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt;
&lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;span xmlns='' style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is an ancestral type and what does it have to do with content types?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Can a list definition be derived from a custom content type?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - When creating a list definition, how can you create an instance of the list?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;You can create a new instance of a list by creating an instance.XML file&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a Field Control?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What base class do custom Field Controls inherit from?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Can multiple SharePoint installs point to the same DB?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Multiple SharePoint installs can use the same database server. Not literally the same database on that server. That server must be SQL Server 2000 or SQL Server 2005. It cannot be Oracle or another vendor.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How to create links to the mapped network drives?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Creating links to mapped drives in WSS v3 or MOSS 2007 can be done via the new content type for .lnk files.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - While creating a Web part, which is the ideal location to Initialize my new controls?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is the WebPartManager sealed class? What is its purpose?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a SPSite and SPWeb object, and what is the difference between each of the objects?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What does a SPWebApplication object represent?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How do you return SharePoint List items using SharePoint web services?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - When retrieving List items using SharePoint Web Services, how do you specify explicit credentials to be passed to access the list items?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is CAML, and why would you use it?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is impersonation, and when would you use impersonation?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;a href="http://howtosharepoint.blogspot.com/2009/11/sharepoint-server-2010-interview.html"&gt;Sharepoint 2010 Interview questions&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;h3&gt;NOTE: To prepare for these interview question and to ensure 100% success, you should follow instructions in the post &lt;a href='http://manomangaldas.blogspot.com/2008/01/sharepoint-2007-moss-interview.html' target='_self'&gt;Sharepoint 2007 ( MOSS ) Interview preparation&lt;/a&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt;
&lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-5078964863894230447?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/5078964863894230447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/5078964863894230447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/5078964863894230447'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html' title='Sharepoint 2007 ( MOSS ) Interview Questions - 5'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-1420936609220994950</id><published>2010-02-08T10:46:00.000-08:00</published><updated>2010-02-08T10:46:26.104-08:00</updated><title type='text'>SharePoint Interview Questions for Administrator</title><content type='html'>SharePoint Interview Questions for Administrator&lt;br /&gt;
&lt;br /&gt;
What do you mean by Customized and UnCustomized Pages ( UnGhosted and Ghosted ) ?&lt;br /&gt;
&lt;br /&gt;
How can you control the access of the 'My Sites' and 'My Links' links from users accessing the site ?&lt;br /&gt;
&lt;br /&gt;
What are recommended limits of various entities of Sharepoint like Lists, Sites etc ?&lt;br /&gt;
&lt;br /&gt;
How can you make sure to create a site collection in a particular content database ? &lt;br /&gt;
&lt;br /&gt;
How can you stop creation of new site collections in a particular content database ?&lt;br /&gt;
&lt;br /&gt;
What are recommended set of service accounts required for a SharePoint farm ?&lt;br /&gt;
&lt;br /&gt;
Why is it important to seperate out the Indexing Service and the Query Service in different machines ?&lt;br /&gt;
&lt;br /&gt;
What are the methods of backup of a Sharepoint farm ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-1420936609220994950?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/1420936609220994950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-interview-questions-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/1420936609220994950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/1420936609220994950'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-interview-questions-for.html' title='SharePoint Interview Questions for Administrator'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-7409654588879512012</id><published>2010-02-07T13:20:00.001-08:00</published><updated>2010-02-13T05:25:03.602-08:00</updated><title type='text'>Sharepoint 2007 ( MOSS ) Interview Questions - 4</title><content type='html'>&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt;
&lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;span xmlns='' style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What deployment mechanism can you use to instigate Code Access Security attributes for your WebParts?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a SharePoint Feature? What files are used to define a feature?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;A SharePoint Feature is a functional component that can be activated and deactivate at various scopes throughout a SharePoint instances, such as at the farm, site collection, web, etc. Features have their own receiver architecture, which allow you to trap events such as when a feature is installing, uninstalling, activated, or deactivated. They are helpful because they allow ease of upgrades and versioning.&lt;br /&gt;
The two files that are used to define a feature are the feature.xml and manifest file. 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;
Side Question: I got asked how the introduction of features has changed the concept of site definitions. SharePoint features are important when understanding the architecture of site definitions, since the ONET.XML file has been vastly truncated since it has several feature stapled on it.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What types of SharePoint assets can be deployed with a SharePoint feature?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Features can do a lot. For example, you could deploy&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Simple site customizations&lt;/li&gt;
&lt;li&gt;Custom site navigation&lt;/li&gt;
&lt;li&gt;WebParts&lt;/li&gt;
&lt;li&gt;pages&lt;/li&gt;
&lt;li&gt;list types&lt;/li&gt;
&lt;li&gt;list instances&lt;/li&gt;
&lt;li&gt;event handlers&lt;/li&gt;
&lt;li&gt;workflows&lt;/li&gt;
&lt;li&gt;custom actions&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are event receivers?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - When would you use an event receiver?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What base class do event receivers inherit from?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - If I wanted to not allow people to delete documents from a document library, how would I go about it?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;You would on the ItemDeleting event set: properties.Cancel= true.&lt;br /&gt;
33) What is the difference between an asynchronous and synchronous event receivers?&lt;br /&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How could you append a string to the title of a site when it is provisioned?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;In the OnActivated event:&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;SPWeb site = siteCollection.RootWeb;
site.Title += "interview";
site.Update(); 
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Can an event receiver be deployed through a SharePoint feature?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Yes.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a content type?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;A content type is an information blueprint basically that can be re-used throughout a SharePoint environment for defining things like metadata and associated behaviors. It is basically an extension of a SharePoint list, however makes it portable for use throughout an instance regardless of where the instantiation occurs, ergo has location independence. Multiple content types can exist in one document library assuming that the appropriate document library settings are enabled. The content type will contain things like the metadata, listform pages, workflows, templates (if a document content type), and associated custom written functionality.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Can a content type have receivers associated with it?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What two files are typically (this is kept generally) included when developing a content type, and what is the purpose of each?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is an ancestral type and what does it have to do with content types?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Can a list definition be derived from a custom content type?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - When creating a list definition, how can you create an instance of the list?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;You can create a new instance of a list by creating an instance.XML file.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; -  What is a Field Control?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What base class do custom Field Controls inherit from?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a SharePoint site definition? What is ghosted (uncustomized) and unghosted (customized)?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;SharePoint site definitions are the core set of functionality from which SharePoint site are built from, building from the SiteTemplates directory in the SharePoint 12 hive. Site definitions allow several sites to inherit from a core set of files on the file system, although appear to have unique pages, thereby increasing performance and allowing changes that happen to a site propagate to all sites that inherit from a site definition. Ghosted means that when SharePoint creates a new site it will reference the files in the related site definition upon site provisioning. Unghosted means that the site has been edited with an external editor, and therefore the customizations are instead stored in the database, breaking the inheritance of those files from the file system.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How does one deploy new SharePoint site definitions so that they are made aware to the SharePoint system?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The best way to deploy site definitions in the SharePoint 2007 framework is to use a SharePoint solution file, so that the new site definition is automatically populated to all WFE’s in the SharePoint farm. &lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;a href="http://howtosharepoint.blogspot.com/2009/11/sharepoint-server-2010-interview.html"&gt;Sharepoint 2010 Interview questions - 4&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;h3&gt;NOTE: To prepare for these interview question and to ensure 100% success, you should follow instructions in the post &lt;a href='http://manomangaldas.blogspot.com/2008/01/sharepoint-2007-moss-interview.html' target='_self'&gt;Sharepoint 2007 ( MOSS ) Interview preparation&lt;/a&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt;
&lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-7409654588879512012?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/7409654588879512012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7409654588879512012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7409654588879512012'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html' title='Sharepoint 2007 ( MOSS ) Interview Questions - 4'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-3669888822675502025</id><published>2010-02-07T13:18:00.001-08:00</published><updated>2010-02-13T05:27:49.070-08:00</updated><title type='text'>Sharepoint 2007 ( MOSS ) Interview Questions - 3</title><content type='html'>&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt;
&lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;span xmlns='' style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is the difference between an Internet and an intranet site?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;An internet site is a normal site that anyone on the internet can access (e.g., www.msn.com, www.microsoft.com, etc.). You can set up a site for your company that can be accessed by anyone without any user name and password.&lt;br /&gt;
An intranet (or internal network), though hosted on the Web, can only be accessed by people who are members of the network. They need to have a login and password that was assigned to them when they were added to the site by the site administrator&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are the various kinds of roles the users can have?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;A user can be assigned one of the following roles&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Reader - Has read-only access to the Web site.&lt;/li&gt;
&lt;li&gt;Contributor - Can add content to existing document libraries and lists.&lt;/li&gt;
&lt;li&gt;Web Designer - Can create lists and document libraries and customize pages in the Web site.&lt;/li&gt;
&lt;li&gt;Administrator - Has full control of the Web site.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How customizable is the user-to-user access?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;User permissions apply to an entire Web, not to documents themselves. However, you can have additional sub webs that can optionally have their own permissions. Each user can be given any of four default roles. Additional roles can be defined by the administrator.&lt;br /&gt;
Can each user have access to their own calendar?&lt;br /&gt;
Yes there are two ways to do this,&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;by creating a calendar for each user, or&lt;/li&gt;
&lt;li&gt;by creating a calendar with a view for each user&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Can SharePoint be linked to a SQL database?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;This is possible via a custom application, but it not natively supported by SharePoint or SQL Server.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What does partial trust mean the Web Part developer?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;If an assembly is installed into the BIN directory, the code must be ensured that provides error handling in the event that required permissions are not available. Otherwise, unhandled security exceptions may cause the Web Part to fail and may affect page rendering on the page where the Web Part appears&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How can I raise the trust level for assemblies installed in the BIN directory?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Windows SharePoint Services can use any of the following three options from ASP.NET and the CLR to provide assemblies installed in the BIN directory with sufficient permissions. The following table outlines the implications and requirements for each option.&lt;br /&gt;
&lt;div class="tablediv"&gt;&lt;table border="1" cellpadding="0" cellspacing="0"&gt;&lt;tr&gt;&lt;th&gt;Option&lt;/th&gt;&lt;th&gt;Pros&lt;/th&gt;&lt;th&gt;Cons&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Increase the trust level for the entire virtual server. For more information, see "Setting the trust level for a virtual server"&lt;/td&gt;&lt;td&gt;Easy to implement.&lt;br /&gt;
&lt;p&gt;In a development environment, increasing the trust level allows you to test an assembly with increased permissions while allowing you to recompile assemblies directly into the BIN directory without resetting IIS.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;This option is least secure.&lt;br /&gt;
&lt;p&gt;This option affects all assemblies used by the virtual server.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;There is no guarantee the destination server has the required trust level. Therefore, Web Parts may not work once installed on the destination server.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Create a custom policy file for your assemblies. For more information, see "How do I create a custom policy file?"&lt;/td&gt;&lt;td&gt;Recommended approach.&lt;br /&gt;
&lt;p&gt;This option is most secure.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;An assembly can operate with a unique policy that meets the minimum permission requirements for the assembly.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;By creating a custom security policy, you can ensure the destination server can run your Web Parts.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;Requires the most configuration of all three options.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Install your assemblies in the GAC&lt;/td&gt;&lt;td&gt;Easy to implement.&lt;br /&gt;
&lt;p&gt;This grants Full trust to your assembly without affecting the trust level of assemblies installed in the BIN directory.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;This option is less secure.&lt;br /&gt;
&lt;p&gt;Assemblies installed in the GAC are available to all virtual servers and applications on a server running Windows SharePoint Services. This could represent a potential security risk as it potentially grants a higher level of permission to your assembly across a larger scope than necessary&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;In a development environment, you must reset IIS every time you recompile assemblies.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Licensing issues may arise due to the global availability of your assembly.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - When retrieving List items using SharePoint Web Services, how do you specify explicit credentials to be passed to access the list items?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;
*** Side Question: I got asked when you should state the credentials in code. You must state the credentials you are going to pass to the web service before you call any of the methods of the web service, otherwise the call will fail.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is CAML, and why would you use it?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is impersonation, and when would you use impersonation?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is the IDesignTimeHtmlProvider interface, and when can you use it in WebParts?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The IDesignTimeHtmlProvider interface uses the function GetDesignTimeHtml() which can contain your relevant render methods. It was helpful to use in 2003 since it allowed your WebPart to have a preview while a page was edited in FrontPage with the Webpart on it, because the GetDesignTimeHtml() method contains the HTML for the designer to render.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are WebPart properties, and what are some of the attributes you see when declaring WebPart properties in code?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Why are properties important in WebPart development, and how have you exploited them in past development projects? What must each custom property have?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are ClassResources? How do you reference and deploy resources with an ASP.NET 2.0 WebPart?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a SharePoint Solution File? How does it differ from WebPart .cab files in legacy development? What does it contain?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;
Just to name a few things…&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a .ddf file and what does it have to do with SharePoint Solution creation?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What file does a SharePoint solution package use to orchestrate (describe) its packaged contents?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The solution Manifest.XML file.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;a href="http://howtosharepoint.blogspot.com/2009/11/sharepoint-server-2010-interview.html"&gt;Sharepoint 2010 Interview questions - 3&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;h3&gt;NOTE: To prepare for these interview question and to ensure 100% success, you should follow instructions in the post &lt;a href='http://manomangaldas.blogspot.com/2008/01/sharepoint-2007-moss-interview.html' target='_self'&gt;Sharepoint 2007 ( MOSS ) Interview preparation&lt;/a&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt;
&lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-3669888822675502025?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/3669888822675502025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/3669888822675502025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/3669888822675502025'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html' title='Sharepoint 2007 ( MOSS ) Interview Questions - 3'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-2308021331093256427</id><published>2010-02-07T13:17:00.000-08:00</published><updated>2010-02-13T05:31:32.434-08:00</updated><title type='text'>Sharepoint 2007 ( MOSS ) Interview Questions - 2</title><content type='html'>&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt;
&lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;span xmlns='' style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are the two base classes a WebPart you are going to use within SharePoint 2007 can inherit from?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;There are two base classes that a WebPart which is going to be consumed by SharePoint can inherit from, either the SharePoint WebPart Base class or the ASP.NET 2.0 WebPart base class. 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;
&lt;ul&gt;&lt;li&gt;Cross page connections&lt;/li&gt;
&lt;li&gt;Connections between Web Parts that are outside of a Web Part zone&lt;/li&gt;
&lt;li&gt;Client-side connections (Web Part Page Services Component)&lt;/li&gt;
&lt;li&gt;Data caching infrastructure&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are the differences between the two base classes and what are the inherit benefits of using one over another?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The difference is the Microsoft.SharePoint.WebPartPages.WebPart base class is meant for backward compatibility with previous versions of SharePoint. The benefit of using the SharePoint WebPart base class is it supported:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Cross page connections&lt;/li&gt;
&lt;li&gt;Connections between Web Parts that are outside of a Web Part zone&lt;/li&gt;
&lt;li&gt;Client-side connections (Web Part Page Services Component)&lt;/li&gt;
&lt;li&gt;Data caching infrastructure&lt;/li&gt;
&lt;/ul&gt;ASP.NET 2.0 WebParts are generally considered better to use because SharePoint is built upon the ASP.NET 2.0 web architecture. Inheriting from the ASP.NET 2.0 base class offers you features that inherit to ASP.NET 2.0, such as embedding resources as opposed to use ClassResources for deployment of said types.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is the GAC?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The GAC stands for the global assembly cache. It is the machine wide code cache which will give custom binaries place into the full trust code group for SharePoint. Certain SharePoint assets, such as Feature Receivers need full trust to run correctly, and therefore are put into the GAC. You should always try to avoid deployment to the GAC as much as possible since it will possibly allow development code to do more than it was intended to do.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is strong naming (signing) a WebPart assembly file mean?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Signing an assembly with a strong name (a.k.a strong naming) uses a cryptographic key pair that gives a unique identity to a component that is being built. This identity can then be referred throughout the rest of the environment. In order to install assemblies into the GAC, they must be strongly named. After signing, the binary will have a public key token identifier which can be use to register the component in various other places on the server.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What are safe controls, and what type of information, is placed in that element in a SharePoint web.config file?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;When you deploy a WebPart to SharePoint, you must first make it as a safe control to use within SharePoint in the web.config file. Entries made in the safe controls element of SharePoint are encountered by the SharePointHandler object and will be loaded in the SharePoint environment properly, those not will not be loaded and will throw an error.&lt;br /&gt;
In the generic safe control entry (this is general, there could be more), there is generally the Assembly name, the namespace, the public key token numeric, the typename, and the safe declaration (whether it is safe or not). There are other optional elements.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is the CreateChildControls() method? How can you use it to do something simple like displaying a Label control?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The CreateChildControls method in WebParts is used to notify the WebPart that there are children controls that should be output for rendering. Basically, it will add any child ASP.NET controls that are called instantiating each control with its relevant properties set, wire any relevant event handlers to the control, etc. Then the add method of the control class will add the control to the controls collection. In the relevant WebPart render method, the EnsureChildControls method can be called (or set to false if no child controls should be called) to ensure that the CreateChildControls method is run. When using CreateChildControls it implies that your WebPart contains a composition of child controls.&lt;br /&gt;
In order to create something like a label control in Create, you would create a new label control using the new keyword, set the various properties of the control like Visible=True and ForeColor = Color.Red, and then use Controls.Add(myLabelControl) to add the control to the controls collection. Then you can declare EnsureChildControls in the Render method of the WebPart.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What does the RenderContents method do in an ASP.NET 2.0 WebPart?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The render contents method will render the WebPart content to the writer, usually an HtmlTextWriter since WebParts will output to an HTML stream. RenderContents is used to tell how the controls that are going to be displayed in the WebPart should be rendered on the page.&lt;br /&gt;
*** Side Question: I got asked what the difference between CreateChildControls and the RenderContents method. The CreateChildControls method is used to add controls to the WebPart, and the RenderContents method is used to tell the page framework how to render the control into HTML to display on a page.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is the WebPartManager sealed class? What is its purpose?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;
*** Side Question: I got asked how many WebPartManager controls should be on a page. In order to have WebParts on a page there has to be just one WebPartManager control to manage all the WebParts on the page.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What is a SPSite and SPWeb object, and what is the difference between each of the objects?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;The SPSite object represents a collection of sites (site collection [a top level sites 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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How would you go about getting a reference to a site?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;&lt;pre class="brush: csharp"&gt;C#: 
oSPSite = new  SPSite("http:/server");
 
oSPWeb = oSPSite.OpenWeb(); 
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - What does a SPWebApplication object represent?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;
Side Question: I got asked if there are other ways to send emails from SharePoint. The answer is yes, there is. You can use the SendMail method from the SPutility class to send simple emails, however it is not as robust as using the System.Net.Mail functionality since it doesn’t allow things like setting priorities on the email.&lt;br /&gt;
&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How do you connect (reference) to a SharePoint list, and how do you insert a new List Item?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;&lt;pre class="brush: csharp"&gt;C#: 
using(SPSite mySite = new SPSite("yourserver"))
{
using(SPWeb myWeb = mySite.OpenWeb())
{
SPList interviewList = myWeb.Lists["listtoinsert"];
SPListItem newItem = interviewList.Items.Add();
 
newItem["interview"] = "interview";
newItem.Update();
}
} 
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How would you loop using SPList through all SharePont List items, assuming you know the name (in a string value) of the list you want to iterate through, and already have all the site code written?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;&lt;pre class="brush: csharp"&gt;C#: 
SPList interviewList = myWeb.Lists["listtoiterate"];
foreach (SPListItem interview  in interviewList)
{
// Do Something
} 
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt; - How do you return SharePoint List items using SharePoint web services?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;a href="http://howtosharepoint.blogspot.com/2009/11/sharepoint-server-2010-interview.html"&gt;Sharepoint 2010 Interview questions - 2&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;h3&gt;NOTE: To prepare for these interview question and to ensure 100% success, you should follow instructions in the post &lt;a href='http://manomangaldas.blogspot.com/2008/01/sharepoint-2007-moss-interview.html' target='_self'&gt;Sharepoint 2007 ( MOSS ) Interview preparation&lt;/a&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt;
&lt;td align=left width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; &lt;&lt; Previous &lt;/a&gt;&lt;/td&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-2308021331093256427?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/2308021331093256427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/2308021331093256427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/2308021331093256427'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html' title='Sharepoint 2007 ( MOSS ) Interview Questions - 2'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-987474773165144482</id><published>2009-11-13T19:51:00.000-08:00</published><updated>2009-11-25T10:23:10.386-08:00</updated><title type='text'>Visual Studio 2008 - how to enable web application templates in class project</title><content type='html'>Sometimes it is required that we create a class project and then add controls from other project types.. e.g. for sharepoint development we may want web pages available in a class project. &lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_g-JN_WB_wo4/Sv4nQh-W94I/AAAAAAAAAUo/kvIWLyGRDqI/s1600-h/webappinClass_1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://1.bp.blogspot.com/_g-JN_WB_wo4/Sv4nQh-W94I/AAAAAAAAAUo/kvIWLyGRDqI/s640/webappinClass_1.png" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Following are the steps to do so..&lt;br /&gt;
1. Unload the project&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_g-JN_WB_wo4/Sv4nUFfxImI/AAAAAAAAAUw/Ihg0cbkpwJs/s1600-h/webappinClass_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://2.bp.blogspot.com/_g-JN_WB_wo4/Sv4nUFfxImI/AAAAAAAAAUw/Ihg0cbkpwJs/s320/webappinClass_2.png" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;2. For C# projects add the following&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;&lt;ProjectTypeGuids&gt;{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}&lt;/ProjectTypeGuids&gt;
&lt;/pre&gt;For VB.Net&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;&lt;projecttypeguids&gt;{349c5851-65df-11da-9384-00065b846f21};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}&lt;/ProjectTypeGuids&gt;
&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_g-JN_WB_wo4/Sv4qrcktFoI/AAAAAAAAAVw/MPluPvkf_G0/s1600-h/webappinClass_32.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://3.bp.blogspot.com/_g-JN_WB_wo4/Sv4qrcktFoI/AAAAAAAAAVw/MPluPvkf_G0/s640/webappinClass_32.png" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
3. Reload the project. You should now see all the web item templates.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_g-JN_WB_wo4/Sv4pCdtafyI/AAAAAAAAAVQ/I42eJap5ABI/s1600-h/webappinClass_4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://4.bp.blogspot.com/_g-JN_WB_wo4/Sv4pCdtafyI/AAAAAAAAAVQ/I42eJap5ABI/s640/webappinClass_4.png" /&gt;&lt;/a&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/8982619124555969036-987474773165144482?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/987474773165144482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2009/11/visual-studio-2005-how-to-enable-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/987474773165144482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/987474773165144482'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2009/11/visual-studio-2005-how-to-enable-web.html' title='Visual Studio 2008 - how to enable web application templates in class project'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_g-JN_WB_wo4/Sv4nQh-W94I/AAAAAAAAAUo/kvIWLyGRDqI/s72-c/webappinClass_1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-751385463049450000</id><published>2008-11-09T16:07:00.000-08:00</published><updated>2009-04-21T06:17:50.429-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='&apos;Person or Group&apos;'/><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='SPFieldUserValue'/><category scheme='http://www.blogger.com/atom/ns#' term='&apos;Lookup&apos;'/><category scheme='http://www.blogger.com/atom/ns#' term='SPFieldLookupValue'/><title type='text'>How to get values from 'Person or Group' or 'Lookup' field</title><content type='html'>&lt;pre class="brush: csharp"&gt;
SPListItem item; 
.... 

// To get value from 'Person or Group' field 
SPFieldUserValue fieldValue = (SPFieldUserValue)item.Fields["Agent"].GetFieldValue((string)item["Agent"]); 

//Sometimes it is possible that the field display name is different that the internal name.. 
// in this case use the internalname
SPFieldUserValue AssignedToValue = (SPFieldUserValue)item.Fields.GetFieldByInternalName("Assign_x0020_to").GetFieldValue((string)item["Assign_x0020_to"]);


//To get value from 'Lookup' field 
SPFieldLookupValue jobValue = (SPFieldLookupValue)item.Fields["Job"].GetFieldValue((string)item["Job"]); 

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-751385463049450000?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/751385463049450000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/11/how-to-get-values-from-person-or-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/751385463049450000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/751385463049450000'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/11/how-to-get-values-from-person-or-group.html' title='How to get values from &apos;Person or Group&apos; or &apos;Lookup&apos; field'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-42638798152282392</id><published>2008-06-08T19:42:00.001-07:00</published><updated>2008-06-08T19:42:03.783-07:00</updated><title type='text'>Tooltip Balloon</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;"http://www.w3.org/TR/xhtml/DTD/xhtml-transitional.dtd"&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt; 
 &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;head&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;!--  
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;      Derrived from the work of Eric Meyer 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;      http://www.meyerweb.com/eric/css/edge/popups/demo.html
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;      --&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;meta http-equiv="content-type" content="text/html;charset=iso-8859-1"&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;title&amp;gt;| mikezilla | CSS Rollovers for tooltips&amp;lt;/title&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;!--
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;script type="text/javascript" src="mikezilla.js"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;link rel="stylesheet" type="text/css" media="screen" title="" href="mikezilla-exp.css"&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;--&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;style type="text/css"&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  body {font: normal 14px/20px verdana;}
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  a:hover {background-color: #333;color:#fff;}
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  p.link a:hover {background-color: #2B2E21;;color:#fff;}
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  p.link a:link span{display: none;}
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  p.link a:visited span{display: none;}
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  p.link a:hover span {
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  position: absolute;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  margin:15px 0px 0px 20px;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  background-color: beige;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  max-width:220;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  padding: 2px 10px 2px 10px;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  border: 1px solid #C0C0C0;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  font: normal 10px/12px verdana;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  color: #000;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  text-align:left;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;  display: block;}
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;/style&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;/head&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt; 
 &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;body&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;p&amp;gt; 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;| &amp;lt;a href="http://www.mikezilla.com"&amp;gt;mikezilla.com&amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;/p&amp;gt; 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;Tooltips using ONLY CSS, no JavaScript: Mike Golding 2002
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;   &amp;lt;p class="link"&amp;gt;&amp;lt;a href="http://www.notestips.com"&amp;gt;link 1&amp;lt;span&amp;gt;Tooltip1: This link takes you to www.notestips.com - demo&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;   &amp;lt;p class="link"&amp;gt;&amp;lt;a href="http://www.notestips.com"&amp;gt;link 2&amp;lt;span&amp;gt;Tooltip2: This link takes you to www.notestips.com - another demo&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;   &amp;lt;a href="#" OnClick="return false;"&amp;gt;No tooltip&amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;   &amp;lt;br /&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;   &amp;lt;p class="link"&amp;gt;&amp;lt;a href="http://www.notestips.com"&amp;gt;link 3&amp;lt;span&amp;gt;Tooltip3: This link takes you to www.notestips.com&amp;lt;br /&amp;gt; This tooltip is on...&amp;lt;br /&amp;gt;...multiple lines - yet another demo&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;   
 &lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;br /&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;amp;copy &amp;lt;a href="http://www.notestips.com"&amp;gt;Mike Golding&amp;lt;/a&amp;gt; 2002
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt; &amp;lt;/body&amp;gt;
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas; font-size:10pt'&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-42638798152282392?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/42638798152282392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/06/tooltip-balloon.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/42638798152282392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/42638798152282392'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/06/tooltip-balloon.html' title='Tooltip Balloon'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-1178462886329225805</id><published>2008-06-07T19:00:00.001-07:00</published><updated>2008-11-12T18:00:24.423-08:00</updated><title type='text'>Some references in a glance</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_g-JN_WB_wo4/SEtBvOer1QI/AAAAAAAAAKk/YomQSu4Mha0/s1600-h/SharePointXML%40glance.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5209329673580565762" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_g-JN_WB_wo4/SEtBvOer1QI/AAAAAAAAAKk/YomQSu4Mha0/s320/SharePointXML%40glance.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_g-JN_WB_wo4/SEtBv0yCr0I/AAAAAAAAAKs/keD5qNpN6_Y/s1600-h/Elements_Samples.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5209329683862302530" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_g-JN_WB_wo4/SEtBv0yCr0I/AAAAAAAAAKs/keD5qNpN6_Y/s320/Elements_Samples.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_g-JN_WB_wo4/SEtBwJ0eAqI/AAAAAAAAAK0/prbkvrqbYOI/s1600-h/FileProvisioning.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5209329689509626530" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_g-JN_WB_wo4/SEtBwJ0eAqI/AAAAAAAAAK0/prbkvrqbYOI/s320/FileProvisioning.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;span xmlns=""&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-1178462886329225805?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/1178462886329225805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/06/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/1178462886329225805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/1178462886329225805'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/06/blog-post.html' title='Some references in a glance'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_g-JN_WB_wo4/SEtBvOer1QI/AAAAAAAAAKk/YomQSu4Mha0/s72-c/SharePointXML%40glance.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-5615924337290249773</id><published>2008-04-01T11:19:00.000-07:00</published><updated>2009-12-05T07:12:57.876-08:00</updated><title type='text'>Send email with attachments in SharePoint</title><content type='html'>SPUtility.SendEmail.. can be used most of the time to send email. &lt;br /&gt;
But when you want to send email with attachments.. &lt;br /&gt;
you can use SmtpClient from System.Net.Mail namespace. &lt;br /&gt;
&lt;br /&gt;
Namespaces required&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;using System.Net.Mail;
using Microsoft.SharePoint.Administration;
&lt;/pre&gt;&lt;br /&gt;
First you need to get a instance to the SMTP server configured in your sharepoint farm&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;private SmtpClient LoadSmtpInformation()
{
    string smtpServer = SPAdministrationWebApplication.Local.OutboundMailServiceInstance.Server.Address;
    SmtpClient client = new SmtpClient(smtpServer);
    client.Credentials = new System.Net.NetworkCredential("mmangaldas", "");
    return client;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Once you have that, let say you want to send the attachments in a list item as email attachments..&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;private MailMessage BuildMailMessage(SPListItem item)
{
    MailMessage message = new MailMessage();
    SPList list = item.ParentList;
    
    message.From = new MailAddress(SPAdministrationWebApplication.Local.OutboundMailSenderAddress.ToString());
    message.To.Add(new MailAddress("to@mycompany.com");
    message.IsBodyHtml = true;
    message.Body = "Hi there, check out the attachment";
    message.Subject = "Sent Attachment";
    
    for (int attachmentIndex = 0; attachmentIndex &lt; item.Attachments.Count; attachmentIndex++)
    {
        string url = item.Attachments.UrlPrefix + item.Attachments[attachmentIndex];
        SPFile file = list.ParentWeb.GetFile(url);
        Message.Attachments.Add(new Attachment(file.OpenBinaryStream(), file.Name));
    }

    return message;
}
&lt;/pre&gt;
Finally, use the SMTP instance to send the mail.
&lt;pre class="brush:csharp"&gt;client.Send(BuildMailMessage(item));
&lt;/pre&gt;
Complete code for an itemeventreciever sending email with attachments can be downloaded &lt;a href="http://www.4shared.com/file/166083285/ffd3c628/SendEmailWithAttachments.html"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-5615924337290249773?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/5615924337290249773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/04/send-email-with-attachments-in.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/5615924337290249773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/5615924337290249773'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/04/send-email-with-attachments-in.html' title='Send email with attachments in SharePoint'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-8709023040031205978</id><published>2008-03-21T09:37:00.000-07:00</published><updated>2008-06-04T11:28:25.659-07:00</updated><title type='text'>Some Small Information to remember</title><content type='html'>&lt;span xmlns=''&gt;&lt;ol&gt;&lt;li&gt;&lt;span style='font-family:Gill Sans MT'&gt;If your solution specifies elements (a.k.a. "resources") that need to be merged into a Web.config file (i.e. "for a Web application") then you must specify the url parameter. If your solution does not have an assembly or if your solution contains workflows, then you cannot specify the url parameter. &lt;a href='http://blogs.msdn.com/jjameson/archive/2007/06/17/issues-deploying-sharepoint-solution-packages.aspx'&gt;more details...&lt;/a&gt;
					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Gill Sans MT'&gt;To enable session, do it in the CA and also in the web.config. SSP has to be provisioned. aspnet_regsql must be execute at the end. &lt;a href='http://www.sharepointblogs.com/erickraus/archive/2007/12/09/enable-session-state-in-sharepoint-2007.aspx'&gt;more details..&lt;/a&gt;
					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Gill Sans MT'&gt;Modifying Sharepoint Documents Icon is as simple as changing a value in the xml file... 12\Template\XML\docicon.xml. &lt;a href='http://www.sharepointblogs.com/erickraus/archive/2007/12/08/modify-sharepoint-document-icons.aspx'&gt;more info..&lt;/a&gt;
					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:#333333; font-family:Gill Sans MT'&gt;To show the standard SharePoint icon against new list items in a data view web part (or other XSLT web parts), use the following snippet:&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Consolas'&gt;&lt;span style='color:blue'&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:maroon'&gt;xsl:if&lt;/span&gt;&lt;span style='color:red'&gt; test&lt;/span&gt;&lt;span style='color:blue'&gt;="ddwrt:IfNew(string(@Created))"&amp;gt;&lt;/span&gt;&lt;span style='color:#333333'&gt;&lt;br/&gt;    &lt;/span&gt;&lt;span style='color:blue'&gt;&amp;lt;&lt;/span&gt;&lt;span style='color:maroon'&gt;img&lt;/span&gt;&lt;span style='color:red'&gt; src&lt;/span&gt;&lt;span style='color:blue'&gt;="/_layouts/1033/images/new.gif"&lt;/span&gt;&lt;span style='color:red'&gt; alt&lt;/span&gt;&lt;span style='color:blue'&gt;="New"&lt;/span&gt;&lt;span style='color:#333333'&gt; &lt;/span&gt;&lt;span style='color:blue'&gt;/&amp;gt;&lt;br/&gt;&amp;lt;/&lt;/span&gt;&lt;span style='color:maroon'&gt;xsl:if&lt;/span&gt;&lt;span style='color:blue'&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Gill Sans MT'&gt;
					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:#333333'&gt;&lt;span style='font-family:Gill Sans MT'&gt;Reveal Unknown Error on Sharepoint 2007 pages&lt;/span&gt;&lt;span style='font-family:Verdana'&gt;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Consolas'&gt;&amp;lt;SafeMode ... CallStack="false" ...&amp;gt; and change it to CallStack="true"&lt;br/&gt;Set &amp;lt;customErrors mode="On" /&amp;gt; to mode="Off"&lt;br/&gt;Set &amp;lt;compilation batch="false" debug="false"&amp;gt; to &amp;lt;compilation batch="true" debug="true"&amp;gt;&lt;/span&gt;&lt;span style='font-family:Gill Sans MT'&gt;
					&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-8709023040031205978?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/8709023040031205978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/03/some-small-information-to-remember.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/8709023040031205978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/8709023040031205978'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/03/some-small-information-to-remember.html' title='Some Small Information to remember'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-9081420461515696150</id><published>2008-03-06T07:48:00.001-08:00</published><updated>2008-03-06T08:45:39.808-08:00</updated><title type='text'>Important Links</title><content type='html'>&lt;a href="http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html"&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;

&lt;/span&gt;&lt;a href="http://www.helloitsliam.com/Downloads/Forms/AllItems.aspx"&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;http://www.helloitsliam.com/Downloads/Forms/AllItems.aspx&lt;/span&gt;&lt;/a&gt;
&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;/span&gt;
&lt;a href="http://www.andrewconnell.com/blog/articles/HowToConfigPublishingSiteWithDualAuthProvidersAndAnonAccess.aspx"&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;http://www.andrewconnell.com/blog/articles/HowToConfigPublishingSiteWithDualAuthProvidersAndAnonAccess.aspx&lt;/span&gt;&lt;/a&gt;

&lt;a href="http://msmvps.com/blogs/sundar_narasiman/"&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;http://msmvps.com/blogs/sundar_narasiman/&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-9081420461515696150?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/9081420461515696150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/03/important-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/9081420461515696150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/9081420461515696150'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/03/important-links.html' title='Important Links'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-8649592565560764878</id><published>2008-03-04T11:43:00.001-08:00</published><updated>2008-03-04T11:44:43.926-08:00</updated><title type='text'>Sharepoint Certification</title><content type='html'>&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;A very good guide on getting certified in sharepoint can be found in &lt;/span&gt;&lt;a href="http://www.sharepoint-tips.com/2007/01/sharepoint-2007-beta-exams-tips.html"&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;Isahi's &lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;blog &lt;/span&gt;&lt;a href="http://www.sharepoint-tips.com/2007/01/sharepoint-2007-beta-exams-tips.html"&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;http://www.sharepoint-tips.com/2007/01/sharepoint-2007-beta-exams-tips.html&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-8649592565560764878?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/8649592565560764878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/03/sharepoint-certification.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/8649592565560764878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/8649592565560764878'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/03/sharepoint-certification.html' title='Sharepoint Certification'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-1188062592145307477</id><published>2008-02-24T12:36:00.000-08:00</published><updated>2008-02-24T12:44:15.145-08:00</updated><title type='text'>Site Templates Vs Site Definitions</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;The mail difference between site templates and site definitions is that site templates do not include any code but Site definitions include code when you use to build a site.&lt;/span&gt;

&lt;span style="font-family: trebuchet ms;"&gt;Any changes to the site template is not directly applied to the sites that were created using it.. but changes made to site definitions is automatically reflected to all its sites&lt;/span&gt;

&lt;span style="font-family: trebuchet ms;"&gt;Site Templates are also known as &lt;/span&gt;&lt;strong style="font-family: trebuchet ms;"&gt;Site admin&lt;/strong&gt;&lt;span style="font-family: trebuchet ms;"&gt; templates (*.stp files).. that are easy for any SharePoint site administrator to install into the template  gallery without requiring server administration access&lt;/span&gt;
&lt;span style="font-family: trebuchet ms;"&gt;Site Definitions are also known as &lt;/span&gt;&lt;strong style="font-family: trebuchet ms;"&gt;Server admin&lt;/strong&gt;&lt;span style="font-family: trebuchet ms;"&gt; templates (*.wsp files).. enabling tighter integration and enhanced functionality within the Windows  SharePoint Services platform. They require a server administrator to install.&lt;/span&gt;

&lt;span style="font-family: trebuchet ms;"&gt;The fantastic 40 templates from Microsoft can be downloaded &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb407286.aspx"&gt;here &lt;/a&gt;&lt;span style="font-family: trebuchet ms;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-1188062592145307477?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/1188062592145307477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/02/site-templates-vs-site-definitions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/1188062592145307477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/1188062592145307477'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/02/site-templates-vs-site-definitions.html' title='Site Templates Vs Site Definitions'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-5298916774977698701</id><published>2008-02-23T11:17:00.000-08:00</published><updated>2008-11-12T18:00:24.894-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='infopath'/><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='workflow'/><title type='text'>infopath error -- "The form has been closed."</title><content type='html'>&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;"The form has been closed" ( and "The specified form cannot be found." )&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;This is a very common problem faced by beginners while implementing infopath forms based solutions..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;This is specific to Workflow using Infopath forms ( remember .. workflow forms can be developed using aspx forms too).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;if you get form closed message means there is a problem with your infopath form , &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;1. Problem with form urn's -- you build , save and publish the infopath form. Then in File&gt;Properties menu.. you can get the identity of this form from the ID field.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://2.bp.blogspot.com/_g-JN_WB_wo4/R8B0HZMeY0I/AAAAAAAAAJE/dVtLzD8NjMA/s1600-h/FormProperties.JPG"&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5170260042592445250" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_g-JN_WB_wo4/R8B0HZMeY0I/AAAAAAAAAJE/dVtLzD8NjMA/s320/FormProperties.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;br /&gt;2. Problem with datasource.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;br /&gt;3. make sure that the infopath form is browser compatible.. before you create a new form template.. select browser compatible option.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_g-JN_WB_wo4/R8B0-JMeY1I/AAAAAAAAAJM/JZg5nEpEIk8/s1600-h/formBrowserEnabled.JPG"&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5170260983190283090" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_g-JN_WB_wo4/R8B0-JMeY1I/AAAAAAAAAJM/JZg5nEpEIk8/s320/formBrowserEnabled.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;br /&gt;4. make sure that correct trust for forms is given, give domain or full trust.check error log &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;Tools &gt; Forms Options.. &gt; Security and Trust&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;5. Dont forget to include the following in the features.xml&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"&lt;br /&gt;ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;If you have done all these right.. still cant view the form after deployment... then the probable cause might be that the form itself is not located..&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-size:85%;"&gt;Forms are located using the following..&lt;br /&gt;1. the metadata in workflow.xml&lt;br /&gt;&lt;association_formurn&gt;&lt;span style="font-family:courier new;"&gt;urn:schemas-microsoft-com:office:infopath:Association:-myXSD-2008-02-23T21-31-09&lt;/association_formurn&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;2. Make sure that the forms gets uploaded in forms library.&lt;br /&gt;for this.. you have to place the *.xsn along with the features.xml and workflow.xml in the features directory before getting deployed.&lt;br /&gt;once deployed.. you can verify that the file is properly deployed by checking the forms library.&lt;br /&gt;Central Administrator &gt; InfoPath Forms Services &gt; Manage form templates&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;Tip:&lt;br /&gt;If you are intending to create a .wsp (solution file).. then you have to do the following ..&lt;br /&gt;1. Add the following inside the &lt;elementmanifests&gt; of feature.xml    &lt;elementfile location="Forms\Form1.xsn"&gt;      &lt;elementfile location="Forms\Form2.xsn"&gt;     where Forms\Form1.xsn and Forms\Form2.xsn is the relative path to my infopath form published location      and change the line     &lt;property key="RegisterForms" value="*.xsn"&gt;     To     &lt;property key="RegisterForms" value="Forms\*.xsn"&gt;&lt;br /&gt;2. Modify the wsp_structure.ddf file such that the two xsn form files are copied to the feature folder like          "..\DeploymentFiles\FeatureFiles\Forms\Form1.xsn"      MSSampleWorkflow\Forms\Form1.xsn       "..\DeploymentFiles\FeatureFiles\Forms\Form2.xsn"      MSSampleWorkflow\Forms\Form2.xsn    where MSSampleWorkflow is the name of the project&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;Even after this.. if you still get errors.. then it is probably a code problem.. for more information reside in web server extensions/12/logs&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-5298916774977698701?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/5298916774977698701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/02/infopath-error-form-has-been-closed.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/5298916774977698701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/5298916774977698701'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/02/infopath-error-form-has-been-closed.html' title='infopath error -- &quot;The form has been closed.&quot;'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_g-JN_WB_wo4/R8B0HZMeY0I/AAAAAAAAAJE/dVtLzD8NjMA/s72-c/FormProperties.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-7409236281575555223</id><published>2008-01-25T03:34:00.000-08:00</published><updated>2008-01-25T03:38:35.255-08:00</updated><title type='text'>WSS WorkFlows</title><content type='html'>&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;strong&gt;Reactive Programs&lt;/strong&gt;&lt;/span&gt;
&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;The Windows Workflow Foundation is a new programming framework introduced in .NET 3.0 for creating reactive programs. A reactive program typically represents a set of instructions used to capture and automate a specific business process. Reactive programs are often referred to as episodic. This means that they run in episodes- short little bursts of activity that are followed by longer periods of inactivity in which they are waiting for additional input. Reactive programs must also be written so that they are resumable. Due to the episodic nature of a reactive program that automates long-running tasks, such as document approval, it is impractical to merely track its data in memory. Instead, it is necessary to write the data associated with document approvals into some persistent store, such as a database. This is a critical aspect of reactive programs because, without persistence, the approval data would be lost in the face of an application crash or machine reboot. &lt;/span&gt;
&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;
&lt;strong&gt;Windows Framework Foundation Architecture&lt;/strong&gt;
In WF terminology, these reactive programs are known as WF programs. It is also required that these WF programs run in a special environment known as the WF runtime, which is included as part of the .NET 3.0 Framework.A WF program is a class definition that is usually designed and implemented to automate a business process. Each time you initiate a WF program, you create a workflow instance.You add fields to the class that represents your WF program to manage the state that must be tracked within each workflow instance. You add control-of-flow logic to your WF program to move each workflow instance through its life cycle from episode to episode until it completes or is terminated.Activities are the building blocks that developers use to construct WF programs. You can think of each activity as an atomic and reusable set of instructions that represents a single unit of work. An activity is a class that inherits from the Activity class defined within the System.Workflow. ComponentModel assembly inside a namespace of the same name. The Activity class contains an overridable method named Execute. The Execute method is overridden by activity authors to give their activities the behavior they require. Note that the Execute method of an activity is always called by the WF runtime and never by programmers directly.Another very important aspect of the WF programming model is that certain types of activities can have child activities, which are known as composite activities. The WF programming model includes a class named CompositeActivity that inherits from Activity. The CompositeActivity class extends the Activity base class by including an Activities property that exposes a collection used to add and track child activities

&lt;strong&gt;Creating WF Programs&lt;/strong&gt;
A WF program is a composite activity that contains child activities. The WF program’s child activities can also be composite activities with children of their own and so on. Therefore, a WF program is really nothing more than a composition of activities with a hierarchical treelike structure. Every activity within a WF program has a Name property that is assigned by the activity consumer at design timeEvery activity has a Parent property that references the composite activity in which it is contained. The only activity that should have a Parent property value equal to null is the root activity that represents the WF program itself.The SequentialWorkflowActivity class is used to create sequential WF programs, while the StateMachineWorkflowActivity class is used to create state machine WF programs. Both of these classes inherit from CompositeActivity

&lt;strong&gt;WF Runtime&lt;/strong&gt;
A hosting application simply needs to start the runtime, and it can then create and start workflow instances from any WF program.An application or service written to use the WF must often interact with an external entity, such as a backend database server, to persist the serialized data for its workflow instances. The WF was designed so that all such interaction with external entities is delegated to the WF runtime services. Any developer or company can create a pluggable component that persists workflow instance state to whatever type of database they would like. To persist the serialized data for the workflow instance, where should the data be saved? The obvious answer is to save it right inside the WSS content database.&lt;/span&gt;
&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-7409236281575555223?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/7409236281575555223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/01/wss-workflows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7409236281575555223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7409236281575555223'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/01/wss-workflows.html' title='WSS WorkFlows'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-4041472797037597973</id><published>2008-01-20T01:21:00.001-08:00</published><updated>2010-04-18T08:18:48.750-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='Interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Sharepoint Interview Questions</title><content type='html'>&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt; &lt;td align=left width=15%&gt;&lt;&lt; Previous&lt;/td&gt;&lt;br /&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;br /&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;&lt;br /&gt;
&lt;/tr&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/table&gt;&lt;span xmlns='' style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt; - What does AllowUnsafeUpdates do ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;If your code modifies Windows SharePoint Services data in some way, you may need to allow unsafe updates on the Web site, without requiring a security validation. You can do by setting the &lt;a href='http://msdn2.microsoft.com/en-us/library/ms478070.aspx'&gt;AllowUnsafeUpdates&lt;/a&gt; property. C#:&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;using(SPSite mySite = new SPSite("yourserver"))
{ using(SPWeb myWeb = mySite.OpenWeb())
{
myWeb.AllowUnsafeUpdates = true;
SPList interviewList = myWeb.Lists["listtoinsert"];
SPListItem newItem = interviewList.Items.Add();
newItem["interview"] = "interview";
newItem.Update();
}
}
&lt;/pre&gt;&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt; - What does RunWithElevatedPrivileges do?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Assume that you have a Web Part in which you want to display information obtained through the Windows SharePoint Services object model, such as the name of the current site collection owner, usage statistics, or auditing information. These are examples of calls into the object model that require site-administration privileges. Your Web Part experiences an access-denied error if it attempts to obtain this information when the current user is not a site administrator. The request is initiated by a nonprivileged user. you can still successfully make these calls into the object model by calling the &lt;a href='http://msdn2.microsoft.com/en-us/library/ms439682.aspx'&gt;RunWithElevatedPrivileges&lt;/a&gt; method provided by the &lt;a href='http://msdn2.microsoft.com/en-us/library/ms441329.aspx'&gt;SPSecurity&lt;/a&gt; class. C#:&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;SPSite siteColl = SPContext.Current.Site;
SPWeb site = SPContext.Current.Web;
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite ElevatedsiteColl = new SPSite(siteColl.ID))
{
using (SPWeb ElevatedSite = ElevatedsiteColl.OpenWeb(site.ID))
{
string SiteCollectionOwner = ElevatedsiteColl.Owner.Name;
string Visits = ElevatedsiteColl.Usage.Visits.ToString();
string RootAuditEntries = ElevatedSite.RootFolder.Audit.GetEntries().Count.ToString();
}
}
});
&lt;/pre&gt;&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt; - What is a SharePoint Feature? What files are used to define a feature?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;A SharePoint Feature is a functional component that can be activated and deactivate at various scopes throughout a SharePoint instances.&lt;br /&gt;
Scopes include&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Farm&lt;/li&gt;
&lt;li&gt;WebApplication &lt;/li&gt;
&lt;li&gt;Site (site collection)&lt;/li&gt;
&lt;li&gt;Web  (site)&lt;/li&gt;
&lt;/ul&gt;Features have their own receiver architecture, which allow you to trap events such as when a feature is &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;installing&lt;/li&gt;
&lt;li&gt;uninstalling&lt;/li&gt;
&lt;li&gt;activated&lt;/li&gt;
&lt;li&gt;deactivated&lt;/li&gt;
&lt;/ul&gt;The element types that can be defined by a feature include &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;menu commands&lt;/li&gt;
&lt;li&gt;link commands&lt;/li&gt;
&lt;li&gt;page templates&lt;/li&gt;
&lt;li&gt;page instances&lt;/li&gt;
&lt;li&gt;list definitions&lt;/li&gt;
&lt;li&gt;list instances&lt;/li&gt;
&lt;li&gt;event handlers&lt;/li&gt;
&lt;li&gt;workflows&lt;/li&gt;
&lt;/ul&gt;The two files that are used to define a feature are &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;feature.xml&lt;/li&gt;
&lt;li&gt;manifest file(elements.xml)&lt;/li&gt;
&lt;/ul&gt;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;
Common stsadm commands associated with feature are&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;stsadm -o installfeature&lt;/li&gt;
&lt;li&gt;stsadm -o uninstallfeature&lt;/li&gt;
&lt;li&gt;stsadm -o activatefeature&lt;/li&gt;
&lt;li&gt;stsadm -o deactivatefeature&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt; - What are content types ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;A content type is a flexible and reusable WSS type definition that defines the columns and behavior for an item in a list or a document in a document library. &lt;br /&gt;
For example, &lt;br /&gt;
-you can create a content type for a customer presentation document with a unique set of columns, an event handler, and its own document template. &lt;br /&gt;
-You can create a second content type for a customer proposal document with a different set of columns, a workflow, and a different document template.&lt;br /&gt;
Then you can attach both the contenttypes to a document library, which allows you to capture metadata based on the contenttype selected during creation of the document.&lt;br /&gt;
&lt;br /&gt;
Content type can be created by the following&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;from the rootweb of a site collection, go to Site Action &gt; Site Settings &gt; Galleries &gt; Site content types&lt;/li&gt;
&lt;li&gt;using a feature &lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;5. Workflow can be applied to what all elements of SharePoint ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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. &lt;br /&gt;
In short, it can be applied ... &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;At the level of a list (or document library)&lt;/li&gt;
&lt;li&gt;At the level of a content type defined at site scope&lt;/li&gt;
&lt;li&gt;At the level of a site ( Sharepoint 2010 )&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt; - What are the ways to initiate the workflow ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;&lt;ul&gt;&lt;li&gt;Automatic (on item added or item deleted)&lt;/li&gt;
&lt;li&gt;Manual (standard WSS UI interface)&lt;/li&gt;
&lt;li&gt;Manual (Custom UI Interface)&lt;/li&gt;
&lt;li&gt;Programatically through custom code&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;7. What are the types of input forms that can be created for a workflow ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;8. What are ways to create input forms for workflow ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Two different approaches can be used to develop custom input forms for a WSS workflow template.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;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;/li&gt;
&lt;li&gt;using Microsoft Office InfoPath 2007 (disadv: picks up a dependenct on MOSS, i.e. it cannot run in a standalone WSS environment)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;9. What is the difference between method activity and event activity in WF ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;10. What does SPWeb.EnsureUser method do?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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. e.g SPUser usr = myWeb.EnsureUser("mmangaldas");&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;11. While creating a Webpart, which is the ideal location to Initialize my new controls ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;12. How to query from multiple lists ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Use SPSiteDataQuery to fetch data from multiple lists. &lt;a href='http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.lists.aspx'&gt;more details..&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;13.How Does SharePoint work?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&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;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;14. What is the difference between Syncronous &amp;amp; Asyncronous events?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;&lt;strong&gt;Syncronous&lt;/strong&gt; calls ending with 'ing' E.g. ItemDeleting Event Handler code execute BEFORE action is committed WSS waits for code to return Option to cancel and return error code&lt;br /&gt;
&lt;strong&gt;Asyncronous&lt;/strong&gt; calls ending with 'ed' E.g. ItemDeleted Event Handler code executes AFTER action is committed WSS does not wait for code to return Executed in its own Worker thread.&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;15. What is ServerUpdate() ?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;Any changes in the list, i.e. new addition or modification of an item.. the operation is complete by calling the Update method.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;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;br /&gt;
&lt;strong&gt;16. What is query.ViewAttributes OR How can you force SPQuery to return results from all the folders of the list?&lt;/strong&gt;&lt;br /&gt;
&lt;div style='padding-left:20px'&gt;If you use SPQuery on any SPlist .. it will bring back results from the current folder only. 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;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;a href="http://howtosharepoint.blogspot.com/2009/11/sharepoint-server-2010-interview.html"&gt;Sharepoint 2010 Interview questions&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;h3&gt;NOTE: To prepare for these interview question and to ensure 100% success, you should follow instructions in the post &lt;a href='http://manomangaldas.blogspot.com/2008/01/sharepoint-2007-moss-interview.html' target='_self'&gt;Sharepoint 2007 ( MOSS ) Interview preparation&lt;/a&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;table width="100%" style="border-bottom-style:solid; border-width: 0 0 1px 1px; font-size:14px; font-weight:bold; color:blue;"&gt;&lt;tr&gt; &lt;td align=left width=15%&gt;&lt;&lt; Previous&lt;/td&gt;&lt;br /&gt;
&lt;td align=center style='white-space:nowrap;'&gt;&lt;br /&gt;
&lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html'&gt; 1 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; 2 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_07.html'&gt; 3 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_9160.html'&gt; 4 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_13.html'&gt; 5 &lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview_7760.html'&gt; 6 &lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;br /&gt;
&lt;td align=right width=15%&gt;&lt;a href='http://manomangaldas.blogspot.com/2010/02/sharepoint-2007-moss-interview.html'&gt; Next &gt;&gt; &lt;/a&gt;&lt;/td&gt;&lt;br /&gt;
&lt;/tr&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-4041472797037597973?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/4041472797037597973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/4041472797037597973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/4041472797037597973'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html' title='Sharepoint Interview Questions'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-7010060266497029387</id><published>2008-01-19T12:26:00.000-08:00</published><updated>2009-11-21T06:35:30.088-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mano'/><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='Interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Mangaldas'/><category scheme='http://www.blogger.com/atom/ns#' term='Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='2007'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Sharepoint 2007 ( MOSS ) Interview preparation</title><content type='html'>&lt;h3&gt;Check-out interview questions in the post &lt;a href='http://manomangaldas.blogspot.com/2008/01/moss-2007-sharepoint-interview.html' target='_self'&gt;Sharepoint 2007 ( MOSS ) Interview Questions&lt;/a&gt; &lt;br /&gt;
&lt;/h3&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;&lt;br /&gt;
Read the book -- &lt;a href='http://www.4shared.com/file/35328891/1c7b7977/Inside_Microsoft_Windows_Sharepoint_Services_30.html'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;&lt;em&gt;Inside Microsoft Windows Sharepoint Services 3.0&lt;/em&gt;&lt;/span&gt;&lt;/a&gt;&lt;em&gt;&lt;br /&gt;
&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
by Ted Pattison and Daniel Larson&lt;br /&gt;
&lt;br /&gt;
This is an excellent book and will give insight on all the topics generally asked in interviews.&lt;br /&gt;
&lt;br /&gt;
Another good book is &lt;a href='http://www.4shared.com/file/37448252/218a3626/WroxProfessionalSharePoint2007Development.html'&gt;Professional SharePoint 2007 Development&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;span style='text-decoration:underline'&gt;Some items to look at as a developer..&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;    &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;General info on WSS 3.0 development.&lt;/strong&gt;&lt;br /&gt;
&lt;a href='http://msdn2.microsoft.com/en-us/library/bb530302.aspx'&gt;http://msdn2.microsoft.com/en-us/library/bb530302.aspx&lt;/a&gt;&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Application page.&lt;/strong&gt; Allows the use of inline custom code. Application pages or "_layout" pages are stored on the SharePoint Web server and made available via a Microsoft Internet Information Services (IIS) virtual directory. Though application pages behave much like other ASPX pages and allow the use of inline custom code, they differ from content pages in that they cannot be used to host SharePoint features such as dynamic Web Parts and Web Part zones. For more information, see &lt;a href='http://msdn2.microsoft.com/en-us/library/bb418732.aspx'&gt;Creating an Application Page in Windows SharePoint Services 3.0&lt;/a&gt;. &lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;WebParts.&lt;/strong&gt;&lt;br /&gt;
&lt;a href='http://blogs.tamtam.nl/mart/CreateASharePoint2007WebpartStepByStep.aspx'&gt;http://blogs.tamtam.nl/mart/CreateASharePoint2007WebpartStepByStep.aspx&lt;/a&gt;&lt;/span&gt;      &lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Server Controls.&lt;/strong&gt; User Controls on creation and how to install / deploy them.&lt;/span&gt;       &lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Content type.&lt;/strong&gt; A reusable collection of settings to apply to a certain category of content such as documents and folders. Content types are designed to help users organize their SharePoint content in a more meaningful way. For more information, see &lt;a href='http://msdn2.microsoft.com/en-us/library/ms472236.aspx'&gt;Introduction to Content Types&lt;/a&gt;.&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&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 &lt;a href='http://msdn2.microsoft.com/en-us/library/ms465980.aspx'&gt;Custom Action Definitions&lt;/a&gt;.&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&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 &lt;a href='http://msdn2.microsoft.com/en-us/library/ms460929.aspx'&gt;Event Registrations&lt;/a&gt;.&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Feature.&lt;/strong&gt; A package of Windows SharePoint Services elements that can be activated for a specific scope and that helps users accomplish a particular goal or task. Windows SharePoint Services 3.0 introduces this inherently portable and modular functionality, which simplifies modification of sites through site definitions. For more information, see &lt;a href='http://msdn2.microsoft.com/en-us/library/ms460318.aspx'&gt;Working with Features&lt;/a&gt;. -- &lt;a href='http://www.4shared.com/file/35328891/1c7b7977/Inside_Microsoft_Windows_Sharepoint_Services_30.html'&gt;Inside Microsoft Windows Sharepoint Services 3.0&lt;/a&gt;&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&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 &lt;a href='http://msdn2.microsoft.com/en-us/library/bb684920.aspx'&gt;Building Simple Master Pages for Windows SharePoint Services 3.0&lt;/a&gt;.&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&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 &lt;a href='http://msdn2.microsoft.com/en-us/library/ms453137.aspx'&gt;Modules&lt;/a&gt;. &lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Object Model.&lt;/strong&gt; what is the architecture of sharepoint and how is it represented programmatically. You have to create a webapplication as the first step.. and specify a port number if the default port 80 is already taken. This is not accessible as yet for browsing.. but you can see that a new website is created in the IIS. Next step would be to create a SiteCollection (multiple sitecollection can be created in a single website). Creating a site collection creates a default root site. This root site is accessible through the browser. you can go ahead to create multiple child sites under the root site.&lt;br /&gt;
This was the administrative terms used. but for programming, to access the SiteCollection we have to use SpSite and for the Sites we have to use SpWeb.&lt;/span&gt;      &lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&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;/span&gt;       &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&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;/span&gt;       &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&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;/span&gt;       &lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Custom List Definition.&lt;/strong&gt;&lt;br /&gt;
&lt;a href='http://ari.provoke.co.nz/archive/2007/04/18/creating-a-custom-sharepoint-2007-list-definition.aspx'&gt;http://ari.provoke.co.nz/archive/2007/04/18/creating-a-custom-sharepoint-2007-list-definition.aspx&lt;/a&gt;&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&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 &lt;a href='http://msdn2.microsoft.com/en-us/library/ms434313.aspx'&gt;Working with Site Templates and Definitions&lt;/a&gt;.&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Site template.&lt;/strong&gt; A package containing a set of differences and changes from a base site definition that is created through the UI or through implementation of the object model. The site template package is stored as a .cab-based file that can be downloaded or uploaded to site collections by users with the appropriate rights. Site templates offer a measure of portability to SharePoint applications. For more information, see &lt;a href='http://msdn2.microsoft.com/en-us/library/ms434313.aspx'&gt;Working with Site Templates and Definitions&lt;/a&gt;.&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Solution.&lt;/strong&gt; A file that is a bundling of all the components for extending Windows SharePoint Services in a particular way. A solution file has a .cab-based format with a .wsp extension. A solution is a deployable, reusable package that can contain a set of Features, site definitions, and assemblies that apply to sites, and that you can enable or disable individually. You can use the solution file to deploy the contents of a Web Part package, including assemblies, class resources, and other package components. For more information see, &lt;a href='http://msdn2.microsoft.com/en-us/library/aa543214.aspx'&gt;Solution Overview&lt;/a&gt;.&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&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. For more information, see &lt;a href='http://msdn2.microsoft.com/en-us/library/aa979310.aspx'&gt;How to: Customize Themes&lt;/a&gt;.&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Code Access Security -- general info.&lt;/strong&gt; (&lt;a href='http://msdn.microsoft.com/en-us/library/ms916855.aspx'&gt;http://msdn.microsoft.com/en-us/library/ms916855.aspx&lt;/a&gt; -- SPS 2003 but gives overall info)&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;HTTPHandlers in Sharepoint.&lt;/strong&gt;&lt;br /&gt;
&lt;a href='http://msdn.microsoft.com/en-us/library/bb457204.aspx'&gt;http://msdn.microsoft.com/en-us/library/bb457204.aspx&lt;/a&gt;&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Programming Jobs in Sharepoint.&lt;/strong&gt;&lt;br /&gt;
&lt;a href='http://msdn.microsoft.com/en-us/library/cc427068.aspx'&gt;http://msdn.microsoft.com/en-us/library/cc427068.aspx&lt;/a&gt;&lt;/span&gt;     &lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;WWF &lt;/strong&gt;&lt;/span&gt;&lt;span style='color:blue; text-decoration:underline'&gt;      &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Custom Webservices. &lt;a href='http://msdn2.microsoft.com/en-us/library/ms464040.aspx'/&gt;&lt;/strong&gt;http://msdn2.microsoft.com/en-us/library/ms464040.aspx&lt;/a&gt; .&lt;/span&gt;     &lt;/li&gt;
&lt;/ul&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='text-decoration:underline'&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;Sharepoint Interview Questions Links&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;    &lt;/p&gt;&lt;p&gt;&lt;a href='http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/sharepoint-developer-interview-questions-answers/'&gt;&lt;span style='font-family:Consolas'&gt;http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/sharepoint-developer-interview-questions-answers/&lt;/span&gt;&lt;/a&gt;    &lt;/p&gt;&lt;p&gt;&lt;a href='http://megasolutions.net/qs/Sharepoint_Portal_Interview_Questions.aspx'&gt;&lt;span style='font-family:Consolas'&gt;http://megasolutions.net/qs/Sharepoint_Portal_Interview_Questions.aspx&lt;/span&gt;&lt;/a&gt;    &lt;/p&gt;&lt;p&gt;    &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;&lt;strong&gt;&lt;em&gt;Ultimate set of How-Tos in Sharepoint development .. (I like &lt;a href='http://www.andrewconnell.com/index.aspx'&gt;Andrew Connell&lt;/a&gt;'s work the most)&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;    &lt;/p&gt;&lt;p&gt;&lt;a href='http://msdn.microsoft.com/en-us/library/bb892193.aspx'&gt;&lt;span style='color:blue; font-family:Consolas; text-decoration:underline'&gt;&lt;strong&gt;&lt;em&gt;http://msdn.microsoft.com/en-us/library/bb892193.aspx&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;    &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;A great set of How-to's will get you going..&lt;br /&gt;
&lt;a href='http://office.microsoft.com/en-us/sharepointdesigner/FX100646991033.aspx'&gt;http://office.microsoft.com/en-us/sharepointdesigner/FX100646991033.aspx&lt;/a&gt;&lt;/span&gt;    &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Consolas'&gt;Some demo videos..&lt;br /&gt;
&lt;a href='http://office.microsoft.com/en-us/sharepointdesigner/HA102199841033.aspx'&gt;http://office.microsoft.com/en-us/sharepointdesigner/HA102199841033.aspx&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-7010060266497029387?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/7010060266497029387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2008/01/sharepoint-2007-moss-interview.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7010060266497029387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/7010060266497029387'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2008/01/sharepoint-2007-moss-interview.html' title='Sharepoint 2007 ( MOSS ) Interview preparation'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-2262181226230728067</id><published>2007-03-19T18:19:00.000-07:00</published><updated>2008-01-19T12:55:25.520-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Site Definition'/><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='2007'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Creating a Site Definition</title><content type='html'>&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;What is site definition ?
&lt;/strong&gt;In simple words, it is a set of files present in you file system that make up the core of your site. All the OOB(out of box) site definitions are located under &lt;installed&gt;:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;

When do you use a site definition ?
&lt;/strong&gt;Chances are that you go to a client, show them the features of sharepoint and wow, he agrees to go ahead for a development project. The first thing you will notice is that the clients requirements demands a whole load of
custom lists and definitions. And this is recurring, i.e. he wants the same kind of list and definitions in every
subsite he wants to create. Here comes Site Definition.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;
&lt;/strong&gt;You can use site templates for the same purpose of customizing your base site to build your site, but customizing in a broad perspective, site definition is better.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;

Different ways to create and deploy a site definition..
1. Using the SharePoint Solutions Generator
&lt;/strong&gt;a. SharePoint Solutions Generator is installed when you install &lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=19F21E5E-B715-4F0C-B959-8C6DCBDC1057&amp;amp;displaylang=en"&gt;&lt;span style="font-size:85%;"&gt;Visual Studio Extensions for WSS 3.0 for VS.Net2005&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;.
b. Start the SSG ("C:\Program Files\Microsoft SharePoint Developer Tools\ssg\SPSolGen.exe")
c. Select Select Definition and click Next.
d. Specify the URL of the Site Collection where you want to use the site definition and click Next.
e.Specify the name of the project and location to create the project and click Next.
f. Click Finish. ( It will generate a copy of the base site definition for us to work on)
g. Once done, click on the link "Click here to open the generated solution". This will open the folder

containing the VS.Net project .
h. Open the project in VS.Net
i. For testing purpose, right click on the project title&gt;Add&gt;New Item&gt;List Definition
j. Secify a name and click Ok. It will popup a List Definition Settings dialog.
k.Select Contacts and check both the checkboxes and click ok.
l. Your newly created list will be added to the project.
m. Open ItemEventReciever.cs and search for ItemAdded method.
n. Add the following code
string test = properties.AfterProperties["LastName"] as string;
if (test.Contains("NEW:"))
{
properties.Cancel = true;
properties.ErrorMessage = " THe last name must conetain New";
return;
}
o. Basically, what this code will do is that it will check for the word "NEW:" in the lastname of the

item being added in the list. If not found, it will raise an error and cancel the operation.
p. To Build &amp;amp; Deploy, first right click on the project&gt;properties&gt;debug&gt;Start browser with URL&gt;specify

the URL of the Sharepoint site
q. Then goto SharePoint solution in Properties&gt;Expand the Solution&gt;Select Feature with name

&lt;listname&gt;ItemEventReciever&gt;Element Manifest&gt;ItemAdding Enabled == true
q. Just press F5 to build and deploy.
r. Open the SharePoint root site &gt; Site Actions &gt; Create Site &gt; In the Templates section Select the newly created site template in the "Developments" tab
s. Open the newly created site
t. Select Site Actions&gt;Site Settings&gt;Site Administration&gt;Site Features&gt;Search for your List feature&gt;activate
u. You are done.. your site and the feature has been activated.
v. To test the feature, try adding any item with "New:" not added to the Lastname, it should throw an error.


Known Issues
1. I dont know how to uninstall the site definition
2. The site Feature, ie the customized list appears twice
3. I was not able to verify whether the Feature actually worked even after activation.


&lt;/span&gt;
&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;2. Manual Process&lt;/strong&gt;
1. Make a copy of folder ...\12\TEMPLATE\SiteTemplates\sts
2. Rename the folder to STSCUST(any name will do) DON'T use any space between the names.
3. To make aware of the WSS V3 about the new site definition(STSCUST), you need to either create a new config file or edit the existing one. Go to the directory ..\12\Template\1033\XML, here you can either modify the WEBTEMP.xml or create a copy of this, I prefer to edit this. Inside this file you could see &lt;template&gt;nodes inside &lt;templates&gt;. Create a new configuration(copy one of the existing configuration and make changes) &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:85%;"&gt;4. Do an IIS reset, Create a new site, you would get the newly created template. &lt;/span&gt;&lt;/div&gt;


&lt;div&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;&lt;span style="font-size:0;"&gt;
&lt;template id="1" name="STS"&gt;&lt;configuration id="0" title="Team Site" description="A site for teams to quickly organize, author, and share information. It provides a document library, and lists for managing announcements, calendar items, tasks, and discussions." hidden="FALSE" imageurl="/_layouts/images/stsprev.png" displaycategory="Collaboration"&gt;&lt;/configuration&gt;&lt;configuration id="1" title="Blank Site" description="A blank site for you to customize based on your requirements." hidden="FALSE" imageurl="/_layouts/images/blankprev.png" displaycategory="Collaboration" allowglobalfeatureassociations="False"&gt;&lt;/configuration&gt;&lt;configuration id="2" title="Document Workspace" description="A site for colleagues to work together on a document. It provides a document library for storing the primary document and supporting files, a tasks list for assigning to-do items, and a links list for resources related to the document." hidden="FALSE" imageurl="/_layouts/images/dwsprev.png" displaycategory="Collaboration"&gt;&lt;/configuration&gt;&lt;configuration id="4" title="My test " description="A site for colleagues to work together on a document. It provides a document library for storing the primary document and supporting files, a tasks list for assigning to-do items, and a links list for resources related to the document." hidden="FALSE" imageurl="/_layouts/images/dwsprev.png" displaycategory="Collaboration"&gt;&lt;/configuration&gt;&lt;/template&gt;&lt;span style="font-size:85%;"&gt;


&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&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/8982619124555969036-2262181226230728067?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/2262181226230728067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2007/03/creating-site-definition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/2262181226230728067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/2262181226230728067'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2007/03/creating-site-definition.html' title='Creating a Site Definition'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-4735650535903180382</id><published>2007-03-07T17:06:00.000-08:00</published><updated>2008-01-19T14:55:51.756-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='installation'/><category scheme='http://www.blogger.com/atom/ns#' term='host file'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Office Sharepoint 2007 (MOSS 2007)</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;After a training of 3 days in MOSS 2007, I ended up in clients place in US. Not that I was not interested to work on MOSS, but because of the nature of my assignment, requirements gathering, I lost touch with the product altogether.

About 3 weeks past, and my first chance to work on MOSS.

First the installation.. it went as smooth as butter.. nothing wrong happened.
Then started with the configuration.. got all the services started, just like in the training. That too was perfect.

Then I created the sharepoint admin site and mysite. Added these to the sharedservices.. and then tried to browse the admin site. "Page cannot be displayed".

I tried every thing.. deleted the sites I created.. deleted the database .. recreated all over again.. no luck
Even reinstalled MOSS completely... but nothing.

Then I consulted my friend and colleague Kedar Datar regarding this. There it was.. in the hosts file..(C:\WINDOWS\system32\drivers\etc\hosts) which mapped the IP to the host header name.

What I had done is that I had noted down the IP in office, came home and used it. Unfortunately, the host IP had changed as the IP was assigned dynamically.

There it was .. problem solved.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-4735650535903180382?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/4735650535903180382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2007/03/office-sharepoint-2007-moss-2007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/4735650535903180382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/4735650535903180382'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2007/03/office-sharepoint-2007-moss-2007.html' title='Office Sharepoint 2007 (MOSS 2007)'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8982619124555969036.post-161000563286106142</id><published>2006-12-08T00:44:00.000-08:00</published><updated>2008-01-19T14:56:20.718-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mano'/><category scheme='http://www.blogger.com/atom/ns#' term='Mangaldas'/><category scheme='http://www.blogger.com/atom/ns#' term='Welcome'/><title type='text'>Welcome to my Blog !!!</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;Hi All,

Welcome to my blog.

I will be giving a new try to blogging with this. Hope this works.

Cheers
mano&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8982619124555969036-161000563286106142?l=manomangaldas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manomangaldas.blogspot.com/feeds/161000563286106142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manomangaldas.blogspot.com/2006/12/welcome-to-my-blog.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/161000563286106142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8982619124555969036/posts/default/161000563286106142'/><link rel='alternate' type='text/html' href='http://manomangaldas.blogspot.com/2006/12/welcome-to-my-blog.html' title='Welcome to my Blog !!!'/><author><name>Mano Mangaldas</name><uri>http://www.blogger.com/profile/04463010398183548997</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_g-JN_WB_wo4/R7kCOZMeYzI/AAAAAAAAAI8/if8BXNJWQm0/S220/me.jpg'/></author><thr:total>1</thr:total></entry></feed>
