<?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>Dotnetdreamer&#039;s Weblog</title>
	<atom:link href="http://dotnetdreamer.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetdreamer.com</link>
	<description>SharePoint, Silverlight and Azure</description>
	<lastBuildDate>Thu, 04 Jun 2009 08:25:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dotnetdreamer.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/1a4c1700fea059f935c6d8ab3e0ce6e6?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dotnetdreamer&#039;s Weblog</title>
		<link>http://dotnetdreamer.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotnetdreamer.com/osd.xml" title="Dotnetdreamer&#039;s Weblog" />
	<atom:link rel='hub' href='http://dotnetdreamer.com/?pushpress=hub'/>
		<item>
		<title>MOSS Web Services &#8211; Accessing Sharepoint List data</title>
		<link>http://dotnetdreamer.com/2009/06/04/moss-web-services-accessing-sharepoint-list-data/</link>
		<comments>http://dotnetdreamer.com/2009/06/04/moss-web-services-accessing-sharepoint-list-data/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 08:20:31 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Add Web Reference]]></category>
		<category><![CDATA[GetListItems]]></category>
		<category><![CDATA[Lists.asmx]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[MOSS Web Services]]></category>
		<category><![CDATA[Sharepoint API]]></category>
		<category><![CDATA[Sharepoint Object Model]]></category>
		<category><![CDATA[Sharepoint web services]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.wordpress.com/2009/06/04/moss-web-services-accessing-sharepoint-list-data/</guid>
		<description><![CDATA[Sharepoint 2007 provides rich set of API’s that allows developers to develop custom components in Sharepoint to meet custom requirements. SharePoint API’s can be classified into two types. Sharepoint Object Model Sharepoint Web Services Sharepoint Object Model enables developers to customize almost anything that is in Sharepoint right from creating a Site Collection to connecting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=274&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sharepoint 2007 provides rich set of API’s that allows developers to develop custom components in Sharepoint to meet custom requirements.</p>
<p>SharePoint API’s can be classified into two types.</p>
<ol>
<li>Sharepoint Object Model</li>
<li>Sharepoint Web Services</li>
</ol>
<p>Sharepoint Object Model enables developers to customize almost anything that is in Sharepoint right from creating a Site Collection to connecting to external data sources. This object model is enclosed in 10 dll’s with 30 namespaces. A series of articles on consuming Sharepoint object model can be found <a href="http://dotnetdreamer.com/2009/05/26/creating-lists-using-sharepoint-object-model/" target="_blank">here</a> and <a href="http://dotnetdreamer.com/2009/05/24/creating-sites-using-sharepoint-object-model/" target="_blank">here</a>.</p>
<p>In on of my previous <a href="http://dotnetdreamer.com/2009/02/09/retrieving-sharepoint-list-data-using-caml/" target="_blank">posts</a>, I wrote down the steps to access SharePoint list data using SharePoint object model and CAML queries.</p>
<p>Now, lets see how to consume the Sharepoint Web Services in order to retrieve the Sharepoint List Data.</p>
<p><strong><span style="color:#0080c0;">Step By Step</span></strong></p>
<ol>
<li><span style="color:#000000;">Create a new windows form project.</span></li>
<li><span style="color:#000000;">Add Web Reference to Sharepoint Lists Web Service</span>
<ol>
<li><span style="color:#000000;">Right-click ‘Service Reference’ and select ‘Add Service Reference’.</span></li>
<li><span style="color:#000000;">In the Add Service Reference dialog box, click Advanced button. </span></li>
<li><span style="color:#000000;">In the ‘Service Reference settings’ dialog box, click Add Web Reference.</span></li>
<li><span style="color:#000000;">In the Url dropdown box, enter the url of your sharepoint site’s web service. If you are developing in the same system as the system in which MOSS is installed, then you can find the web services by clicking the link ‘Web Services in this Solution’ available in the Add Web Reference dialog box.</span>
<ol>
<li><span style="color:#000000;">Note : The _vti_bin directory present under the sharepoint website directory lists down all the web services available.</span></li>
</ol>
</li>
<li><span style="color:#000000;">Scroll through the list of Web Services. Click in the ‘Lists’ web service. Check the url in the url column and ensure that this Lists web service corresponds to your sharepoint site.</span></li>
<li><a href="http://dotnetdreamer.files.wordpress.com/2009/06/listswebservice.jpg"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="Lists Web Service" src="http://dotnetdreamer.files.wordpress.com/2009/06/listswebservice_thumb.jpg?w=368&#038;h=239" border="0" alt="Lists Web Service" width="368" height="239" /></a></li>
<li><span style="color:#000000;">In the Web Reference name text box, give a name to the Lists web reference. Lets name it ListsWS.</span></li>
<li><span style="color:#000000;">Click Add Reference.</span></li>
<li><a href="http://dotnetdreamer.files.wordpress.com/2009/06/addwebreference.jpg"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="AddWebReference" src="http://dotnetdreamer.files.wordpress.com/2009/06/addwebreference_thumb.jpg?w=362&#038;h=248" border="0" alt="AddWebReference" width="362" height="248" /></a></li>
</ol>
</li>
<li><span style="color:#000000;">Place a button in the form. Name it btnGetListItems and the Caption can be Get List Items. Double click the button and generate the event handler.</span></li>
<li><span style="color:#000000;">The Lists web service contains an class called Lists. Lets create an object for this Lists class.</span>
<ol>
<li><span style="color:#000000;">ListsWS.Lists list = new ListsWS.Lists();</span></li>
</ol>
</li>
<li><span style="color:#000000;">The List object contains a method called GetListItems(). We need to invoke this method with appropriate parameters to get the items from the list</span>
<ol>
<li><span style="color:#000000;">The first parameter to this method is the name of the list. </span></li>
<li><span style="color:#000000;">The remaining parameters are there to filter the list based on user defined criteria’s. Without any criteria, to fetch all the items from the list, the method should look like the following.</span>
<ol>
<li><span style="color:#000000;">list.GetListItems(“MyListName”, “”, null, null, “&#8221;, null,null);</span></li>
<li><span style="color:#000000;">The signature of <a href="http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems.aspx" target="_blank">GetListItems</a> in MSDN</span></li>
</ol>
</li>
</ol>
</li>
<li><span style="color:#000000;">The return type of the GetListItems() is an Xml Node.</span></li>
<li><span style="color:#000000;">The XmlNode’s inner xml looks like the following.</span></li>
<li><span style="color:#000000;">We need to process the xml node in order to access the list values.</span>
<ol>
<li><span style="color:#000000;">Below, I have processed the xml to obtain the value of the column ‘Title’ that is present in the list and displayed it in a label.</span></li>
</ol>
</li>
<li><span style="color:#000000;">The entire code is given below</span></li>
</ol>
<blockquote><p>ListWS.Lists lists = new ListWS.Lists();<br />
lists.UseDefaultCredentials = true;</p></blockquote>
<ol>XmlNode nodes = lists.GetListItems(&#8220;MyList1&#8243;, &#8220;&#8221;, null, null, &#8220;&#8221;, null, null);foreach (XmlNode node in nodes)<br />
{<br />
    if (node.Name == &#8220;rs:data&#8221;)<br />
    {<br />
        for (int i = 0; i &lt; node.ChildNodes.Count; i++)<br />
        {<br />
            if (node.ChildNodes[i].Name == &#8220;z:row&#8221;)<br />
            {<br />
               lblResults.Text =  node.ChildNodes[i].Attributes["ows_Title"].Value;<br />
            }<br />
        }<br />
    }<br />
}</ol>
<p>Hope this helps.</p>
<p>Thanks.</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/274/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=274&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/06/04/moss-web-services-accessing-sharepoint-list-data/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/06/listswebservice_thumb.jpg" medium="image">
			<media:title type="html">Lists Web Service</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/06/addwebreference_thumb.jpg" medium="image">
			<media:title type="html">AddWebReference</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Lists using Sharepoint Object Model</title>
		<link>http://dotnetdreamer.com/2009/05/26/creating-lists-using-sharepoint-object-model/</link>
		<comments>http://dotnetdreamer.com/2009/05/26/creating-lists-using-sharepoint-object-model/#comments</comments>
		<pubDate>Tue, 26 May 2009 03:01:03 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Creating Sharepoint Lists]]></category>
		<category><![CDATA[Microsoft  Office Sharepoint Server 2007]]></category>
		<category><![CDATA[MOSS 2007 development]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Sharepoint Object Model]]></category>
		<category><![CDATA[Sharepoint programming]]></category>
		<category><![CDATA[SPListCollection]]></category>
		<category><![CDATA[SPLists]]></category>
		<category><![CDATA[SPSite]]></category>
		<category><![CDATA[SPWeb]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=262</guid>
		<description><![CDATA[In my previous post I wrote about creating sites using sharepoint object model. I strongly recommend to read that post before proceeding with this. It discusses about Sharepoint Site Architectures in detail. Listed below are the Sharepoint site components and their corresponding object in the sharepoint object model. Sharepoint Site Architecture Component Object in Sharepoint [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=262&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my previous <a title="Creating Sites using Sharepoint object Model" href="http://dotnetdreamer.com/2009/05/24/creating-sites-using-sharepoint-object-model/" target="_blank">post</a> I wrote about creating sites using sharepoint object model. I strongly recommend to read that <a href="http://dotnetdreamer.com/2009/05/24/creating-sites-using-sharepoint-object-model/" target="_blank">post </a>before proceeding with this. It discusses about Sharepoint Site Architectures in detail.</p>
<p>Listed below are the Sharepoint site components and their corresponding object in the sharepoint object model.</p>
<table border="1">
<tbody>
<tr>
<td><strong>Sharepoint Site Architecture Component</strong></td>
<td><strong>Object in Sharepoint Object Model</strong></td>
</tr>
<tr>
<td>Site Collection</td>
<td>SPSite</td>
</tr>
<tr>
<td>Site</td>
<td>SPWeb</td>
</tr>
<tr>
<td>List Collection</td>
<td>SPListCollection</td>
</tr>
<tr>
<td>List</td>
<td>SPList</td>
</tr>
<tr>
<td>List Field Collection</td>
<td>SPFieldCollection</td>
</tr>
<tr>
<td>List Field</td>
<td>SPField</td>
</tr>
<tr>
<td>List Item Collection</td>
<td>SPListItemCollection</td>
</tr>
<tr>
<td>List Item</td>
<td>SPListItem</td>
</tr>
</tbody>
</table>
<p><span style="text-decoration:underline;"><strong>Steps to create a new Sharepoint List</strong></span>:</p>
<ol>
<li>Open Visual Studio. Create a new Windows Forms project.</li>
<li>Add a textboxes, one to accept the name of the site collection and another to accept the name of the new site to be created under the site collection.</li>
<li>Add a button that creates the new site.</li>
<li>Add reference to <strong>Microsoft.Sharepoint dll</strong>. This dll is represented by the name Windows Sharepoint Services in the Add Reference dialog box.</li>
<li>Add the namespace of Microsoft.Sharepoint dll like this.
<ul>
<li>using Microsoft.Sharepoint;</li>
</ul>
</li>
<li>In the button click event, open the site collection.
<ul>
<li>SPSite siteCollection = new SPSite(txtSiteCollectionUrl.Text);</li>
</ul>
</li>
<li>Now open the top level site of the site collection.
<ul>
<li>SPWeb site = siteCollection.OpenWeb();</li>
<li>If you want to open a different site under the site collection other than the top level site, you can use the overloaded methods of the OpenWeb() method that accepts the name of the site as argument.</li>
</ul>
</li>
<li>The Lists property present in the SPWeb object will return all the lists that are present in that site as an SPListCollection object
<ul>
<li>SPListCollection listCollection = site.Lists;</li>
</ul>
</li>
<li>In order to add a new list, use the add method of the SPListCollection object.
<ul>
<li>listCollection.Add(&#8220;listname&#8221;, &#8220;list description&#8221;, SPListTemplateType.GenericList);</li>
<li>Note that the third argument accepts the template in which the list should be created. GenericTemplate represents the custom list. We can choose the template we need from the SPListTemplateType enum.</li>
</ul>
</li>
<li>Close and dispose and the site and site collection
<ul>
<li>site.dispose();</li>
</ul>
<ul>
<li>siteCollection.close();</li>
</ul>
</li>
</ol>
<p>The complete code can be found below..</p>
<p>using System;</p>
<p>using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using Microsoft.SharePoint;</p>
<p>namespace WindowsFormsApplication1<br />
{<br />
public partial class Form1 : Form<br />
{<br />
public Form1()<br />
{<br />
InitializeComponent();<br />
}</p>
<p>SPSite siteCollection;<br />
SPWeb site;</p>
<p>private void btnCreateSite_Click(object sender, EventArgs e)<br />
{</p>
<p>try<br />
{<br />
siteCollection = new SPSite(txtSiteCollection.Text);<br />
site = siteCollection.OpenWeb();<br />
SPListCollection listCollection = site.Lists;</p>
<p>listCollection.Add(txtListName.Text, &#8220;list description&#8221;, SPListTemplateType.GenericList);<br />
}<br />
catch (Exception)<br />
{ }<br />
finally<br />
{<br />
site.Dispose();<br />
siteCollection.Close();<br />
}<br />
}</p>
<p>}<br />
}</p>
<p>Hope this is useful.</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/262/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=262&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/05/26/creating-lists-using-sharepoint-object-model/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Sites using Sharepoint Object Model</title>
		<link>http://dotnetdreamer.com/2009/05/24/creating-sites-using-sharepoint-object-model/</link>
		<comments>http://dotnetdreamer.com/2009/05/24/creating-sites-using-sharepoint-object-model/#comments</comments>
		<pubDate>Sun, 24 May 2009 07:28:18 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Create Site]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Sharepoint Object Model]]></category>
		<category><![CDATA[Site Collection]]></category>
		<category><![CDATA[SPSite]]></category>
		<category><![CDATA[SPWeb]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=253</guid>
		<description><![CDATA[MOSS 2007 provides rich set of API&#8217;s that allows developers to programatically accomplish  almost everything that can be done in sharepoint. Sharepoint Object Model comes with 10 different dll&#8217;s comprising 30 namespaces. The aim of this post is to leverage the sharepoint object model in order to create a new sharepoint site programatically. Before getting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=253&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>MOSS 2007 provides rich set of API&#8217;s that allows developers to programatically accomplish  almost everything that can be done in sharepoint. Sharepoint Object Model comes with 10 different dll&#8217;s comprising 30 namespaces.</p>
<p>The aim of this post is to leverage the sharepoint object model in order to create a new sharepoint site programatically.</p>
<p>Before getting into that, lets look at the sharepoint site structure in the following diagram.</p>
<p><img class="alignnone size-full wp-image-254" title="SiteArchitecture" src="http://dotnetdreamer.files.wordpress.com/2009/05/sitearchitecture.jpg?w=411&#038;h=549" alt="SiteArchitecture" width="411" height="549" /></p>
<p>Each layer in the above architecture diagram is represented by an object in the sharepoint object model. The object mapping is represented in the following table.</p>
<table border="1">
<tbody>
<tr>
<td><strong>Sharepoint Site Architecture Component</strong></td>
<td><strong>Object in Sharepoint Object Model</strong></td>
</tr>
<tr>
<td>Site Collection</td>
<td>SPSite</td>
</tr>
<tr>
<td>Site</td>
<td>SPWeb</td>
</tr>
<tr>
<td>List Collection</td>
<td>SPListCollection</td>
</tr>
<tr>
<td>List</td>
<td>SPList</td>
</tr>
<tr>
<td>List Field Collection</td>
<td>SPFieldCollection</td>
</tr>
<tr>
<td>List Field</td>
<td>SPField</td>
</tr>
<tr>
<td>List Item Collection</td>
<td>SPListItemCollection</td>
</tr>
<tr>
<td>List Item</td>
<td>SPListItem</td>
</tr>
</tbody>
</table>
<p><span style="text-decoration:underline;"><strong>Steps to create a new Sharepoint Site</strong></span>:</p>
<ol>
<li>Open Visual Studio. Create a new Windows Forms project.</li>
<li>Add a textboxes, one to accept the name of the site collection and another to accept the name of the new site to be created under the site collection.</li>
<li>Add a button that creates the new site.</li>
<li>Add reference to <strong>Microsoft.Sharepoint dll</strong>. This dll is represented by the name Windows Sharepoint Services in the Add Reference dialog box.</li>
<li>Add the namespace of Microsoft.Sharepoint dll like this.
<ul>
<li>using Microsoft.Sharepoint;</li>
</ul>
</li>
<li>In the button click event, open the site collection.
<ul>
<li>SPSite siteCollection = new SPSite(txtSiteCollectionUrl.Text);</li>
</ul>
</li>
<li>Now open the top level site of the site collection.
<ul>
<li>SPWeb site = siteCollection.OpenWeb();</li>
<li>If you want to open a different site under the site collection other than the top level site, you can use the overloaded methods of the OpenWeb() method that accepts the name of the site as argument.</li>
</ul>
</li>
<li>SPWeb object has a property called &#8216;Webs&#8217; that contains a collection of all the sites present under that site.</li>
<li>Inorder to add a new site, use the following code.
<ul>
<li>site.Webs.Add(txtSiteName.Text, txtSiteName.Text, Convert.ToUInt32(1033),site.WebTemplate, , false,false);</li>
</ul>
</li>
<li>Close and dispose and the site and site collection
<ul>
<li>site.dispose();</li>
</ul>
<ul>
<li>siteCollection.close();</li>
</ul>
</li>
</ol>
<p>The complete code can be found in this file.using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using Microsoft.SharePoint;</p>
<p>namespace WindowsFormsApplication1<br />
{<br />
public partial class Form1 : Form<br />
{<br />
public Form1()<br />
{<br />
InitializeComponent();<br />
}</p>
<p>SPSite siteCollection;<br />
SPWeb site;</p>
<p>private void btnCreateSite_Click(object sender, EventArgs e)<br />
{</p>
<p>try<br />
{<br />
siteCollection = new SPSite(txtSiteCollection.Text);<br />
site = siteCollection.OpenWeb();<br />
site.Webs.Add(txtSiteName.Text, txtSiteName.Text,<br />
txtSiteName.Text + &#8221; Desc&#8221;, Convert.ToUInt32(1033),  site.WebTemplate,<br />
false, false);<br />
}<br />
catch (Exception)<br />
{ }<br />
finally<br />
{<br />
site.Dispose();<br />
siteCollection.Close();<br />
}<br />
}</p>
<p>}<br />
}</p>
<p>Hope this is useful.</p>
<p>Thanks.</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=253&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/05/24/creating-sites-using-sharepoint-object-model/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/sitearchitecture.jpg" medium="image">
			<media:title type="html">SiteArchitecture</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom Templates &#8211; Save Site as a Template</title>
		<link>http://dotnetdreamer.com/2009/05/09/custom-templates-save-site-as-a-template/</link>
		<comments>http://dotnetdreamer.com/2009/05/09/custom-templates-save-site-as-a-template/#comments</comments>
		<pubDate>Sat, 09 May 2009 12:06:55 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Create Custom Templates]]></category>
		<category><![CDATA[Custom Sharepoint Templates]]></category>
		<category><![CDATA[Custom Templates]]></category>
		<category><![CDATA[Miscrosoft Office Sharepoint Server 2007]]></category>
		<category><![CDATA[Save Site as a Template]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Sharepoint Templates]]></category>
		<category><![CDATA[Site Templates]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=156</guid>
		<description><![CDATA[In my last post, I explained all the out-of-the-box templates availalble in Sharepoint 2007.  In some cases (say a unique business requirement that needs a site template that doen&#8217;t fit in any of the one available out-of-the-box),  the templates available out-of-the-box, cannot be utilized right away. We might want to create a template that is customized to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=156&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my last <a title="Introduction to Site Templates" href="http://dotnetdreamer.com/2009/05/09/introduction-to-site-templates" target="_blank">post</a>, I explained all the out-of-the-box templates availalble in Sharepoint 2007.  In some cases (say a unique business requirement that needs a site template that doen&#8217;t fit in any of the one available out-of-the-box),  the templates available out-of-the-box, cannot be utilized right away. We might want to create a template that is customized to a requirement.</p>
<p>MOSS 2007 lets us create a site that is customized to our requirement and allow as to save and use that site as a template. How? Read further..</p>
<p>Now, I want to create a site template that will have the following elements. To make it very simple, I am having  just the following two elements.</p>
<ol>
<li>Document Library</li>
<li>Picture Library</li>
</ol>
<p>No available out-of-the-templates suites this requirement. Hence we build our own template</p>
<p>Creating Template Structure</p>
<ol>
<li>Go to Site Actions &#8211;&gt; Create</li>
<li>Select Site and Workspaces</li>
<li>Give a title to the Site, enter the Url in the corresponding box.</li>
<li>In the Select Templates, select Blank Template under the tab Collaboration</li>
<li>Provide the administrator id and click Ok to create the Blank Site</li>
<li>From the newly created Blank Site, go to Site Actions &#8211;&gt; Create</li>
<li>Selecte Document Library in the Libraries and Lists section.</li>
<li>Give the name and decscription for the Docuemnt library and click Ok.</li>
<li>Again goto Site Actions &#8211;&gt; Create.</li>
<li>Select Picture Libraries in the Libraries and Lists section.</li>
<li>Enter the name and description for the Picture library. Click Ok.</li>
</ol>
<p>Now we have created the structure for our template. The next step is creating a Template from this structure</p>
<p>Creating Template</p>
<ol>
<li>Go to Site Actions &#8211;&gt; Site Settings</li>
<li>Select Save as a Template from the section &#8216; Look and Feel &#8216;.</li>
<li><img class="aligncenter size-large wp-image-185" title="savesiteastemplate1" src="http://dotnetdreamer.files.wordpress.com/2009/05/savesiteastemplate1.jpg?w=613&#038;h=406" alt="savesiteastemplate1" width="613" height="406" /></li>
<li><img class="aligncenter size-large wp-image-186" title="savesiteastemplate2" src="http://dotnetdreamer.files.wordpress.com/2009/05/savesiteastemplate2.jpg?w=609&#038;h=386" alt="savesiteastemplate2" width="609" height="386" /></li>
<li>Enter the name for the template and the template file name. I am giving the name of  &#8216;TrainingTemplate&#8217; for both template and the filename.</li>
<li>Note the template file is has an extension of .stp.</li>
<li>Give a short description for the template.</li>
<li>Click Ok to create the template.</li>
</ol>
<p style="text-align:left;">Once the template is created, it will be available in the Site templte gallery as shown below.</p>
<p style="text-align:left;">Now lets create a site based on the template we just created.</p>
<ol>
<li>Go to Site Actions &#8211;&gt; Create</li>
<li>Select Sites and Workspaces.</li>
<li>Now you can see a Customtab in the templates section as shown below</li>
<li>Select the Custom tab. This will show the template &#8216;TrainingTemplate&#8217; we just created.</li>
<li>Select the template, fill other required details like primary site administrator. Click Ok.</li>
<li>Now the created site will have Document libraries and Picture libraries by default as shown below.</li>
</ol>
<p>Hope this is useful.</p>
<p>Thanks.</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=156&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/05/09/custom-templates-save-site-as-a-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/savesiteastemplate1.jpg?w=1024" medium="image">
			<media:title type="html">savesiteastemplate1</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/savesiteastemplate2.jpg?w=1024" medium="image">
			<media:title type="html">savesiteastemplate2</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Custom Web Parts in MOSS 2007</title>
		<link>http://dotnetdreamer.com/2009/05/09/creating-custom-web-parts-in-moss-2007/</link>
		<comments>http://dotnetdreamer.com/2009/05/09/creating-custom-web-parts-in-moss-2007/#comments</comments>
		<pubDate>Sat, 09 May 2009 11:50:09 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Add New Web Part]]></category>
		<category><![CDATA[Class Library]]></category>
		<category><![CDATA[Custom Web Parts]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[IISRESET]]></category>
		<category><![CDATA[Safe Control]]></category>
		<category><![CDATA[Sharepoint 2]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Web Part Gallery]]></category>
		<category><![CDATA[Web Parts]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=210</guid>
		<description><![CDATA[Over my previous posts, I was discussing about the out-of-the-box site templates and out-of-the-box webparts available in MOSS 2007. This post is dedicated to Creating Custom Web Parts in MOSS 2007. Creating Custom Web Parts: Let us list down the procedures involved in creating custom web parts. Create custom web part control in Visual Studio Strong [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=210&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Over my previous posts, I was discussing about the <a title="Introduction to Site Templates" href="http://dotnetdreamer.com/2009/05/09/introduction-to-site-templates" target="_blank">out-of-the-box site templates </a>and <a title="MOSS 2007 Web Parts" href="http://dotnetdreamer.com/2009/05/09/sharepoint-webparts" target="_blank">out-of-the-box webparts</a> available in MOSS 2007. This post is dedicated to Creating Custom Web Parts in MOSS 2007.</p>
<p><strong><span style="text-decoration:underline;">Creating Custom Web Parts:</span></strong></p>
<p>Let us list down the procedures involved in creating custom web parts.</p>
<ol>
<li>Create custom web part control in Visual Studio</li>
<li>Strong name the created web part assembly</li>
<li>Place the assembly in the bin directory in the Virtual Directory of the web application</li>
<li>Place the assembly in the GAC</li>
<li>Notedown the assembly name, version and public key token by looking into the assembly properties in the GAC</li>
<li>Add a SafeControl entry for the web part assembly in the application&#8217;s web.config file</li>
<li>Do IISRESET</li>
</ol>
<ul>
<li><strong><span style="text-decoration:underline;">Create Web Part in Visual Studio</span></strong>
<ul>
<li>Open Visual Studio 2005&#8211;&gt;Create New Project&#8211;&gt;Select Class Library project template&#8211;&gt;Enter the project name as CustomWebpart</li>
<li><img class="alignnone size-full wp-image-215" title="customwebpart_vs_createproject" src="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_vs_createproject.jpg?w=683&#038;h=464" alt="customwebpart_vs_createproject" width="683" height="464" /></li>
<li>Add Reference to System.Web dll</li>
<li>Open Class1.cs. Add the following namespaces
<ul>
<li>using System.Web;</li>
<li>using System.Web.UI.WebControls;</li>
<li>using System.Web.UI.WebControls.WebParts;</li>
</ul>
</li>
<li>Change the name of the class to CustomWebPart1. Inherit CustomWebPart1 from WebPart class (see code below)</li>
<li>Override CreateChildControls and RenderControls events (see code below)</li>
<li>Create a label control and assign its text property inside CreateChildControls events ( see code below)</li>
<li>The code looks like the following</li>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Web;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;</p>
<p>namespace CustomWebpart<br />
{<br />
public class CustomWebPart1 : WebPart<br />
{<br />
Label lblName;<br />
protected override void CreateChildControls()<br />
{<br />
lblName = new Label();<br />
lblName.Text = &#8220;This is the Custom Webpart created in MOSS training&#8221;;<br />
this.Controls.Add(lblName);<br />
base.CreateChildControls();<br />
}<br />
public override void RenderControl(System.Web.UI.HtmlTextWriter writer)<br />
{<br />
base.RenderControl(writer);<br />
}</p>
<p>}<br />
}</p>
<li>Build the solution.  The assembly CustomWebpart will get created</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-full wp-image-217" title="customwebpart_vs_customwebpart" src="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_vs_customwebpart.jpg?w=881&#038;h=744" alt="customwebpart_vs_customwebpart" width="881" height="744" /></span></strong></p>
<ul>
<li><strong><span style="text-decoration:underline;">Strong Naming the Assembly</span></strong>
<ul>
<li>Go to Project Properties page (Right click the project and select properties)</li>
<li>Select Signings section.  Check the &#8216;Sign the assembly&#8217; checkbox.</li>
<li>Select &#8216;Create New&#8217; in the &#8216;Choose the strong name file&#8217; drop down box.</li>
<li>In the dilog box enter a key name say snKey and click ok. (Uncheck the password checkbox).</li>
<li><img class="alignnone size-full wp-image-216" title="customwebpart_vs_createstrongname" src="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_vs_createstrongname.jpg?w=461&#038;h=235" alt="customwebpart_vs_createstrongname" width="461" height="235" /></li>
<li>Now the assembly is strong named. Build the project.</li>
</ul>
</li>
<li><strong><span style="text-decoration:underline;">Place the dll in the bin folder of the application&#8217;s virtual directory</span></strong></li>
</ul>
<p><img class="alignnone size-full wp-image-218" title="customwebpart_vs_iis" src="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_vs_iis.jpg?w=815&#038;h=512" alt="customwebpart_vs_iis" width="815" height="512" /></p>
<ul>
<li><strong><span style="text-decoration:underline;">Place the dll in the GAC and note down its name and public key token</span></strong></li>
</ul>
<p><img class="alignnone size-full wp-image-214" title="customwebpart_gac" src="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_gac.jpg?w=941&#038;h=618" alt="customwebpart_gac" width="941" height="618" /></p>
<ul>
<li><strong><span style="text-decoration:underline;">Add the assembly as Safe Control in the application&#8217;s web.config.</span></strong></li>
</ul>
<p><img class="alignnone size-full wp-image-213" title="customwebpart_webconfigjpg" src="../files/2009/05/customwebpart_webconfigjpg.jpg" alt="customwebpart_webconfigjpg" width="987" height="615" /></p>
<ul>
<li><span style="text-decoration:underline;"><strong>Thats all. Do an IISRESET</strong></span></li>
</ul>
<ul>
<li><span style="text-decoration:underline;"><strong>Adding newly created web part to Site Collection</strong></span>
<ul>
<li>Go to SiteActions &#8211;&gt;Site Settings</li>
<li>In the Galleries section choose Web Parts</li>
<li>In the Web Parts gallery click on New</li>
<li>In Add new web parts page, scroll through the list and select the web part you just created.</li>
<li>Click on the button Import Web Part to the Gallery.</li>
<li>Now, go to the page where you want to add the newly created custom web part</li>
<li>SiteActions &#8211;&gt; Edit page</li>
<li>Click Add Web Part. In the Add Web Part box, select the custom web part.</li>
<li>Click Ok.</li>
<li>Now you can see the custom web part is added to the page.</li>
</ul>
</li>
</ul>
<p>Hope this is useful.</p>
<p>Please leave your comments.</p>
<p>Thanks</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=210&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/05/09/creating-custom-web-parts-in-moss-2007/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_vs_createproject.jpg" medium="image">
			<media:title type="html">customwebpart_vs_createproject</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_vs_customwebpart.jpg" medium="image">
			<media:title type="html">customwebpart_vs_customwebpart</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_vs_createstrongname.jpg" medium="image">
			<media:title type="html">customwebpart_vs_createstrongname</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_vs_iis.jpg" medium="image">
			<media:title type="html">customwebpart_vs_iis</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/customwebpart_gac.jpg" medium="image">
			<media:title type="html">customwebpart_gac</media:title>
		</media:content>

		<media:content url="../files/2009/05/customwebpart_webconfigjpg.jpg" medium="image">
			<media:title type="html">customwebpart_webconfigjpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Form Web Part</title>
		<link>http://dotnetdreamer.com/2009/05/09/form-web-part/</link>
		<comments>http://dotnetdreamer.com/2009/05/09/form-web-part/#comments</comments>
		<pubDate>Sat, 09 May 2009 11:43:57 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Column Filter]]></category>
		<category><![CDATA[Connected Web Parts]]></category>
		<category><![CDATA[Form Web Parts]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Web Parts]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=193</guid>
		<description><![CDATA[This post discusses about Form Web Part which is an out-of-the-box web part available with MOSS 2007.  Other out-of-the-box MOSS 2007 webparts are discussed here. Form Web Part unlike other web parts does not operate alone. Usually this web part is used to provide input to other web parts / lists to act accordingly. For [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=193&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post discusses about Form Web Part which is an out-of-the-box web part available with MOSS 2007.  Other out-of-the-box MOSS 2007 webparts are discussed <a title="MOSS 2007 Web Parts" href="http://dotnetdreamer.com/2009/05/09/sharepoint-webparts" target="_blank">here</a>.</p>
<p>Form Web Part unlike other web parts does not operate alone. Usually this web part is used to provide input to other web parts / lists to act accordingly. For example,</p>
<ul>
<li>Form web part can pass the url / path of an image that is to be displayed in the Picture web part.</li>
<li>Form web part can pass the value of the filter to be applied to a column in the sharepoint list.</li>
</ul>
<p>Let us take one of the examples and discuss in detail.</p>
<p>There is a sharepoint list with the name &#8216;EmployeeDetails&#8217; with the following columns. Name, Title, Email and Department.  The lists looks something like this</p>
<p><img class="alignnone size-full wp-image-198" title="formwebpart-employeedetails" src="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-employeedetails.jpg?w=807&#038;h=384" alt="formwebpart-employeedetails" width="807" height="384" /></p>
<p>The requirement is, we want to dynamically apply the filter on the Department column. ie, we might want to see employees belonging to department &#8216;HR&#8217; at one time and employees beloging to department &#8216;Sales&#8217; another time.</p>
<p>For this, lets Add a Form Web Part to the page.</p>
<ol>
<li>Go to Site Actions &#8211;&gt; Edit Page</li>
<li>Click Add a Web Part</li>
<li>Select Form Web Part from the list of web parts displayed</li>
<li>By default, Form web part contains a  textbox and a &#8216;Go&#8217; button.</li>
<li>Variety of controls like Labels, check boxes etc can be added to the Form Web Part using the Source Editor present in the tool pane.( A web part&#8217;s tool pane can be accessed byclicking Modify Shared Web Part option present in the Edit menu of that web part). For simplicity, lets make use of the default controls available with the Form web part. Now the page looks something like this</li>
<li><img class="alignnone size-full wp-image-195" title="formwebpart" src="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart.jpg?w=956&#038;h=448" alt="formwebpart" width="956" height="448" /></li>
<li>Now in the Form Web Part, go to Edit &#8211;&gt; Connections &#8211;&gt; Provide values to &#8211;&gt; Select &#8216;EmployeeDetails&#8217;.  This will open &#8216;Configure Connection&#8217; dialog box.</li>
<li><img class="alignnone size-full wp-image-197" title="formwebpart-configureconnection" src="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-configureconnection.jpg?w=500&#038;h=300" alt="formwebpart-configureconnection" width="500" height="300" /></li>
<li>Select Column T1 and click next (Note T1 is the name of the textbox in the form web part which you can see from the Source Editor of Form Web Part)</li>
<li>Now a second dialog box appears that lists the columns present in the &#8216;EmployeeDetails&#8217; list. Select the column for which we need to apply the filter. In our case it is &#8216;Deparment&#8217; column</li>
<li><img class="alignnone size-full wp-image-200" title="formwebpart-configureconnection3" src="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-configureconnection3.jpg?w=461&#038;h=212" alt="formwebpart-configureconnection3" width="461" height="212" /></li>
<li>Click Next or Finish to complete the configuration</li>
<li>Now to list employee belonging to the department &#8216;HR&#8217;, enter &#8216;HR&#8217; in the textbox of form web part and click Go. You can see the filtered EmployeeDetailas as below</li>
<li><img class="alignnone size-full wp-image-199" title="formwebpart-result1" src="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-result1.jpg?w=960&#038;h=392" alt="formwebpart-result1" width="960" height="392" /></li>
<li>To get employees belong to Sales department, enter &#8216;Salee&#8217; in the Form Web Part to get the needed list like below.</li>
<li><img class="alignnone size-full wp-image-194" title="formwebpart-result2" src="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-result2.jpg?w=958&#038;h=384" alt="formwebpart-result2" width="958" height="384" /></li>
</ol>
<p> </p>
<p>Hope this is useful..</p>
<p>Please leave your comments.</p>
<p>Thanks.</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=193&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/05/09/form-web-part/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-employeedetails.jpg" medium="image">
			<media:title type="html">formwebpart-employeedetails</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart.jpg" medium="image">
			<media:title type="html">formwebpart</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-configureconnection.jpg" medium="image">
			<media:title type="html">formwebpart-configureconnection</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-configureconnection3.jpg" medium="image">
			<media:title type="html">formwebpart-configureconnection3</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-result1.jpg" medium="image">
			<media:title type="html">formwebpart-result1</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/formwebpart-result2.jpg" medium="image">
			<media:title type="html">formwebpart-result2</media:title>
		</media:content>
	</item>
		<item>
		<title>Sharepoint Webparts</title>
		<link>http://dotnetdreamer.com/2009/05/09/sharepoint-webparts/</link>
		<comments>http://dotnetdreamer.com/2009/05/09/sharepoint-webparts/#comments</comments>
		<pubDate>Sat, 09 May 2009 11:40:20 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Content Editor Web Part]]></category>
		<category><![CDATA[Form Web Part]]></category>
		<category><![CDATA[Image Web Part]]></category>
		<category><![CDATA[Microsoft  Office Sharepoint Server 2007]]></category>
		<category><![CDATA[Page Viewer Web Part]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint Web Parts]]></category>
		<category><![CDATA[Site Users Web Part]]></category>
		<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[XML Web Part]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=173</guid>
		<description><![CDATA[Web part is what that makes up the web pages in a sharepoint site. A Sharepoint site is nothing but a group of web pages in which each and every web page holds one or more web parts which in itself contains different types of data based on the type of the web part chosen. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=173&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Web part is what that makes up the web pages in a sharepoint site. A Sharepoint site is nothing but a group of web pages in which each and every web page holds one or more web parts which in itself contains different types of data based on the type of the web part chosen. The following are the out-of-the-box web parts available with MOSS 2007.</p>
<ol>
<li>Content Editor Web Part</li>
<li>Form Web Part</li>
<li>Image Web Part</li>
<li>List Web Part</li>
<li>Page Viewer Web Part</li>
<li>Site Users Web Part</li>
<li>XML Web Part</li>
</ol>
<p>Lets see each of these web parts in detail.</p>
<ul>
<li>Content Editor Web Part
<ul>
<li>Content Editor Web Part is used to display data in the form of text, images, table and links. To provide input to this web part, it exposes three properties in its tool pane (A web part&#8217;s tool pane can be reached by Site Actions &#8211;&gt; Edit Page &#8211;&gt;Click Edit in the web part&#8211;&gt;Select Modify Shared Web Part ). Those are
<ul>
<li>Source Editor : Data is entered in HTML format. The data can be formatted using HTML tags and it requires author to know the HTML syntax.</li>
<li>Rich Text Editor :  Allows to enter information in plain text. It provides tools to insert images, tables and links into the web part.</li>
<li>Content Link : This can be used to link this web part to a text file with HTML formatting.</li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li>Form Web Part
<ul>
<li>Form Web Part needed a separate post and it can be read <a title="Form Web Part" href="http://dotnetdreamer.com/2009/05/09/form-web-part/" target="_blank">here</a>.</li>
</ul>
</li>
</ul>
<ul>
<li>Image Web Part
<ul>
<li>This Web Part is used to add an image to your web part page. The image can be a drawing or a logo or a diagram. The supported image formats are .bmp, .emf, .gif, .jpg, .png</li>
<li>The path of the image can be given in the Image Link property in the web parts tool pane</li>
</ul>
</li>
</ul>
<ul>
<li>Page Viewer Web Part
<ul>
<li>This web part displays the content of any web page that is linked to it. In addition to web pages, it can display the contents of a folder or a file for which the path is provided in the toolpane.</li>
<li>There will be three radio buttons in the toolpane for each for Web Page, Folders and Files. The appropriate radio button should be checked and in the Link textbox, the path of the webpage, file or folder should be provided.</li>
</ul>
</li>
</ul>
<ul>
<li>Site Users Web Part
<ul>
<li>This web part displays the list of users and groups who have access to the Sharepoint site. There are three two filter conditions that can be applied to customize the users / groups being displayed.
<ul>
<li>Number Of Items To Display : Restricts the number of items (users / groups) being displayed in this web part. The value ranges from 1 to 1000.</li>
<li>Display Type:
<ul>
<li>Display Users / Groups who have direct permission.</li>
<li>Display user&#8217;s belonging to this Site&#8217;s members group</li>
<li>Display users from this group . ( The needed group name can be entered in the text box provided)</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li>XML Web Part
<ul>
<li>This web part displays XML formatted data and applied XSL Transformtions prior to the display of the data.</li>
<li>XML Editor and XSL editor properties present in the tool pane allows the user to enter the XML data and XSL transformations.</li>
<li>XML Link and XSL Link properties present in the tool pane allows the user to link to XML files and XSLT files present anywhere in the connected network.</li>
</ul>
</li>
</ul>
<p>Hope this is useful.</p>
<p>There is also a post on out-of-the-box site templates in MOSS 2007 <a title="Introduction to Site Templates" href="http://dotnetdreamer.com/2009/05/09/introduction-to-site-templates" target="_blank">here</a>.</p>
<p>Thanks.</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=173&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/05/09/sharepoint-webparts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>
	</item>
		<item>
		<title>Changing Site Themes &#8211; Sharepoint</title>
		<link>http://dotnetdreamer.com/2009/05/09/changing-site-themes-sharepoint/</link>
		<comments>http://dotnetdreamer.com/2009/05/09/changing-site-themes-sharepoint/#comments</comments>
		<pubDate>Sat, 09 May 2009 11:34:49 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Microsoft  Office Sharepoint Server 2007]]></category>
		<category><![CDATA[Site Themes]]></category>
		<category><![CDATA[Sharepoint Site Themes]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=161</guid>
		<description><![CDATA[On my previous posts, I wrote about Out-of-the-box Site templates and Creating custom templates This post is on &#8216;Changing the Site Theme&#8217; in a Sharepoint site. Goto Site Actions &#8211;&#62; Site Settings Under the Look and Feel sections, select Site themes. The page will be shown like below.     3. On selecting various themes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=161&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On my previous posts, I wrote about <a title="Introduction to Site Templates" href="http://dotnetdreamer.com/2009/05/09/introduction-to-site-templates" target="_blank">Out-of-the-box Site templates</a> and <a title="Save Site as a Template" href="http://dotnetdreamer.com/2009/05/09/custom-templates-save-site-as-a-template" target="_blank">Creating custom templates</a></p>
<p>This post is on &#8216;Changing the Site Theme&#8217; in a Sharepoint site.</p>
<ol>
<li>Goto Site Actions &#8211;&gt; Site Settings</li>
<li>Under the Look and Feel sections, select Site themes. The page will be shown like below.</li>
</ol>
<p> </p>
<p><img class="aligncenter size-large wp-image-189" title="sitethemes-sitesettings" src="http://dotnetdreamer.files.wordpress.com/2009/05/sitethemes-sitesettings.jpg?w=863&#038;h=349" alt="sitethemes-sitesettings" width="863" height="349" /></p>
<p> </p>
<p><img class="aligncenter size-large wp-image-188" title="sitethemes" src="http://dotnetdreamer.files.wordpress.com/2009/05/sitethemes.jpg?w=711&#038;h=303" alt="sitethemes" width="711" height="303" /></p>
<p>3. On selecting various themes available in the list, a preview of the selected theme is shown on the left side.</p>
<p>4. Select the desired theme and select Ok to apply the theme</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=161&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/05/09/changing-site-themes-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/sitethemes-sitesettings.jpg?w=1024" medium="image">
			<media:title type="html">sitethemes-sitesettings</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/05/sitethemes.jpg?w=1024" medium="image">
			<media:title type="html">sitethemes</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction to Site Templates</title>
		<link>http://dotnetdreamer.com/2009/05/09/introduction-to-site-templates/</link>
		<comments>http://dotnetdreamer.com/2009/05/09/introduction-to-site-templates/#comments</comments>
		<pubDate>Sat, 09 May 2009 10:35:12 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Microsoft  Office Sharepoint Server 2007]]></category>
		<category><![CDATA[Report Center]]></category>
		<category><![CDATA[Site Templates]]></category>
		<category><![CDATA[Site Template]]></category>
		<category><![CDATA[Team Site]]></category>
		<category><![CDATA[Collaboration Template]]></category>
		<category><![CDATA[Sharepoint template]]></category>
		<category><![CDATA[Meeting Template]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Wiki]]></category>
		<category><![CDATA[Enterprise template]]></category>
		<category><![CDATA[Record Center]]></category>
		<category><![CDATA[Document Center]]></category>
		<category><![CDATA[Introductio to Sharepoint Site Template]]></category>
		<category><![CDATA[Sharepoint Site Template]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=154</guid>
		<description><![CDATA[Sharepoint 2007 comes with some out-of-the-box site templates that allows Administrators or Information Workers to readily create sites by choosing one of the available templates that suites their requirement. The out-of-the-box Site Templates available with Sharepoint 2007 are broadly classified into 4 categories as mentioned below. Collaboration Meeting Enterprise Publishing Collaboration Templates Team Site: This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=154&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sharepoint 2007 comes with some out-of-the-box site templates that allows Administrators or Information Workers to readily create sites by choosing one of the available templates that suites their requirement.</p>
<p>The out-of-the-box Site Templates available with Sharepoint 2007 are broadly classified into 4 categories as mentioned below.</p>
<ol>
<li>Collaboration</li>
<li>Meeting</li>
<li>Enterprise</li>
<li>Publishing</li>
</ol>
<p><strong><span style="text-decoration:underline;">Collaboration Templates</span></strong></p>
<ul>
<li>Team Site:
<ul>
<li>This site is for team members to collaborate on any tasks or projects. To facilitate this type of collaboration, it includes the following webparts
<ul>
<li>Document library : To manage documents associated with the task / project</li>
<li>Announcement List : Create / Manage announcements with the project team</li>
<li>Discussion Board : A forum to discuss on tasks / issues assocaited with the project</li>
<li>Calendar Lists : Keeps track of the various schedules associated with team members / project</li>
<li>Task Lists : A list that keeps track of task items assigned against members of the project</li>
<li>Links : A single place to keep track of  links to sites that are needed for the project</li>
</ul>
</li>
</ul>
</li>
</ul>
<p> </p>
<p><img class="aligncenter size-large wp-image-183" title="teamsite" src="http://dotnetdreamer.files.wordpress.com/2009/04/teamsite.jpg?w=671&#038;h=587" alt="teamsite" width="671" height="587" /></p>
<ul>
<li>Blank Site:
<ul>
<li>As the name suggests, its just a blank site with no webparts populated by default. This is a good place for building a fully customized site.</li>
</ul>
</li>
</ul>
<p> </p>
<p><img class="aligncenter size-large wp-image-177" title="blanksite" src="http://dotnetdreamer.files.wordpress.com/2009/04/blanksite.jpg?w=659&#038;h=595" alt="blanksite" width="659" height="595" /></p>
<p>Document Workspace:</p>
<ul>
<li>This template is suitable for a team documentation project or a team of technical writers where there is a need in creation and modification of common documentation.</li>
<li>It has the following webparts associated with it.
<ul>
<li>Document Library</li>
<li>Tasks List</li>
<li>Links</li>
</ul>
</li>
</ul>
<p> </p>
<p><img class="aligncenter size-large wp-image-179" title="documentworkspace" src="http://dotnetdreamer.files.wordpress.com/2009/04/documentworkspace.jpg?w=652&#038;h=622" alt="documentworkspace" width="652" height="622" /></p>
<ul>
<li>Blog Site:
<ul>
<li>A site for a team or person to post ideas and observations which site visitors can comment to.</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">Meeting Templates</span></strong></p>
<p>Basic Meeting:</p>
<ul>
<li>A general purpose meeting template that helps to plan, organize and capture the results of the meeting using the following webparts associated with the site
<ul>
<li>Objectives list</li>
<li>Attendies</li>
<li>Agenda</li>
<li>Document Library</li>
</ul>
</li>
</ul>
<p><img class="aligncenter size-large wp-image-176" title="basicmeeting" src="http://dotnetdreamer.files.wordpress.com/2009/04/basicmeeting.jpg?w=657&#038;h=760" alt="basicmeeting" width="657" height="760" /></p>
<ul>
<li>Blank Meeting:
<ul>
<li>A blank meeting site that can be customized to suite the requirement</li>
</ul>
</li>
<li>Decision Making Meeting:
<ul>
<li>This template is suitable when the purpose of the meeting is to reivew doucments, lists and other informations in order to make a decision. The webparts included are
<ul>
<li>Objectives list</li>
<li>Attendies</li>
<li>Agenda</li>
<li>Document Library</li>
<li>Tasks List</li>
<li>Decision List</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><img class="aligncenter size-large wp-image-178" title="decisionmeeting" src="http://dotnetdreamer.files.wordpress.com/2009/04/decisionmeeting.jpg?w=830&#038;h=525" alt="decisionmeeting" width="830" height="525" /></p>
<p style="padding-left:30px;"> </p>
<ul>
<li>Social Meeting:
<ul>
<li>This template comes handy when organizing a team picnic or party.  The web elements included are
<ul>
<li>Attendies list</li>
<li>Directions</li>
<li>Image Log</li>
<li>Thing to bring List</li>
<li>Photo Library</li>
</ul>
</li>
</ul>
</li>
<li>MultiPage Meeting:
<ul>
<li>This is similar to Decision Making template but it is designed to accomodate complex decision process. This site comes with two webpages by default and it can accomodate upto 10 individual pages. It includes
<ul>
<li>Objective Lists</li>
<li>Attendies Lists</li>
<li>Agenda</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">Enterprise</span></strong></p>
<p style="padding-left:30px;">Enterprise templates are normally used as a top-level or high-level sites in an organizations site collection. It facilitated enterprise level activities in the areas of document management, records management and report management</p>
<ul>
<li>Document Center:
<ul>
<li>A Site to centrally manage enterprise level documents. It has several document management features enabled by default like Major / Minor versionaing, Require check out etc. This templates includes the following webparts.
<ul>
<li>Document Library</li>
<li>Relevant documents</li>
<li>Upcoming tasks</li>
<li>Treeview webpart</li>
</ul>
</li>
</ul>
</li>
<li>Records Center:
<ul>
<li>This site template is used to centrally manage organizations data and data sources. The webparts included are
<ul>
<li>Records vault</li>
<li>Records routing list</li>
<li>Information management policy</li>
<li>Unassigned Records library</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><img class="aligncenter size-large wp-image-181" title="recordscenter" src="http://dotnetdreamer.files.wordpress.com/2009/04/recordscenter.jpg?w=738&#038;h=533" alt="recordscenter" width="738" height="533" /></p>
<p style="padding-left:30px;"> </p>
<ul>
<li>Site Directory:
<ul>
<li>A site template for listing, categorizing important sites in the organizations site collection. The webparts included are
<ul>
<li>Categorized Sites</li>
<li>Top Sites</li>
<li>Site Map</li>
</ul>
</li>
</ul>
</li>
<li>Report Center:
<ul>
<li>This site template as part of Sharepoint business intelligence solution communicates metrics, goals, statues and business intelligence informations by means of the foll0wing web elements
<ul>
<li>Dashboards</li>
<li>KPI indicators</li>
<li>Webpages</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><img class="aligncenter size-large wp-image-182" title="reportcenter" src="http://dotnetdreamer.files.wordpress.com/2009/04/reportcenter.jpg?w=655&#038;h=646" alt="reportcenter" width="655" height="646" /></p>
<p style="padding-left:30px;"> </p>
<ul>
<li>Search Center:
<ul>
<li>A site that enables users to seach for information. It includes webparts
<ul>
<li>SearchResults</li>
<li>Advanced Search</li>
</ul>
</li>
</ul>
</li>
<li>Search Center with tabs:
<ul>
<li>This is similar to search center except it comes with two tabs. One tab to search through information in the sites and the other tab &#8216;people&#8217; that enables to search through peoples.</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">Publishing</span></strong></p>
<ul>
<li>News Site:
<ul>
<li>A site for publising news articles and links to news articles. The default webparts includes</li>
<li>Sample news page</li>
<li>Archive for storing older news</li>
</ul>
</li>
</ul>
<p>Hope this is useful.</p>
<p>A post on creating custom templates can be found <a title="Save Site as a Template" href="http://dotnetdreamer.com/2009/05/09/custom-templates-save-site-as-a-template" target="_blank">here</a></p>
<p>Thanks.</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=154&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/05/09/introduction-to-site-templates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/teamsite.jpg?w=1024" medium="image">
			<media:title type="html">teamsite</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/blanksite.jpg?w=1024" medium="image">
			<media:title type="html">blanksite</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/documentworkspace.jpg?w=1024" medium="image">
			<media:title type="html">documentworkspace</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/basicmeeting.jpg?w=1024" medium="image">
			<media:title type="html">basicmeeting</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/decisionmeeting.jpg?w=1024" medium="image">
			<media:title type="html">decisionmeeting</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/recordscenter.jpg?w=1024" medium="image">
			<media:title type="html">recordscenter</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/reportcenter.jpg?w=1024" medium="image">
			<media:title type="html">reportcenter</media:title>
		</media:content>
	</item>
		<item>
		<title>Access Denied &#8211; Activating Microsoft Office Server Publishing Infrastructure</title>
		<link>http://dotnetdreamer.com/2009/04/27/access-denied-activating-microsoft-office-server-publishing-infrastructure/</link>
		<comments>http://dotnetdreamer.com/2009/04/27/access-denied-activating-microsoft-office-server-publishing-infrastructure/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 19:15:34 +0000</pubDate>
		<dc:creator>Ramprasad Navaneethakrishnan</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Access Denied]]></category>
		<category><![CDATA[Activating Office Server Publishing Infrastructure]]></category>
		<category><![CDATA[Application Pool]]></category>
		<category><![CDATA[Enterprise Sites]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[IISRESET]]></category>
		<category><![CDATA[Publishing Infrastructure]]></category>
		<category><![CDATA[Report Center]]></category>
		<category><![CDATA[Site Collection Administration]]></category>
		<category><![CDATA[Site Collection Features]]></category>
		<category><![CDATA[Site Templates]]></category>

		<guid isPermaLink="false">http://dotnetdreamer.com/?p=143</guid>
		<description><![CDATA[Hi Fellas, Stuck up with the error &#8220;Access Denied&#8221; while activating the Publishing Infrastructure feature?? Read this post for solution I was trying to create a sharepoint site with the Report Center template under the Enterprise tab. I got the message that I need to activate Publishing Infrastruture Feature in Site Collection before creating site [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=143&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi Fellas,</p>
<p>Stuck up with the error &#8220;Access Denied&#8221; while activating the Publishing Infrastructure feature?? Read this post for solution</p>
<p>I was trying to create a sharepoint site with the <strong><span style="color:#800080;">Report Center</span></strong> template under the <strong><span style="color:#993366;">Enterprise tab</span></strong>.</p>
<p><img class="alignnone size-medium wp-image-146" title="report_center_site_creation" src="http://dotnetdreamer.files.wordpress.com/2009/04/report_center_site_creation.jpg?w=657&#038;h=445" alt="report_center_site_creation" width="657" height="445" /></p>
<p>I got the message that I need to activate <strong><span style="color:#800080;">Publishing Infrastruture Feature</span></strong> in Site Collection before creating site of this type.</p>
<p><img class="aligncenter size-large wp-image-148" title="site_creation_error" src="http://dotnetdreamer.files.wordpress.com/2009/04/site_creation_error.jpg?w=1024&#038;h=760" alt="site_creation_error" width="1024" height="760" /></p>
<p>I went to <strong><span style="color:#993366;">Site Collection Features</span></strong> in the section <strong><span style="color:#993366;">Site Collection Administration</span></strong> through Site Actions &#8211; &gt; Site Settings</p>
<p><img class="aligncenter size-large wp-image-147" title="site_collection_features" src="http://dotnetdreamer.files.wordpress.com/2009/04/site_collection_features.jpg?w=1024&#038;h=760" alt="site_collection_features" width="1024" height="760" /></p>
<p>When tried to activate the <strong><span style="color:#993366;">Publishing Infrastructure Feature</span></strong>, I got the Access Denied error.</p>
<p><img class="aligncenter size-full wp-image-145" title="activation_error" src="http://dotnetdreamer.files.wordpress.com/2009/04/activation_error.jpg?w=450&#038;h=215" alt="activation_error" width="450" height="215" /></p>
<p><span style="text-decoration:underline;"><span style="color:#993366;"><strong>Solution 1:</strong></span></span></p>
<p>Run the following command</p>
<p><strong>stsadm -o activatefeature -name PublishingResources -url &lt;siteurl&gt;</strong></p>
<p><span style="text-decoration:underline;"><strong><span style="color:#993366;">Solution 2:</span></strong></span></p>
<p>After some analysis, I found out that the AppPool for the current web application is having limited privileges. I did the following steps to resolve the problem</p>
<p>1. Open IIS. Locate the Web Applications. Go to properties. Select the Home Directory tab. Change the Application Pool to the one used by the Central Administration</p>
<p>2. Do IISRESET</p>
<p>3. Go the Site Collection Features. Activate the feature. Now it gets activated!</p>
<p>4. Go to IIS. Change the Application pool of the web application to the original one.</p>
<p>5. Do IISRESET</p>
<p>6. Now go back and create the Report Cente Site</p>
<p>Hope this will be useful. Forgive me for the horrible screenshots <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks,</p>
<p>Ramprasad.</p>
<br />Posted in MOSS 2007  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdreamer.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdreamer.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdreamer.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdreamer.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdreamer.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdreamer.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdreamer.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdreamer.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdreamer.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdreamer.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdreamer.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdreamer.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdreamer.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdreamer.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdreamer.com&blog=3878855&post=143&subd=dotnetdreamer&ref=&feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdreamer.com/2009/04/27/access-denied-activating-microsoft-office-server-publishing-infrastructure/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Just another dreamer</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/report_center_site_creation.jpg?w=300" medium="image">
			<media:title type="html">report_center_site_creation</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/site_creation_error.jpg?w=1024" medium="image">
			<media:title type="html">site_creation_error</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/site_collection_features.jpg?w=1024" medium="image">
			<media:title type="html">site_collection_features</media:title>
		</media:content>

		<media:content url="http://dotnetdreamer.files.wordpress.com/2009/04/activation_error.jpg" medium="image">
			<media:title type="html">activation_error</media:title>
		</media:content>
	</item>
	</channel>
</rss>