<?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>*****## R.MARAN. ## *****</title>
	<atom:link href="http://rmanimaran.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rmanimaran.wordpress.com</link>
	<description>Winners don&#039;t do different things.They do things Differently.</description>
	<lastBuildDate>Sun, 22 Jan 2012 13:00:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rmanimaran.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6d5bc6f624043886a772348d90b8bc88?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>*****## R.MARAN. ## *****</title>
		<link>http://rmanimaran.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rmanimaran.wordpress.com/osd.xml" title="*****## R.MARAN. ## *****" />
	<atom:link rel='hub' href='http://rmanimaran.wordpress.com/?pushpress=hub'/>
		<item>
		<title>2011 in review</title>
		<link>http://rmanimaran.wordpress.com/2012/01/01/2011-in-review/</link>
		<comments>http://rmanimaran.wordpress.com/2012/01/01/2011-in-review/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 05:49:51 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=755</guid>
		<description><![CDATA[The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog. Here&#8217;s an excerpt: Madison Square Garden can seat 20,000 people for a concert. This blog was viewed about 61,000 times in 2011. If it were a concert at Madison Square Garden, it would take about 3 sold-out performances for that many people [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=755&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.</p>
<div style="background:url('/wp-content/mu-plugins/annual-reports/img/emailteaser.jpg') no-repeat center center;height:300px;"></div>
<p>Here&#8217;s an excerpt:</p>
</p>
<blockquote><p>Madison Square Garden can seat 20,000 people for a concert.  This blog was viewed about <strong>61,000</strong> times in 2011. If it were a concert at Madison Square Garden, it would take about 3 sold-out performances for that many people to see it.</p></blockquote>
<p><a href="/2011/annual-report/">Click here to see the complete report.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/755/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/755/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/755/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/755/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/755/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/755/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/755/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/755/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/755/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/755/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/755/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/755/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/755/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/755/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=755&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2012/01/01/2011-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>13.030636 80.202757</georss:point>
		<geo:lat>13.030636</geo:lat>
		<geo:long>80.202757</geo:long>
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>
	</item>
		<item>
		<title>Happy New Year 2012</title>
		<link>http://rmanimaran.wordpress.com/2011/12/31/happy-new-year-2012/</link>
		<comments>http://rmanimaran.wordpress.com/2011/12/31/happy-new-year-2012/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 04:25:03 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=752</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=752&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://rmanimaran.files.wordpress.com/2011/12/newyear2012.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/12/newyear2012.jpg?w=500&#038;h=375" alt="" title="NewYear2012" width="500" height="375" class="aligncenter size-full wp-image-751" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/752/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=752&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/12/31/happy-new-year-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>13.030636 80.202757</georss:point>
		<geo:lat>13.030636</geo:lat>
		<geo:long>80.202757</geo:long>
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/12/newyear2012.jpg" medium="image">
			<media:title type="html">NewYear2012</media:title>
		</media:content>
	</item>
		<item>
		<title>Missing Documents Opened from Outlook Attachment and edited</title>
		<link>http://rmanimaran.wordpress.com/2011/08/09/missing-documents-opened-from-outlook-attachment-and-edited/</link>
		<comments>http://rmanimaran.wordpress.com/2011/08/09/missing-documents-opened-from-outlook-attachment-and-edited/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 14:06:12 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=739</guid>
		<description><![CDATA[Missing Documents Opened from Outlook Attachment and edited Recently I opened a word document directly from the Outlook mail attachment and do editing. I have enabled the auto save option also. Other than that I used to save the file now and then while editing. On completing my changes I closed the file. After closing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=739&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Missing Documents Opened from Outlook Attachment and edited</strong></p>
<p>Recently I opened a word document directly from the Outlook mail attachment and do editing. I have enabled the auto save option also. Other than that I used to save the file now and then while editing. On completing my changes I closed the file. After closing only I realized that I have opened the file directly from the Outlook and did those modifications. I again go to the mail which contains that file and re-opened. I found my changes are missing. In the recent documents of the word also the file is missing.</p>
<p>I do a windows search with the modification I have did in that file. But I can’t able to find the file. I thought that my one day work is gone and again I need to re-work on that document.</p>
<p>But I have the confident that somewhere in the system my file will be there. Finally I found that in the following location.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/08/image001.png"><img src="http://rmanimaran.files.wordpress.com/2011/08/image001.png?w=500&#038;h=333" alt="" title="image001" width="500" height="333" class="alignnone size-full wp-image-740" /></a></p>
<p>All the files opened from edited and saved from the outlook attachments get saved under this folder. This Content.Outlook is the hidden folder. After Temporary Internet Files type the Content.Outlook in the address bar to open the folder.</p>
<p>Inside the Content.Outlook you will have the folder similar to the above folder name. All the files will be within that folder.</p>
<p><strong>Moral Learned:</strong> Though I found the document, the one I learned is don’t edit the document directly from the outlook attachment. First copy to your working folder and do the change. J</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/739/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/739/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/739/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/739/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/739/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/739/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/739/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/739/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/739/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/739/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/739/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/739/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/739/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/739/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=739&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/08/09/missing-documents-opened-from-outlook-attachment-and-edited/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/08/image001.png" medium="image">
			<media:title type="html">image001</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint: Join Query using Lambda Expression in SharePoint List</title>
		<link>http://rmanimaran.wordpress.com/2011/07/25/sharepoint-join-query-using-lambda-expression-in-sharepoint-list/</link>
		<comments>http://rmanimaran.wordpress.com/2011/07/25/sharepoint-join-query-using-lambda-expression-in-sharepoint-list/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 07:12:57 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Join]]></category>
		<category><![CDATA[Lambda Expression]]></category>
		<category><![CDATA[SharePoint.C#]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=732</guid>
		<description><![CDATA[SharePoint: Join Query using Lambda Expression in SharePoint List Join: Join is the extension method which works on the IEnumerable I found many articles and examples which uses LINQ to join two tables. I tried the same using Lambda Expression. For tables I have used SharePoint List. The Join method operates on the SPListItem and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=732&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>SharePoint: Join Query using Lambda Expression in SharePoint List</h3>
<p>Join: Join is the extension method which works on the IEnumerable</p>
<p>I found many articles and examples which uses LINQ to join two tables. I tried the same using Lambda Expression. For tables I have used SharePoint List. The Join method operates on the SPListItem and Join two SharePoint List.</p>
<p>I have created two SharePoint List</p>
<p>· Test</p>
<p>· Countries<br />
<div id="attachment_733" class="wp-caption aligncenter" style="width: 510px"><a href="http://rmanimaran.files.wordpress.com/2011/07/image0011.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image0011.jpg?w=500&#038;h=278" alt="" title="image0011" width="500" height="278" class="size-full wp-image-733" /></a><p class="wp-caption-text">Test</p></div><br />
<div id="attachment_734" class="wp-caption aligncenter" style="width: 310px"><a href="http://rmanimaran.files.wordpress.com/2011/07/image0021.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image0021.jpg?w=500" alt="" title="image0021"   class="size-full wp-image-734" /></a><p class="wp-caption-text">Countries</p></div></p>
<p>Here “<strong>Test”</strong> List contains a Lookup column (Country) which refers the “<strong>Countries</strong>” List.</p>
<p><pre class="brush: csharp;">

SPList myList = oSPWeb.Lists.Cast()

.FirstOrDefault(l =&gt; l.Title == &quot;Test&quot;);

SPList myCountryList = oSPWeb.Lists.Cast()

.FirstOrDefault(l =&gt; l.Title == &quot;Countries&quot;);

var items = myList.Items.Cast().Join

(myCountryList.Items.Cast(),

(l1 =&gt; ReturnLookupValue(Convert.ToString(l1[&quot;Country&quot;]))),

(l2 =&gt; Convert.ToString(l2[&quot;Title&quot;])),

((l1, l2) =&gt; new { l1, l2 }));

foreach (var item in items)

{

Console.WriteLine(item.l1.Title.ToString() +&quot;-&quot;+ item.l2.Title);

}

</pre></p>
<p>Here in the above I am using the columns “<strong>Title”</strong> from Countries List and “<strong>Country</strong>” Column from the Test List. As the Lookup value will return the value along with the LookupId(#1;India), I removed the ID using the method ReturnLookupVale.</p>
<p>ReturnLookupValue method will contain the following code to return the lookup value.</p>
<p><pre class="brush: csharp;">

SPFieldLookupValue lookup = new SPFieldLookupValue(LookupValue);

return lookup.LookupValue;

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/732/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=732&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/07/25/sharepoint-join-query-using-lambda-expression-in-sharepoint-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>13.030636 80.202757</georss:point>
		<geo:lat>13.030636</geo:lat>
		<geo:long>80.202757</geo:long>
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image0011.jpg" medium="image">
			<media:title type="html">image0011</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image0021.jpg" medium="image">
			<media:title type="html">image0021</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint : Selecting KeyPair values using Lambda ToDictionary and ToLookup method</title>
		<link>http://rmanimaran.wordpress.com/2011/07/20/sharepoint-selecting-keypair-values-using-lambda-todictionary-and-tolookup-method/</link>
		<comments>http://rmanimaran.wordpress.com/2011/07/20/sharepoint-selecting-keypair-values-using-lambda-todictionary-and-tolookup-method/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 09:22:53 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Lambda Expression]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[ToDictionary]]></category>
		<category><![CDATA[ToLookup]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=724</guid>
		<description><![CDATA[ToDictionary: It an LINQ extension method which stores the data as Key Value pairs. Here in the below I am fetching the Email Id and Title from a SharePoint List as a Key Value pairs. Get the List using Lambda expression. If the specified list is not found, then it will return null. Get the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=724&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color:#0000ff;">ToDictionary</span>:</strong> It an LINQ extension method which stores the data as Key Value pairs. Here in the below I am fetching the Email Id and Title from a SharePoint List as a Key Value pairs.</p>
<p>Get the List using Lambda expression. If the specified list is not found, then it will return null.</p>
<p><pre class="brush: csharp;">
SPList myList = oSPWeb.Lists.Cast&lt;SPList&gt;()
    .FirstOrDefault(l =&gt; l.Title == &quot;ExternalPeople&quot;);
</pre></p>
<p>Get the Email and Tilte as key value pair. Before fetching do an filter operation where the Qualification is “BE”</p>
<p><pre class="brush: csharp;">
IDictionary&lt;string,string&gt; NameswithEmail = myList.Items.Cast&lt;SPListItem&gt;()                                                                                .Where(itm =&gt; Convert.ToString(itm[&quot;Qualification&quot;]) == &quot;BE&quot;)                                                                                .ToDictionary(itm =&gt; Convert.ToString(itm[&quot;Email&quot;]),
  itm =&gt; Convert.ToString(itm[&quot;Title&quot;]));
</pre></p>
<p>Print the Key-value pairs using foreach</p>
<p><pre class="brush: csharp;">
foreach (KeyValuePair&lt;string, string&gt; names in NameswithEmail)
{
    Console.WriteLine(&quot;Email:&quot;+names.Key);
    Console.WriteLine(&quot;First Name:&quot;+names.Value);
}
</pre></p>
<p><span style="color:#0000ff;"><strong>ToLookup:</strong></span> Allow you to specify Key and Values as TODictionary. The difference between ToLookup to ToDictionary is the former allows duplicates Keys while the latter does not.</p>
<p>Another difference is Lookups are immutable. i..e once you create a lookup you cannot add or remove elements from it.</p>
<p>In the above Dictionary collection NameswithEmail we have methods called Add and Remove. But we will not have any such methods in ILookup collection.</p>
<p><pre class="brush: csharp;">
var myLookupItems = myList.Items.Cast&lt;SPListItem&gt;().ToLookup(itm =&gt; Convert.ToString(itm[&quot;Qualification&quot;]), itm =&gt; itm);
var EmployeesBE = myLookupItems[&quot;MCA&quot;];
 foreach (var str in EmployeesBE)
 {
   Console.WriteLine(str.Title);
 }
</pre></p>
<p>Instead of Var we can use the ILookup Enumerable as below</p>
<p><pre class="brush: csharp;">
ILookup&lt;string,SPListItem&gt; myLookupItems1 = myList.Items.Cast&lt;SPListItem&gt;()

.ToLookup(itm =&gt; Convert.ToString(itm[&quot;Qualification&quot;]),

itm =&gt; itm);

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/724/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=724&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/07/20/sharepoint-selecting-keypair-values-using-lambda-todictionary-and-tolookup-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>13.030636 80.202757</georss:point>
		<geo:lat>13.030636</geo:lat>
		<geo:long>80.202757</geo:long>
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>
	</item>
		<item>
		<title>Hidding and Restoring Views Dropdown in the SharePoint 2007 List using OOTB</title>
		<link>http://rmanimaran.wordpress.com/2011/07/15/hidding-and-restoring-views-dropdown-in-the-sharepoint-2007-list-using-ootb/</link>
		<comments>http://rmanimaran.wordpress.com/2011/07/15/hidding-and-restoring-views-dropdown-in-the-sharepoint-2007-list-using-ootb/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 07:47:19 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Hide List Views DropDown]]></category>
		<category><![CDATA[OOTB]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=715</guid>
		<description><![CDATA[Hidding and Restoring Views Dropdown in the SharePoint 2007 List using OOTB My team-mate asked a questions that he wants to hide the Views dropdown in the SharePoint List. But the condition is that we should not use the coding (any JavaScript or Object model). Following is the output he likes to have. I tried [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=715&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Hidding and Restoring Views Dropdown in the SharePoint 2007 List using OOTB</strong></p>
<p>My team-mate asked a questions that he wants to hide the Views dropdown in the SharePoint List. But the condition is that we should not use the coding (any JavaScript or Object model).</p>
<p>Following is the output he likes to have.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/07/image001.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image001.jpg?w=500&#038;h=173" alt="" title="image001" width="500" height="173" class="alignnone size-full wp-image-716" /></a></p>
<p>I tried with all the settings and Permissions (Manage Personal Views). But no result. After a long search, I found this. It will be useful to someone.</p>
<p><strong>Steps:</strong></p>
<p>1. Click the List link in the Quick Launch.</p>
<p>2. In the Opened page, select Site Actions àEdit Page</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/07/image002.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image002.jpg?w=500" alt="" title="image002"   class="alignnone size-full wp-image-717" /></a></p>
<p>3. Click Add a Web Part.</p>
<p>4. In the Add web Part popup select your List to add as a Web Part.</p>
<p>5. Click Exit EditMode.</p>
<p>6. Now in the Page you will have two webpart. One with View DropDown and another one without the dropdown.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/07/image003.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image003.jpg?w=500&#038;h=232" alt="" title="image003" width="500" height="232" class="alignnone size-full wp-image-718" /></a></p>
<p>7. Now Edit the page and Close the below webpart which contains the View dropdown.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/07/image004.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image004.jpg?w=500" alt="" title="image004"   class="alignnone size-full wp-image-719" /></a></p>
<p>8. Now the expected result will be arrived.</p>
<p><strong>To bring back the Views Drop down:</strong></p>
<p>To bring back the Views drop down we need to follow some set of steps as below.</p>
<p>1. In the List select Settings à Create View.</p>
<p>2. Click “All Items” view from Start from an existing view.</p>
<p>3. Provide the View Name as “All” and check the “Make this the default View”.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/07/image005.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image005.jpg?w=500" alt="" title="image005"   class="alignnone size-full wp-image-720" /></a></p>
<p>4. Click ok and create the view.</p>
<p>5. Now the page will have an extra webpart added and look like this.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/07/image006.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image006.jpg?w=500&#038;h=235" alt="" title="image006" width="500" height="235" class="alignnone size-full wp-image-721" /></a></p>
<p>6. Now again edit the page and delete the webpart one which does not have the drop down.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/07/image007.jpg"><img src="http://rmanimaran.files.wordpress.com/2011/07/image007.jpg?w=500" alt="" title="image007"   class="alignnone size-full wp-image-722" /></a></p>
<p>7. Now the page will have the list with views drop down.</p>
<p>8. Then I changed the View from “All” to “All Items”. My DropDown again went off. To Correct this we need to have the help of SharePoint Designer.</p>
<p>1. Open the SharePoint Site in SharePoint Designer.</p>
<p>2. Go to List and select the List that you are currently working.</p>
<p>3. You will have the following following aspx pages.</p>
<p>a. AllItems.aspx</p>
<p>b. All.aspx (The view you created based on AllItems)</p>
<p>c. DispForm.aspx</p>
<p>d. EditForm.aspx</p>
<p>e. NewForm.aspx</p>
<p>4. Now Delete the AllItems.aspx. Before Deleting you have a copy of this view.(Here we have All.aspx which is the copy of All Items view. If you do not have the create a view on the page based on All Items view).</p>
<p>5. Now go to SharePoint site in browser and create a new View based on view name “All” which we created earlier.</p>
<p>6. Set that View as default view. Now we got back the View drop down.</p>
<p>7. Now the another problem. The view you have deleted i..e All Items is set default before you may lose the link in Quick launch.</p>
<p><strong>To Restore the Quick launch link.</strong></p>
<p>1. Go the List and select List Settings.</p>
<p>2. Click Title,Description and Navigation link under General Settings.</p>
<p>3. Under Navigation select Yes checkbox on “Display this list on the Qucik Launch”.</p>
<p>4. Now the List’s link will appear in Qucik launch.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/715/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=715&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/07/15/hidding-and-restoring-views-dropdown-in-the-sharepoint-2007-list-using-ootb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image001.jpg" medium="image">
			<media:title type="html">image001</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image002.jpg" medium="image">
			<media:title type="html">image002</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image003.jpg" medium="image">
			<media:title type="html">image003</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image004.jpg" medium="image">
			<media:title type="html">image004</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image005.jpg" medium="image">
			<media:title type="html">image005</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image006.jpg" medium="image">
			<media:title type="html">image006</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/image007.jpg" medium="image">
			<media:title type="html">image007</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Lambda Select,Where methods in SharePoint 2007 List Items</title>
		<link>http://rmanimaran.wordpress.com/2011/07/14/using-lambda-selectwhere-methods-in-sharepoint-2007-list-items/</link>
		<comments>http://rmanimaran.wordpress.com/2011/07/14/using-lambda-selectwhere-methods-in-sharepoint-2007-list-items/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 15:54:16 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Lambda Expression]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Select]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Where]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=704</guid>
		<description><![CDATA[Lambda Expression contains lot of extended methods which works on collection. Here I have tried Select and Where method to fetch items from the SharePoint List. SharePoint List : Selecting Single value: Here .Select returns IEnumerable collection which can be Iterated using foreach If we want .Select to return the SPListItem object then the statement [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=704&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lambda Expression contains lot of extended methods which works on collection. Here I have tried Select and Where method to fetch items from the SharePoint List.</p>
<p>SharePoint List :<br />
<a href="http://rmanimaran.files.wordpress.com/2011/07/externalpeople.png"><img src="http://rmanimaran.files.wordpress.com/2011/07/externalpeople.png?w=500&#038;h=144" alt="" title="externalPeople" width="500" height="144" class="aligncenter size-full wp-image-707" /></a></p>
<p>Selecting Single value:</p>
<p><pre class="brush: csharp;">
using (SPSite oSPSite = new SPSite(&quot;http://Moss2007Server&quot;))
{
 using (SPWeb oSPWeb = oSPSite.OpenWeb())
    {
     SPList myList = oSPWeb.Lists
                           .Cast&lt;SPList&gt;()
                           .FirstOrDefault(l =&gt; 
                      Convert.ToString(l.Title) == &quot;ExternalPeople&quot;);

if (myList != null)
       {
        var names = myList.Items.Cast&lt;SPListItem&gt;()
         .Where(itm =&gt; Convert.ToString(itm[&quot;Qualification&quot;]) == &quot;BE&quot;)                                                                                
         .Select(itm =&gt; Convert.ToString(itm[&quot;Title&quot;]));
                                
        foreach (string str in names)
         {
           Console.WriteLine(str);
         }
 }
    }
}
</pre></p>
<p>Here .Select returns IEnumerable collection which can be Iterated using foreach<br />
If we want .Select to return the SPListItem object then the statement should be like this.</p>
<p>Selecting Object:<br />
<pre class="brush: csharp;">
var namesSPListItem = myList.Items.Cast&lt;SPListItem&gt;()
            .Where(itm =&gt; Convert.ToString(itm[&quot;Qualification&quot;]) == &quot;BE&quot;)                                                                               
                     .Select(itm =&gt; itm);                        
Console.WriteLine(&quot;************** Return as SPListItem **************&quot;);
foreach (SPListItem item in namesSPListItem)
{
   Console.WriteLine(&quot;First Name:&quot;+item[&quot;Title&quot;]);
   Console.WriteLine(&quot;Last Name:&quot;+item[&quot;Last Name&quot;]);
}
</pre></p>
<p>In the single value selection, we did not know what str is containing (whether FirstName or LastName). To have some readable and easily understandale we can change the above to use new operator along with .Select as below<br />
<pre class="brush: csharp;">
var items = myList.Items
.Cast&lt;SPListItem&gt;()
.Where(itm =&gt; Convert.ToString(itm[&quot;Qualification&quot;]) == &quot;BE&quot;)
            .Select(n =&gt; 
                 new {
                        FirstName = Convert.ToString(n[&quot;Title&quot;]),
                        LastName  =Convert.ToString(n[&quot;Last Name&quot;])
                       }
  );
</pre><br />
So in the Foreach we can use the above variables as below.<br />
<pre class="brush: csharp;">
foreach (var item in items)
{
  Console.WriteLine(&quot;First Name:&quot;+item.FirstName);
  Console.WriteLine(&quot;Last Name:&quot;+item.LastName);
}
</pre><br />
LINQ has a option to declare a temparory variable using let. This can be done in Lambda expression as below. In the following I would like to concat the FirstName, LastName and return as FullName.<br />
<pre class="brush: csharp;">
var items1 = myList.Items.Cast&lt;SPListItem&gt;()
               .Where(itm =&gt; Convert.ToString(itm[&quot;Qualification&quot;]) ==&quot;BE&quot;)
                .Select(n =&gt; 
             new {
                   FullName=string.Concat(n[&quot;Title&quot;],&quot; &quot;,n[&quot;Last  Name&quot;])
                 }
    );
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/704/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=704&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/07/14/using-lambda-selectwhere-methods-in-sharepoint-2007-list-items/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>13.030636 80.202757</georss:point>
		<geo:lat>13.030636</geo:lat>
		<geo:long>80.202757</geo:long>
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/externalpeople.png" medium="image">
			<media:title type="html">externalPeople</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Community Contributor Award 2011</title>
		<link>http://rmanimaran.wordpress.com/2011/07/11/microsoft-community-contributor-award-2011/</link>
		<comments>http://rmanimaran.wordpress.com/2011/07/11/microsoft-community-contributor-award-2011/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 17:03:45 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Community Contributor]]></category>
		<category><![CDATA[MSDN Forums]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=693</guid>
		<description><![CDATA[Hi all, I happy to share that my contributions to the MSDN forums is recognized by Microsoft and honored me with the award &#8220;Microsoft Community Contributor 2011&#8243;. Thanks to Microsoft Online  support &#38; community and the one who referred me. I really like to thank Aravind who encouraged me and helped to achieve this award.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=693&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>I happy to share that my contributions to the MSDN forums is recognized by Microsoft and honored me with the award &#8220;Microsoft Community Contributor 2011&#8243;. Thanks to Microsoft Online  support &amp; community and the one who referred me.</p>
<p>I really like to thank <a title="Aravind" href="http://aravindrises.blogspot.com/" target="_blank">Aravind</a> who encouraged me and helped to achieve this award.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/07/mcc11_social-media_logo.png"><img class="aligncenter size-full wp-image-694" title="MCC11_Social Media_Logo" src="http://rmanimaran.files.wordpress.com/2011/07/mcc11_social-media_logo.png?w=500&#038;h=210" alt="" width="500" height="210" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/693/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=693&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/07/11/microsoft-community-contributor-award-2011/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<georss:point>13.030636 80.202757</georss:point>
		<geo:lat>13.030636</geo:lat>
		<geo:long>80.202757</geo:long>
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/07/mcc11_social-media_logo.png" medium="image">
			<media:title type="html">MCC11_Social Media_Logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Selecting Random ListItems from SharePoint List using Lambda Expression</title>
		<link>http://rmanimaran.wordpress.com/2011/06/23/selecting-random-listitems-from-sharepoint-list-using-lambda-expression/</link>
		<comments>http://rmanimaran.wordpress.com/2011/06/23/selecting-random-listitems-from-sharepoint-list-using-lambda-expression/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 07:11:40 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Lambda Expression]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=665</guid>
		<description><![CDATA[Selecting Random ListItems I have a list with the following list items. I need to select the records in the list on a Random fashion. I have tried in Lambda and get it done. It will be useful to someone. The Output will be as below<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=665&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4><span style="color:#0000ff;">Selecting Random ListItems</span></h4>
<p>I have a list with the following list items. I need to select the records in the list on a Random fashion. I have tried in Lambda and get it done. It will be useful to someone.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/06/listdata.png"><img class="aligncenter size-full wp-image-667" title="ListData" src="http://rmanimaran.files.wordpress.com/2011/06/listdata.png?w=500" alt=""   /></a></p>
<p><pre class="brush: csharp;">
SPList myList = oSPWeb.Lists.Cast()
                            .FirstOrDefault(l =&gt; l.Title == &quot;Test&quot;);

 if (myList != null)
  {
  SPQuery query = new SPQuery();
  Random rnd = new Random();
  IOrderedEnumerable&lt;SPListItem&gt; Items = myList.GetItems(query)
                                             .Cast(&lt;SPListItem&gt;)
                                             .AsEnumerable()
                                             .OrderBy((i =&gt; rnd.Next()));

         foreach (SPListItem item in Items)
         {
           Console.WriteLine(item[SPBuiltInFieldId.Title].ToString());
         }
}
</pre></p>
<p>The Output will be as below<br />
<a href="http://rmanimaran.files.wordpress.com/2011/06/randomoutput.png"><br />
<img class="aligncenter size-full wp-image-668" title="RandomOutput" src="http://rmanimaran.files.wordpress.com/2011/06/randomoutput.png?w=500&#038;h=150" alt="" width="500" height="150" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/665/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=665&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/06/23/selecting-random-listitems-from-sharepoint-list-using-lambda-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>13.030636 80.202757</georss:point>
		<geo:lat>13.030636</geo:lat>
		<geo:long>80.202757</geo:long>
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/06/listdata.png" medium="image">
			<media:title type="html">ListData</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/06/randomoutput.png" medium="image">
			<media:title type="html">RandomOutput</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2007: Delete Quick Launch nodes recursively</title>
		<link>http://rmanimaran.wordpress.com/2011/05/31/sharepoint-2007-delete-quick-launch-nodes-recursively/</link>
		<comments>http://rmanimaran.wordpress.com/2011/05/31/sharepoint-2007-delete-quick-launch-nodes-recursively/#comments</comments>
		<pubDate>Tue, 31 May 2011 17:49:04 +0000</pubDate>
		<dc:creator>R Manimaran</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Delete Quick Launch Nodes]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>

		<guid isPermaLink="false">http://rmanimaran.wordpress.com/?p=652</guid>
		<description><![CDATA[In SharePoint 2007, I have Navigation as shown below. I need to delete all the navigation recursively. I here wrote a utility method which will delete all the nodes (both Heading and child Nodes). Call the method DeleteNavigation will delete all the nodes recursively.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=652&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In SharePoint 2007, I have Navigation as shown below. I need to delete all the navigation recursively.</p>
<p><a href="http://rmanimaran.files.wordpress.com/2011/05/navigation.png"><img class="aligncenter size-full wp-image-653" title="Navigation" src="http://rmanimaran.files.wordpress.com/2011/05/navigation.png?w=500" alt=""   /></a></p>
<p>I here wrote a utility method which will delete all the nodes (both Heading and child Nodes).</p>
<p><pre class="brush: csharp;">

public static void DeleteNavigation()

{

using (SPSite site = new SPSite(&quot;http://maran&quot;))

{

using (SPWeb web = site.OpenWeb())

{

SPNavigationNodeCollection collec = web.Navigation.QuickLaunch;

for (int i = collec.Count - 1; i &gt;0; i--)

{

int cntChildren = collec[i].Children.Count;

DeleteNavigationRecursively(collec[i]);

if (cntChildren &gt; 0)

{

//Delete the Root Node

Console.WriteLine(&quot;Deleting Node:&quot;+collec[i].Title);

collec[i].Delete();

}

}

}

}

}

private static void DeleteNavigationRecursively(SPNavigationNode node)

{

if (node.Children.Count == 0)

{

Console.WriteLine(&quot;Deleting Node:&quot; + node.Title);

node.Delete();

}

else

{

for (int j = node.Children.Count - 1; j &gt;= 0; j--)

{

DeleteNavigationRecursively(node.Children[j]);

}

}

}

</pre></p>
<p>Call the method DeleteNavigation will delete all the nodes recursively.</p>
<div><a title="Like this at Facebook" href="http://www.facebook.com/plugins/like.php?href=PASTE-POST-URL&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light"><img title="Like this at Facebook!" src="http://shongjog.files.wordpress.com/2010/06/facebook-like-button.jpg?w=49&#038;h=24" alt="Like this at Facebook!" width="49" height="24" /></a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rmanimaran.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rmanimaran.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rmanimaran.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rmanimaran.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rmanimaran.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rmanimaran.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rmanimaran.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rmanimaran.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rmanimaran.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rmanimaran.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rmanimaran.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rmanimaran.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rmanimaran.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rmanimaran.wordpress.com/652/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rmanimaran.wordpress.com&amp;blog=444329&amp;post=652&amp;subd=rmanimaran&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rmanimaran.wordpress.com/2011/05/31/sharepoint-2007-delete-quick-launch-nodes-recursively/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>13.030636 80.202757</georss:point>
		<geo:lat>13.030636</geo:lat>
		<geo:long>80.202757</geo:long>
		<media:content url="http://1.gravatar.com/avatar/5fdd8f9f4db44940b9471da982804e2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">rmanimaran</media:title>
		</media:content>

		<media:content url="http://rmanimaran.files.wordpress.com/2011/05/navigation.png" medium="image">
			<media:title type="html">Navigation</media:title>
		</media:content>

		<media:content url="http://shongjog.files.wordpress.com/2010/06/facebook-like-button.jpg" medium="image">
			<media:title type="html">Like this at Facebook!</media:title>
		</media:content>
	</item>
	</channel>
</rss>
