<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Manojdagar's Weblog</title>
	<atom:link href="http://completesharepoint.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://completesharepoint.wordpress.com</link>
	<description>Complete Sharepoint</description>
	<lastBuildDate>Mon, 28 Jul 2008 06:53:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='completesharepoint.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Manojdagar's Weblog</title>
		<link>http://completesharepoint.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://completesharepoint.wordpress.com/osd.xml" title="Manojdagar&#039;s Weblog" />
	<atom:link rel='hub' href='http://completesharepoint.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SharePoint Object Model: Tree View</title>
		<link>http://completesharepoint.wordpress.com/2008/07/28/sharepoint-object-model-tree-view/</link>
		<comments>http://completesharepoint.wordpress.com/2008/07/28/sharepoint-object-model-tree-view/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 06:53:14 +0000</pubDate>
		<dc:creator>manojdagar</dc:creator>
				<category><![CDATA[SharePoint Model View]]></category>

		<guid isPermaLink="false">http://completesharepoint.wordpress.com/?p=8</guid>
		<description><![CDATA[As an alternative to programming against the SharePoint web services you can use the SharePoint object model. The object model can be used when the application will run on the server where SharePoint is installed (such as a console or WinForm application) or in assemblies that are run within a site (such as a Web Part).   This sample shows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=completesharepoint.wordpress.com&amp;blog=4345405&amp;post=8&amp;subd=completesharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div dir="ltr">
<p>As an alternative to programming against the SharePoint web services you can use the SharePoint object model. The object model can be used when the application will run on the server where SharePoint is installed (such as a console or WinForm application) or in assemblies that are run within a site (such as a Web Part).  </p>
<p>This sample shows how to display the sites and sub sites within a site collection as a hierarchy in a tree view control within a WinForm application.</p>
<p align="center"><img src="http://nickgrattan.files.wordpress.com/2007/08/treeview.jpg?w=450" border="0" alt="Treeview" /></p>
<p>First, you will need to create a reference to &#8220;SharePoint.dll&#8221; assembly in your Visual Studio 2005 project. This is located at:</p>
<p>C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll</p>
<p>A recursive function nicely solves the problem of loading the site hierachy into a tree view control. The method below is passed the tree node into which the site list will be loaded, and a SPWeb object representing the site whose sub-sites will be loaded:</p>
<p>       <span style="color:blue;">private</span> <span style="color:blue;">void</span> FillSubWeb(<span style="color:#2b91af;">TreeNode</span> tn, <span style="color:#2b91af;">SPWeb</span> webSite)</p>
<div style="font-size:10pt;background:white;color:black;font-family:Courier New;">
<p style="margin:0;">        {</p>
<p style="margin:0;">            <span style="color:blue;">foreach</span> (<span style="color:#2b91af;">SPWeb</span> theWeb <span style="color:blue;">in</span> webSite.Webs)</p>
<p style="margin:0;">            {</p>
<p style="margin:0;">                <span style="color:#2b91af;">TreeNode</span> subTN = <span style="color:blue;">new</span> <span style="color:#2b91af;">TreeNode</span>(theWeb.Name);</p>
<p style="margin:0;">                tn.Nodes.Add(subTN);</p>
<p style="margin:0;">                FillSubWeb(subTN, theWeb);</p>
<p style="margin:0;">            }</p>
<p style="margin:0;">        }</p>
</div>
<p> </p>
<p>This method iterates over the &#8220;Webs&#8221; collection which returns each sub-site. A new TreeNode object is created with the site name. The node is added to the tree view  control. Lastly, the FillSubWeb method is called recursively, passing the TreeNode and theWeb object to load the sub-sites for the current site.</p>
<p>The following code kicks off the loading of the sites:</p>
<div style="font-size:10pt;background:white;color:black;font-family:Courier New;">
<p style="margin:0;">            <span style="font-size:x-small;"><span style="color:#2b91af;">    SPSite site = <span style="color:blue;">new</span> <span style="color:#2b91af;">SPSite</span></span></span></p>
<div style="font-size:10pt;background:white;color:black;font-family:Courier New;">
<p style="margin:0;">           (&#8220;<a href="http://moss2007:8100/sites/intranet">http://moss2007:8100/sites/intranet</a>&#8220;);</p>
<p style="margin:0;">      SPWeb rootWeb = site.AllWebs[0];</p>
<p style="margin:0;"> </p>
<p style="margin:0;">      <span style="color:#2b91af;">TreeNode</span> tn = <span style="color:blue;">new</span> <span style="color:#2b91af;">TreeNode</span></p>
<p style="margin:0;"><span style="color:#2b91af;"><span style="color:#000000;">            (&#8220;<a href="http://moss2007:8100/sites/intranet">http://moss2007:8100/sites/intranet</a>&#8220;);</span></span></p>
<p style="margin:0;">      tvSites.Nodes.Add(tn);</p>
<p style="margin:0;">      FillSubWeb(tn, rootWeb);</p>
</div>
<p> </p></div>
<p>The code gets a reference to the site collection from the URL, and then obtains a reference to the top-level web (site) for the site collection. A tree node is created and added to the tree view control to represent the site collection, and then the FillSubWeb method is called to start the recursive process.</p></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/completesharepoint.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/completesharepoint.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/completesharepoint.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/completesharepoint.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/completesharepoint.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/completesharepoint.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/completesharepoint.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/completesharepoint.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/completesharepoint.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/completesharepoint.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/completesharepoint.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/completesharepoint.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/completesharepoint.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/completesharepoint.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/completesharepoint.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/completesharepoint.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=completesharepoint.wordpress.com&amp;blog=4345405&amp;post=8&amp;subd=completesharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://completesharepoint.wordpress.com/2008/07/28/sharepoint-object-model-tree-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6a5fa4ebe70257e8c38317cf842a7d1?s=96&#38;d=identicon" medium="image">
			<media:title type="html">manojdagar</media:title>
		</media:content>

		<media:content url="http://nickgrattan.files.wordpress.com/2007/08/treeview.jpg" medium="image">
			<media:title type="html">Treeview</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Interview Questions</title>
		<link>http://completesharepoint.wordpress.com/2008/07/28/sharepoint-interview-questions/</link>
		<comments>http://completesharepoint.wordpress.com/2008/07/28/sharepoint-interview-questions/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 06:13:42 +0000</pubDate>
		<dc:creator>manojdagar</dc:creator>
				<category><![CDATA[SharePoint InterView]]></category>

		<guid isPermaLink="false">http://completesharepoint.wordpress.com/?p=3</guid>
		<description><![CDATA[1 What is a SharePoint Solution File? How does it differ from WebPart .cab files in legacy development? What does it contain? 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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=completesharepoint.wordpress.com&amp;blog=4345405&amp;post=3&amp;subd=completesharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-indent:7.5pt;line-height:16.5pt;margin:0 0 10pt;"><strong></strong></p>
<table class="MsoNormalTable" style="width:100%;" border="0" cellspacing="1" cellpadding="0" width="100%">
<tbody>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">1 What is a SharePoint Solution File? How does it differ from WebPart .cab files in legacy development? What does it contain?</span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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:<br />
allows deployment to all WFE&#8217;s in a farm<br />
is highly manageable from the interface allowing deployment, retraction, and versioning<br />
Can package all types of assets like site definitions, feature definitions (and associated components), Webparts, etc.<br />
Can provide Code Access Security provisioning to avoid GAC deployments<br />
Just to name a few things… </span></td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_2"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">2 What is a .ddf file and what does it have to do with SharePoint Solution creation? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_3"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">3 What file does a SharePoint solution package use to orchestrate (describe) its packaged contents?</span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">The solution Manifest.XML file. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_4"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">4 What deployment mechanism can you use to instigate Code Access Security attributes for your WebParts?</span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_5"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">5 What is a SharePoint Feature? What files are used to define a feature? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_6"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">6 What types of SharePoint assets can be deployed with a SharePoint feature? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">Features can do a lot. For example, you could deploy<br />
Simple site customizations<br />
Custom site navigation<br />
WebParts<br />
pages<br />
list types<br />
list instances<br />
event handlers<br />
workflows<br />
custom actions<br />
just to name a few….</span></td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">7 What are event receivers? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_8"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">8 When would you use an event receiver?</span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_9"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">9 What base class do event receivers inherit from? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">Event receivers either inherit from the SPListEventReciever base class or the SPItemEventReciever base class, both which derive from the abstract base class SPEventReceiverBase. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_10"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">10 If I wanted to not allow people to delete documents from a document library, how would I go about it?</span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">You would on the ItemDeleting event set: properties.Cancel= true. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><a name="4_11"></a><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">11 What is the difference between an asynchronous and synchronous event receivers? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_12"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">12 How could you append a string to the title of a site when it is provisioned? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">In the OnActivated event:<br />
Select For Unformatted Code<br />
C#:<br />
1. SPWeb site = siteCollection.RootWeb;<br />
2. site.Title += &#8220;interview&#8221;;<br />
3. site.Update(); </span></td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><a name="4_13"></a><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">13 Can an event receiver be deployed through a SharePoint feature? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">Yes. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_14"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">14 What is a content type? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_15"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">15 Can a content type have receivers associated with it? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_16"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">16 What two files are typically (this is kept generally) included when developing a content type, and what is the purpose of each? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_17"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">17 What is an ancestral type and what does it have to do with content types? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">An ancestral type is the base type that the content type is deriving from, such as Document (0&#215;0101). The ancestral type will define the metadata fields that are included with the custom content type. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_18"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">18 Can a list definition be derived from a custom content type?</span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">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. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_19"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">19 When creating a list definition, how can you create an instance of the list? </span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">You can create a new instance of a list by creating an instance.XML file. </span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0;"><a name="4_20"></a><span style="font-size:12pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="font-size:10pt;color:#000000;font-family:&quot;">20 What is a Field Control?</span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#ece9d8;padding:0.75pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;color:#000000;font-family:&quot;">Field controls are simple <a href="http://asp.net/"><span style="color:#0000ff;text-decoration:none;">ASP.NET</span></a> 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.</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;"> </span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/completesharepoint.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/completesharepoint.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/completesharepoint.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/completesharepoint.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/completesharepoint.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/completesharepoint.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/completesharepoint.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/completesharepoint.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/completesharepoint.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/completesharepoint.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/completesharepoint.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/completesharepoint.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/completesharepoint.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/completesharepoint.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/completesharepoint.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/completesharepoint.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=completesharepoint.wordpress.com&amp;blog=4345405&amp;post=3&amp;subd=completesharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://completesharepoint.wordpress.com/2008/07/28/sharepoint-interview-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6a5fa4ebe70257e8c38317cf842a7d1?s=96&#38;d=identicon" medium="image">
			<media:title type="html">manojdagar</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://completesharepoint.wordpress.com/2008/07/28/hello-world/</link>
		<comments>http://completesharepoint.wordpress.com/2008/07/28/hello-world/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 06:06:24 +0000</pubDate>
		<dc:creator>manojdagar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=completesharepoint.wordpress.com&amp;blog=4345405&amp;post=1&amp;subd=completesharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/completesharepoint.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/completesharepoint.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/completesharepoint.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/completesharepoint.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/completesharepoint.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/completesharepoint.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/completesharepoint.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/completesharepoint.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/completesharepoint.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/completesharepoint.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/completesharepoint.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/completesharepoint.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/completesharepoint.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/completesharepoint.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/completesharepoint.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/completesharepoint.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=completesharepoint.wordpress.com&amp;blog=4345405&amp;post=1&amp;subd=completesharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://completesharepoint.wordpress.com/2008/07/28/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6a5fa4ebe70257e8c38317cf842a7d1?s=96&#38;d=identicon" medium="image">
			<media:title type="html">manojdagar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
