<?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>Bharath&#039;s Blog</title>
	<atom:link href="http://bharathph.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bharathph.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sun, 01 Jan 2012 20:49:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bharathph.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Bharath&#039;s Blog</title>
		<link>http://bharathph.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bharathph.wordpress.com/osd.xml" title="Bharath&#039;s Blog" />
	<atom:link rel='hub' href='http://bharathph.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SharePoint 2010 Service Accounts: Part 1</title>
		<link>http://bharathph.wordpress.com/2012/01/01/test/</link>
		<comments>http://bharathph.wordpress.com/2012/01/01/test/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 20:15:12 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Active Direcctory]]></category>
		<category><![CDATA[Domain Accounts]]></category>
		<category><![CDATA[Service Accounts]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">https://bharathph.wordpress.com/?p=187</guid>
		<description><![CDATA[The SharePoint 2010 provides multiple services which are managed by multiple service accounts. Which once you need before the installation of SharePoint depends on what services do you need. This post covers minimum necessary account for basic installation. Since SharePoint &#8230; <a href="http://bharathph.wordpress.com/2012/01/01/test/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=187&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Verdana">The SharePoint 2010 provides multiple services which are managed by multiple service accounts. Which once you need before the installation of SharePoint depends on what services do you need. This post covers minimum necessary account for basic installation.</p>
<p>Since SharePoint shows close relationship with SQL Server and Active Directory(AD) , AD provides identity and authentication services for SharePoint. In brief , AD stores user accounts and passwords and validates account logons. SQL Server stores almost all the configuration information of SharePoint(SP) farm. So in order to support the administration and services of SQL Server and SP , identities needs to be created in AD and proper permissions must be granted. Here it is important to adhere to the security practices of <strong><em>least privilege</em></strong>.&nbsp; Following accounts need to be created as Domain accounts before the basic installation of SP:<br />&nbsp;&nbsp;&nbsp; </font>
<ul>
<li><font face="Verdana">SharePoint setup user and administration: SP_Admin</font>
<li><font face="Verdana">SharePoint farm account: SP_Farm</font>
<li><font face="Verdana">SQL Server Administration account: SQL_Admin</font>
<li><font face="Verdana">SQL Server service account: SQL_Service</font>
<li><font face="Verdana">Web Application pool account(s) : SP_WebApp</font></li>
</ul>
<p><font face="Verdana">TODO during creation of above domain accounts in AD:</font></p>
<ul>
<li><font face="Verdana">Store accounts in separate organizational unit(OU).</font>
<li><font face="Verdana">Try to follow a good naming convention for each account like starting with SP(for SharePoint) or SQL (for SQL Server).</font>
<li><font face="Verdana">Make sure to follow proper security for accounts like expiration. SP can detect security changes in AD from SharePoint central administration.</font>
<li><font face="Verdana">Provide least privileges to these accounts.</font></li>
</ul>
<p><font face="Verdana"><em><font color="#c0504d">In my next post I will explain the importance of each account for proper function of SharePoint within a farm</font></em>.</font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=187&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2012/01/01/test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>
	</item>
		<item>
		<title>Binary App Solutions</title>
		<link>http://bharathph.wordpress.com/2011/09/13/binary-app-solutions/</link>
		<comments>http://bharathph.wordpress.com/2011/09/13/binary-app-solutions/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 19:01:00 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://bharathph.wordpress.com/2011/09/23/binary-app-solutions/</guid>
		<description><![CDATA[I recently started a sole Proprietorship company. Here is the link http://www.binaryapp.net<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=184&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently started a sole Proprietorship company. Here is the link</p>
<p><a href="http://www.binaryapp.net/">http://www.binaryapp.net</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=184&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2011/09/13/binary-app-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>
	</item>
		<item>
		<title>C# Parameter Modifiers Part 2</title>
		<link>http://bharathph.wordpress.com/2011/08/09/c-parameter-modifiers-part-2/</link>
		<comments>http://bharathph.wordpress.com/2011/08/09/c-parameter-modifiers-part-2/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 15:35:32 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Modifiers]]></category>
		<category><![CDATA[parameter]]></category>
		<category><![CDATA[ref]]></category>
		<category><![CDATA[ValueType]]></category>

		<guid isPermaLink="false">https://bharathph.wordpress.com/2011/08/09/c-parameter-modifiers-part-2/</guid>
		<description><![CDATA[3. Using ref Modifier C# ref parameters are useful when you want the method to change the values of various data points declared in callers scope. So what’s the difference between ref&#160; and out&#160; modifiers ?Output parameters need not be &#8230; <a href="http://bharathph.wordpress.com/2011/08/09/c-parameter-modifiers-part-2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=178&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Verdana"><strong>3. Using ref Modifier</p>
<p></strong>C# ref parameters are useful when you want the method to change the values of various data points declared in callers scope. </p>
<p></font></p>
<p><font face="Verdana"><font color="#f79646">So what’s the difference between <strong>ref</strong>&nbsp; and <strong>out</strong>&nbsp; modifiers ?</font><br />Output parameters need not be initialized before passing it to a method. The calling method initializes the value for the parameter. Where as , the reference parameters need to be initialized before sending. This is because, the called method need to get the reference to the parameter and no reference is created unless a variable is initialized.</p>
<p><font color="#f79646"><strong><u>Coding:<br /></u></strong><font color="#000000"><br />Lets create a static method which takes two strings and interchanges their values.</p>
<p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:'Courier New', courier, monospace;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> RefParameterExample(<span style="color:#0000ff;">ref</span> <span style="color:#0000ff;">string</span> firstName, <span style="color:#0000ff;">ref</span> <span style="color:#0000ff;">string</span> LastName)      {

          <span style="color:#0000ff;">string</span> tempString = firstName;

          firstName = LastName;

          LastName = tempString;

      }</pre>
</p>
<p>The above method interchanges the value assigned by calling method to first name and last name. Lets call the above method with following code.</p>
<p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:'Courier New', courier, monospace;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> TestRefParameterModifier()        {

            Console.WriteLine(<span style="color:#006080;">"------ Using  ref Modifiers-------"</span>);

            <span style="color:#0000ff;">string</span> firstName, LastName;

            firstName = <span style="color:#006080;">"Bill"</span>;

            LastName = <span style="color:#006080;">"Gates"</span>;

            Console.WriteLine(<span style="color:#006080;">"Before Call"</span>);

            Console.WriteLine(<span style="color:#006080;">" First Name is {0} and Last Name is {1}"</span>, firstName, LastName);

            <span style="color:#008000;">// Lets call the RefParameterExample which interchanges the first name and last name</span>

            CodeSample.RefParameterExample(<span style="color:#0000ff;">ref</span> firstName, <span style="color:#0000ff;">ref</span> LastName);

            Console.WriteLine(<span style="color:#006080;">"After Call"</span>);

            Console.WriteLine(<span style="color:#006080;">" First Name is {0} and Last Name is {1}"</span>, firstName, LastName);

            Console.ReadKey();

        }</pre>
</p>
<p><font color="#f79646"></p>
<p><strong><u>Output:<br /></u><br /></strong><a href="http://bharathph.files.wordpress.com/2011/08/image3.png"><strong><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://bharathph.files.wordpress.com/2011/08/image_thumb3.png?w=388&#038;h=87" width="388" height="87"></strong></a></p>
<p><font color="#000000" face="Verdana"><strong>4. Using params Modifier</p>
<p></strong></font></p>
<p><font color="#000000">With the use of params keyword, you can make a method accept a variable number of parameters(of same type) as a single logical parameter. Also, the arguments marked with params keyboard can accept comma deliminated values or strongly types array.</font><br /><font color="#000000"></p>
<p><font color="#f79646"><u><strong>Coding</p>
<p></strong></u><font color="#000000">Suppose you want to define a method which can find average of numbers&nbsp; that are passed though a calling method. Here is the sample code for the method using the params modifier.</font></font></p>
<p><font color="#f79646"><font color="#000000"></p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:'Courier New', courier, monospace;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">double</span>  paramsParamterExample(<span style="color:#0000ff;">params</span> <span style="color:#0000ff;">double</span>[] values)    {

        <span style="color:#0000ff;">double</span> total = 0;

        <span style="color:#0000ff;">if</span> (values.Length == 0)

            <span style="color:#0000ff;">return</span> total;

        <span style="color:#0000ff;">for</span>(<span style="color:#0000ff;">int</span> i =0; i &lt; values.Length ; i++)

        {

            total += values[i];

        }

        <span style="color:#0000ff;">return</span> total / values.Length;

    }</pre>
<p></div>
<p>The above method can be called with following code:</p>
<p></font><font color="#000000"></p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:101.19%;font-family:'Courier New', courier, monospace;direction:ltr;height:205px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:75.96%;font-family:'Courier New', courier, monospace;direction:ltr;height:234px;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> TestParamsParamterModifier()       {

           Console.WriteLine(<span style="color:#006080;">"------ Using  params Modifiers-------"</span>);

           Console.WriteLine(<span style="color:#006080;">"------ Testing with comma deliminated values-------"</span>);

           <span style="color:#008000;">// CodeSample.paramsParamterExample(2.3, 3.4, 55.6) would give error if the method was defined with params keywaord</span>

           Console.WriteLine(<span style="color:#006080;">" Average of 2.3,3.4,55.6 is {0}"</span>, CodeSample.paramsParamterExample(2.3, 3.4, 55.6));

           Console.WriteLine(<span style="color:#006080;">"------ Testing with strongly types array of double-------"</span>);

           <span style="color:#0000ff;">double</span>[] thisArray = { 3.4, 5.4, 1.2, 6.6 };

           Console.WriteLine(<span style="color:#006080;">"Average is {0}"</span>, CodeSample.paramsParamterExample(thisArray));

           Console.ReadKey();

       }</pre>
<p></div>
<p><font color="#000000"></font>&nbsp;</p>
<p><font color="#000000">Here comes the output for above code:</p>
<p><font color="#f79646"><u><strong>Coding</p>
<p><a href="http://bharathph.files.wordpress.com/2011/08/image4.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://bharathph.files.wordpress.com/2011/08/image_thumb4.png?w=483&#038;h=76" width="483" height="76"></a></p>
<p></strong></u></font></p>
<p></font>This concludes the discussion on C# modifiers. Having the knowledge of C# modifiers greatly helps in using proper techniques while passing the data.<br /><font color="#000000"></p>
<p></font></font></font></p>
<p></font></font></font></font></font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=178&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2011/08/09/c-parameter-modifiers-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/08/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/08/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>C# Parameter Modifiers Part 1</title>
		<link>http://bharathph.wordpress.com/2011/08/08/c-parameter-modifiers-part-1/</link>
		<comments>http://bharathph.wordpress.com/2011/08/08/c-parameter-modifiers-part-1/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 16:04:25 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Modifiers]]></category>
		<category><![CDATA[out]]></category>
		<category><![CDATA[ValueType]]></category>

		<guid isPermaLink="false">https://bharathph.wordpress.com/2011/08/08/c-parameter-modifiers-part-1/</guid>
		<description><![CDATA[&#160; Keywords are used to control how the parameters are passed to the method in C#. These can be categorized into “out”,”ref” and “params”. Parameters can also be skipped with modifiers. Following section will explain more about each of the &#8230; <a href="http://bharathph.wordpress.com/2011/08/08/c-parameter-modifiers-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=170&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeSnippetWrapper">&nbsp;</div>
<div><font face="Verdana">Keywords are used to control how the parameters are passed to the method in C#. These can be categorized into “out”,”ref” and “params”. Parameters can also be skipped with modifiers. Following section will explain more about each of the modifier type used in C#.</p>
<p><strong>1. Using no Modifiers</strong><br /></font></div>
<p><font face="Verdana">When a parameter is not marked with any modifiers, the called method receives the copy of the original data. This is also the default type of passing a parameter to methods.</p>
<p><strong><font color="#f3a447"><u>Coding:</u><br /></font></strong><br />Lets create a static function which takes in 2 numbers&nbsp; and returns the multiplication of 2 numbers.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:'Courier New', courier, monospace;direction:ltr;height:260px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:91.24%;font-family:'Courier New', courier, monospace;direction:ltr;height:154px;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">class</span> CodeSample    {

      <span style="color:#0000ff;">public</span>  <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">int</span> Multiply(<span style="color:#0000ff;">int</span> x, <span style="color:#0000ff;">int</span> y)        {

            <span style="color:#0000ff;">int</span> answer = x * y;

            <span style="color:#008000;">// following changes will not be seen on main function</span>

            x = 12;            y = 56;

            <span style="color:#008000;">// end of comment</span>

            <span style="color:#0000ff;">return</span> answer;

        }    }</pre>
<p></div>
<div>&nbsp;</div>
<div id="codeSnippetWrapper">Since the numerical data falls under value types, the caller of the method will be unaware if the values are changed within the called method. Lets call the above function from main method with following code.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:'Courier New', courier, monospace;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:94.69%;font-family:'Courier New', courier, monospace;direction:ltr;height:150px;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> TestNoModifier()       {

           Console.WriteLine(<span style="color:#006080;">"------ Using No Modifiers-------"</span>);

           <span style="color:#0000ff;">int</span> x = 10;           <span style="color:#0000ff;">int</span> y = 34;

           Console.WriteLine(<span style="color:#006080;">" Before call : X = {0}, Y= {1}"</span>, x, y);

           Console.WriteLine(<span style="color:#006080;">" Multiplied Value = {0}"</span>, CodeSample.Multiply(x, y));

           Console.WriteLine(<span style="color:#006080;">" After call : X = {0}, Y= {1}"</span>, x, y);

           Console.ReadKey();

       }</pre>
<p></div>
<p></font></div>
<p><font face="Verdana"></p>
<div id="codeSnippetWrapper">&nbsp;</div>
<p></font></p>
<p><font color="#f79646" face="Verdana"><strong><u>Output<br /><a href="http://bharathph.files.wordpress.com/2011/08/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://bharathph.files.wordpress.com/2011/08/image_thumb.png?w=392&#038;h=96" width="392" height="96"></a></p>
<p></u></strong></font></p>
<p><font face="Verdana">As expected the values of X and Y remain the same before and after the call.</font></p>
<p><font face="Verdana"><strong>2. Using out Modifiers</p>
<p></strong>Methods that receive the parameters with <em><strong>out</strong></em>&nbsp; keyword defined in the parameter are obligated to assign an appropriate value before exiting the method. Failure to do so will result in compiler error.</p>
<p></font></p>
<p><strong><font color="#f3a447"><u>Coding:</u><br /></font></strong></p>
<p><font face="Verdana">Lets modify the <strong>Multiply</strong>&nbsp; method above to take parameters with <strong>out</strong>&nbsp; keyword.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:'Courier New', courier, monospace;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:89.07%;font-family:'Courier New', courier, monospace;direction:ltr;height:47px;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> MultiplyForOutModifier(<span style="color:#0000ff;">int</span> x, <span style="color:#0000ff;">int</span> y, <span style="color:#0000ff;">out</span> <span style="color:#0000ff;">int</span> ans)

      {

          ans = x * y;

     }</pre>
<p></div>
<p>Note that method does not have any <strong>return type.</strong> The result of multiplication is assigned to variable <strong>ans</strong>&nbsp; which is defined using <strong>out</strong>&nbsp; modifier. The local variables x and y need not be reassigned with value since they are not defined with <strong>out</strong>&nbsp; modifier.</p>
<p>Lets call the above method from main program.<br />In the below code the variable <strong>ans</strong>&nbsp; is sent by prefixing it with <strong>out</strong>&nbsp; modifier.</p>
<div id="codeSnippetWrapper">
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:'Courier New', courier, monospace;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> TestOutModifier()           {

            Console.WriteLine(<span style="color:#006080;">"------ Using Out Modifiers-------"</span>);

            <span style="color:#0000ff;">int</span> x = 10;            <span style="color:#0000ff;">int</span> y = 45;

            <span style="color:#0000ff;">int</span> ans;

            CodeSample.MultiplyForOutModifier(x, y, <span style="color:#0000ff;">out</span> ans);

            Console.WriteLine(<span style="color:#006080;">" 10 * 45 = {0}"</span>, ans);

            Console.ReadKey();

       }</pre>
<p></div>
<p></div>
<p><font color="#f79646" face="Verdana"><strong><u>Output<br /></u></strong><a href="http://bharathph.files.wordpress.com/2011/08/image1.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://bharathph.files.wordpress.com/2011/08/image_thumb1.png?w=423&#038;h=83" width="423" height="83"></a></p>
<p><font color="#000000">The C# <strong>out</strong>&nbsp; modifier also helps in returning multiple return values to the calling function. Here is the sample code for the same;</p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:'Courier New', courier, monospace;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> ReturnMultipleValues(<span style="color:#0000ff;">out</span> <span style="color:#0000ff;">int</span> a, <span style="color:#0000ff;">out</span> <span style="color:#0000ff;">string</span> name, <span style="color:#0000ff;">out</span> <span style="color:#0000ff;">bool</span> val)     {

         a = 12;

         name = <span style="color:#006080;">"Marsh"</span>;

         val = <span style="color:#0000ff;">false</span>;

     }</pre>
<p></div>
<p>The above method can be called by following code.</p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:'Courier New', courier, monospace;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> TestMultipleOutModifier()       {

           Console.WriteLine(<span style="color:#006080;">"------ Using  Out Modifiers-------"</span>);

           <span style="color:#0000ff;">int</span> b;

           <span style="color:#0000ff;">string</span> thisString;

           <span style="color:#0000ff;">bool</span> isStrue;

           CodeSample.ReturnMultipleValues(<span style="color:#0000ff;">out</span> b, <span style="color:#0000ff;">out</span> thisString, <span style="color:#0000ff;">out</span> isStrue);

           Console.WriteLine(<span style="color:#006080;">" B value = {0}"</span>, b);

           Console.WriteLine(<span style="color:#006080;">" thisStrin = {0}"</span>, thisString);

           Console.WriteLine(<span style="color:#006080;">" isStrue = {0}"</span>, isStrue);

           Console.ReadKey();

       }</pre>
<p></div>
<p></font></font></font></p>
<p><font color="#f79646" face="Verdana"><strong><u>Output<br /></u></strong></font><a href="http://bharathph.files.wordpress.com/2011/08/image2.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://bharathph.files.wordpress.com/2011/08/image_thumb2.png?w=358&#038;h=84" width="358" height="84"></a><font face="Verdana"><font color="#f79646" face="Verdana"> </p>
<p></font>Always remember that method that defines the output parameters <strong>must</strong>&nbsp; assign the parameter to a valid value. Following method will result in compiler error since&nbsp; variable <strong>a</strong>&nbsp; is unassigned.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:94.87%;font-family:'Courier New', courier, monospace;direction:ltr;height:79px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:88.79%;font-family:'Courier New', courier, monospace;direction:ltr;height:49px;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> MethodWithError(<span style="color:#0000ff;">out</span> <span style="color:#0000ff;">int</span> a)      {

          Console.WriteLine(<span style="color:#006080;">" This will result in Error"</span>);      }</pre>
<p></div>
<p>In part 2 of C# modifier I will explain <strong>ref</strong>&nbsp; and <strong>params</strong>&nbsp; modifiers.<br /></font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=170&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2011/08/08/c-parameter-modifiers-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/08/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/08/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/08/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Stack Exchange API Photo stats using iPhone SDK</title>
		<link>http://bharathph.wordpress.com/2011/07/12/stack-exchange-api-photo-stats-using-iphone-sdk/</link>
		<comments>http://bharathph.wordpress.com/2011/07/12/stack-exchange-api-photo-stats-using-iphone-sdk/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 20:45:36 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[Iphone]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Objective C]]></category>
		<category><![CDATA[Photo]]></category>
		<category><![CDATA[Stack Exchange API]]></category>

		<guid isPermaLink="false">http://bharathph.wordpress.com/?p=152</guid>
		<description><![CDATA[The project I am working on required me to pull the statistical data from stack exchange API. I needed to pull the data for photography category of stack exchange website. Here comes a code to pull statistical data using iphone &#8230; <a href="http://bharathph.wordpress.com/2011/07/12/stack-exchange-api-photo-stats-using-iphone-sdk/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=152&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The project I am working on required me to pull the statistical data from stack exchange API. I needed to pull the data for photography category of stack exchange website. Here comes a code to pull statistical data using iphone sdk.</p>
<p>In order for this code to work you need to have added the TouchJson frame work to your iphone project.</p>
<p>To learn more about the usage of photo API please visit api.photo.stachexchange.com/1.1/usage. The following code returns an NSMutableArray with required statistical data.</p>
<p style="font:11px Menlo;margin:0;">+(<span style="color:#7a0eac;">NSMutableArray</span> *)getStatsData {</p>
<p style="font:11px Menlo;color:#df0002;margin:0;"><span style="color:#7a0eac;">NSString</span><span style="color:#000000;"> *searchString = </span>@&#8221;http://api.photo.stackexchange.com/1.1/stats&#8221;<span style="color:#000000;">;</span></p>
<p style="font:11px Menlo;color:#008d00;margin:0;">// Execute search by performing an HTTP GET to the REST web service which returns JSON</p>
<p style="font:11px Menlo;margin:0;"><span style="color:#7a0eac;">NSString</span> *jsonString = [<span style="color:#c900a4;">self</span> <span style="color:#275a5e;">jsonFromURLString</span>:searchString];</p>
<p style="font:11px Menlo;color:#450084;margin:0;"><span style="color:#7a0eac;">NSData</span><span style="color:#000000;"> *jsonData = [jsonString </span>dataUsingEncoding<span style="color:#000000;">:</span>NSUTF32BigEndianStringEncoding<span style="color:#000000;">];</span></p>
<p style="font:11px Menlo;color:#008d00;margin:0;">// Parse JSON results with TouchJSON. It converts it into a dictionary.</p>
<p style="font:11px Menlo;color:#438288;margin:0;">CJSONDeserializer<span style="color:#000000;"> *jsonDeserializer = [</span>CJSONDeserializer<span style="color:#275a5e;">deserializer</span><span style="color:#000000;">];</span></p>
<p style="font:11px Menlo;margin:0;"><span style="color:#7a0eac;">NSError</span> *error = <span style="color:#c900a4;">nil</span>;</p>
<p style="font:11px Menlo;margin:0;"><span style="color:#7a0eac;">NSDictionary</span> *resultsDictionary = [jsonDeserializer <span style="color:#275a5e;">deserializeAsDictionary</span>:jsonData <span style="color:#275a5e;">error</span>:&amp;error];</p>
<p style="font:11px Menlo;margin:0;">[<span style="color:#c900a4;">self</span> <span style="color:#275a5e;">handleError</span>:error];</p>
<p style="font:11px Menlo;margin:0;"><span style="color:#7a0eac;">NSArray</span> *tagArray = [resultsDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"statistics"</span>];</p>
<p style="font:11px Menlo;margin:0;"><span style="color:#7a0eac;">NSMutableArray</span> *tagReturnArray = [[[<span style="color:#7a0eac;">NSMutableArray</span> <span style="color:#450084;">alloc</span>] <span style="color:#450084;">init</span>] <span style="color:#450084;">autorelease</span>];</p>
<p style="font:11px Menlo;margin:0;"><span style="color:#c900a4;">for</span> (<span style="color:#7a0eac;">NSDictionary</span> *tagDictionary <span style="color:#c900a4;">in</span> tagArray) {</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"total_questions"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"total_unanswered"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"total_accepted"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"total_answers"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"total_comments"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"total_votes"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"total_users"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"questions_per_minute"</span>]]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"answers_per_minute"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">[tagReturnArray <span style="color:#450084;">addObject</span>:[<span style="color:#7a0eac;">NSString</span> <span style="color:#450084;">stringWithFormat</span>:<span style="color:#df0002;">@"%@"</span>,[tagDictionary <span style="color:#450084;">objectForKey</span>:<span style="color:#df0002;">@"views_per_day"</span>] ]];</p>
<p style="font:11px Menlo;margin:0;">}</p>
<p style="font:11px Menlo;margin:0;"><span style="color:#c900a4;">return</span> tagReturnArray ;</p>
<p style="font:11px Menlo;margin:0;">}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=152&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2011/07/12/stack-exchange-api-photo-stats-using-iphone-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>
	</item>
		<item>
		<title>Demo on Mobile App at Microsoft Conference</title>
		<link>http://bharathph.wordpress.com/2011/05/02/demo-on-mobile-app-at-microsoft-conference/</link>
		<comments>http://bharathph.wordpress.com/2011/05/02/demo-on-mobile-app-at-microsoft-conference/#comments</comments>
		<pubDate>Mon, 02 May 2011 19:07:42 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bharathph.wordpress.com/?p=141</guid>
		<description><![CDATA[I recently got an opportunity to share my work on iPhone mobile application at Microsoft Conference at Redmond, WA. Here comes few pictures from my presentation.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=141&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently got an opportunity to share my work on iPhone mobile application at Microsoft Conference at Redmond, WA. Here comes few pictures from my presentation.<br />

<a href='http://bharathph.wordpress.com/2011/05/02/demo-on-mobile-app-at-microsoft-conference/demo1/' title='demo1'><img data-attachment-id='142' data-orig-size='480,640' data-liked='0'width="112" height="150" src="http://bharathph.files.wordpress.com/2011/05/demo1.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="demo1" title="demo1" /></a>
<a href='http://bharathph.wordpress.com/2011/05/02/demo-on-mobile-app-at-microsoft-conference/demo2/' title='demo2'><img data-attachment-id='143' data-orig-size='480,640' data-liked='0'width="112" height="150" src="http://bharathph.files.wordpress.com/2011/05/demo2.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="demo2" title="demo2" /></a>
<a href='http://bharathph.wordpress.com/2011/05/02/demo-on-mobile-app-at-microsoft-conference/img_0750/' title='IMG_0750'><img data-attachment-id='144' data-orig-size='4272,2848' data-liked='0'width="150" height="100" src="http://bharathph.files.wordpress.com/2011/05/img_0750.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="IMG_0750" title="IMG_0750" /></a>
<a href='http://bharathph.wordpress.com/2011/05/02/demo-on-mobile-app-at-microsoft-conference/img_0754/' title='IMG_0754'><img data-attachment-id='145' data-orig-size='4272,2848' data-liked='0'width="150" height="100" src="http://bharathph.files.wordpress.com/2011/05/img_0754.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="IMG_0754" title="IMG_0754" /></a>
</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=141&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2011/05/02/demo-on-mobile-app-at-microsoft-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/05/demo1.jpg?w=112" medium="image">
			<media:title type="html">demo1</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/05/demo2.jpg?w=112" medium="image">
			<media:title type="html">demo2</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/05/img_0750.jpg?w=150" medium="image">
			<media:title type="html">IMG_0750</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2011/05/img_0754.jpg?w=150" medium="image">
			<media:title type="html">IMG_0754</media:title>
		</media:content>
	</item>
		<item>
		<title>Customize  UITableView in iPhone</title>
		<link>http://bharathph.wordpress.com/2011/03/07/customize-uitableview-in-iphone/</link>
		<comments>http://bharathph.wordpress.com/2011/03/07/customize-uitableview-in-iphone/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 16:14:32 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Customize UITableView]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective C]]></category>
		<category><![CDATA[UITableView]]></category>
		<category><![CDATA[UITableView Delegate]]></category>

		<guid isPermaLink="false">http://bharathph.wordpress.com/?p=122</guid>
		<description><![CDATA[UITableView row can be easily customized by modifying the delegate function of UITableDelegate. Listed below are some modification which can be done to get an impressive tableRow. &#160; 1. To add image to a UITableView. &#160; -(void)tableView: (UITableView*)tableView willDisplayCell: (UITableViewCell*)cell forRowAtIndexPath: &#8230; <a href="http://bharathph.wordpress.com/2011/03/07/customize-uitableview-in-iphone/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=122&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="font:12px Menlo;min-height:13px;margin:0;">UITableView row can be easily customized by modifying the delegate function of UITableDelegate. Listed below are some modification which can be done to get an impressive tableRow.</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">1. To add image to a UITableView.</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">-(<span style="color:#b80fa2;">void</span>)tableView: (<span style="color:#6f32a9;">UITableView</span>*)tableView willDisplayCell: (<span style="color:#6f32a9;">UITableViewCell</span>*)cell</p>
<p style="font:12px Menlo;margin:0;">forRowAtIndexPath: (<span style="color:#6f32a9;">NSIndexPath</span>*)indexPath {</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span><span style="font-family:Georgia, 'Bitstream Charter', serif;line-height:16px;"><span style="color:#6f32a9;"> UIImageView</span> *myImageView = [[<span style="color:#6f32a9;">UIImageView</span> <span style="color:#3c0f81;">alloc</span>] <span style="color:#3c0f81;">initWithImage</span>:[<span style="color:#6f32a9;">UIImage</span> <span style="color:#3c0f81;">imageNamed</span>:<span style="color:#cf231d;">@"tablecell.jpg"</span>]];</span></p>
<p style="font:12px Menlo;margin:0;"><span style="white-space:pre;"> </span>[cell <span style="color:#3c0f81;">setBackgroundView</span>:myImageView];</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">}</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">here &#8220;tablecell.jpg&#8221; is the image which gives the background image for table Row.</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">2. To Change the height of the Table Row</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">- (<span style="color:#6f32a9;">CGFloat</span>)tableView:(<span style="color:#6f32a9;">UITableView</span> *)tableView heightForRowAtIndexPath:(<span style="color:#6f32a9;">NSIndexPath</span> *)indexPath {</p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;margin:0;"><span style="color:#b80fa2;"> return</span> <span style="color:#2500d8;">100.0f</span>;<span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;min-height:13px;margin:0;">}</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">3. To determine number of sections in the Table</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">- (<span style="color:#6f32a9;">NSInteger</span>)numberOfSectionsInTableView:(<span style="color:#6f32a9;">UITableView</span> *)tableView {</p>
<p style="font:12px Menlo;color:#008700;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;"><span style="color:#b80fa2;"> return</span> <span style="color:#2500d8;">count;  // Count is the number of sections you want for the table.</span></p>
<p style="font:12px Menlo;margin:0;">}</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">4. Determine the number of rows for the Table.</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">- (<span style="color:#6f32a9;">NSInteger</span>)tableView:(<span style="color:#6f32a9;">UITableView</span> *)tableView numberOfRowsInSection:(<span style="color:#6f32a9;">NSInteger</span>)section {</p>
<p style="font:12px Menlo;color:#008700;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;color:#508187;margin:0;"><span style="color:#000000;"> </span><span style="color:#b80fa2;"> return</span><span style="color:#000000;"> [</span>photoTitle<span style="color:#000000;"> </span><span style="color:#3c0f81;">count</span><span style="color:#000000;">]; // Here photoTitle is NSArray.</span></p>
<p style="font:12px Menlo;margin:0;">}</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">5. Perform something when a row is selected. The below code is taken from one of my project. You can modify the code as per your requirement.</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">- (<span style="color:#b80fa2;">void</span>)tableView:(<span style="color:#6f32a9;">UITableView</span> *)tableView didSelectRowAtIndexPath:(<span style="color:#6f32a9;">NSIndexPath</span> *)indexPath {</p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;color:#508187;margin:0;"><span style="white-space:pre;"> </span>ViewSinglePhotoViewController<span style="color:#000000;"> *viewcontroller = [[</span>ViewSinglePhotoViewController<span style="color:#000000;"> </span><span style="color:#3c0f81;">alloc</span><span style="color:#000000;">] </span><span style="color:#3c0f81;">initWithNibName</span><span style="color:#000000;">:</span><span style="color:#cf231d;">@&#8221;ViewSinglePhotoViewController&#8221;</span><span style="color:#000000;"> </span><span style="color:#3c0f81;">bundle</span><span style="color:#000000;">:</span><span style="color:#b80fa2;">nil</span><span style="color:#000000;">];</span></p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;margin:0;"><span style="white-space:pre;"> </span><span style="color:#6f32a9;">NSString</span> *passString = [<span style="color:#508187;">LargImgUrl</span> <span style="color:#3c0f81;">objectAtIndex</span>:[indexPath <span style="color:#3c0f81;">row</span>]];</p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;margin:0;"><span style="white-space:pre;"> </span><span style="color:#6f32a9;">NSURL</span> *url = [<span style="color:#6f32a9;">NSURL</span> <span style="color:#3c0f81;">URLWithString</span>:passString];</p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;margin:0;"><span style="white-space:pre;"> </span>viewcontroller.<span style="color:#508187;">myURL</span> = url;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;color:#008700;margin:0;"><span style="color:#000000;"><span style="white-space:pre;"> </span></span><span style="color:#444444;">viewcontroller.<span style="color:#508187;">titleName</span> = [<span style="color:#508187;">photoTitle</span> <span style="color:#3c0f81;">objectAtIndex</span>:[indexPath <span style="color:#3c0f81;">row</span>]];</span></p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;color:#3c0f81;margin:0;"><span style="color:#000000;"><span style="white-space:pre;"> </span>[</span><span style="color:#b80fa2;">self</span><span style="color:#000000;">.</span><span style="color:#6f32a9;">navigationController</span><span style="color:#000000;"> </span>pushViewController<span style="color:#000000;">:viewcontroller </span>animated<span style="color:#000000;">:</span><span style="color:#b80fa2;">YES</span><span style="color:#000000;">];</span></p>
<p style="font:12px Menlo;margin:0;"><span style="white-space:pre;"> </span>[viewcontroller <span style="color:#3c0f81;">release</span>];</p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;margin:0;">}</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">6. Content for a row. Configuring the cell for each row.</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">- (<span style="color:#6f32a9;">UITableViewCell</span> *)tableView:(<span style="color:#6f32a9;">UITableView</span> *)tableView cellForRowAtIndexPath:(<span style="color:#6f32a9;">NSIndexPath</span> *)indexPath {</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;"><span style="color:#b80fa2;">static</span> <span style="color:#6f32a9;">NSString</span> *CellIdentifier = <span style="color:#cf231d;">@&#8221;Cell&#8221;</span>;</p>
<p style="font:12px Menlo;color:#008700;margin:0;"><span style="color:#000000;"> </span></p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="color:#6f32a9;">UITableViewCell</span> *cell = [tableView <span style="color:#3c0f81;">dequeueReusableCellWithIdentifier</span>:CellIdentifier];</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;"><span style="color:#b80fa2;"> if</span> (cell == <span style="color:#b80fa2;">nil</span>) {</p>
<p style="font:12px Menlo;color:#3c0f81;margin:0;"><span style="color:#000000;"> cell = [[[</span><span style="color:#6f32a9;">UITableViewCell</span><span style="color:#000000;"> </span>alloc<span style="color:#000000;">] </span>initWithStyle<span style="color:#000000;">:</span>UITableViewCellStyleDefault       <span style="color:#000000;"> </span>reuseIdentifier<span style="color:#000000;">:CellIdentifier] </span>autorelease<span style="color:#000000;">];</span></p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;"><span style="color:#008700;">//configure cell here </span></p>
<p style="font:12px Menlo;color:#6f32a9;margin:0;"><span style="color:#000000;"><span style="white-space:pre;"> </span></span></p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;margin:0;">}</p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="white-space:pre;"> </span></p>
<p style="font:12px Menlo;color:#008700;margin:0;"><span style="color:#000000;"><span style="white-space:pre;"> </span></span></p>
<p style="font:12px Menlo;min-height:13px;margin:0;"><span style="color:#b80fa2;">return</span> cell;</p>
<p style="font:12px Menlo;min-height:13px;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">}</p>
<p style="font:12px Menlo;margin:0;">&nbsp;</p>
<p style="font:12px Menlo;margin:0;">I explained above some of the important delegate function of UITableViewDelegate which are frequently used. For more information on other delegate function you can check Apple documentation.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=122&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2011/03/07/customize-uitableview-in-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>
	</item>
		<item>
		<title>LINQ To SQL ..Data Model&#8230;!!!</title>
		<link>http://bharathph.wordpress.com/2010/07/01/linq-to-sql-relation-diagram/</link>
		<comments>http://bharathph.wordpress.com/2010/07/01/linq-to-sql-relation-diagram/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 18:43:53 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[LINQ to SQL]]></category>
		<category><![CDATA[NorthWind]]></category>

		<guid isPermaLink="false">https://bharathph.wordpress.com/2010/07/01/linq-to-sql-relation-diagram/</guid>
		<description><![CDATA[LINQ , stands for Language Integrated Query. LINQ can be used with any data source. LINQ provides full type safety and compile time checking of query results.LINQ to SQL is an object relation mapping implementation that ships in .Net framework &#8230; <a href="http://bharathph.wordpress.com/2010/07/01/linq-to-sql-relation-diagram/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=98&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Arial" size="2">LINQ , stands for Language Integrated Query. LINQ can be used with any data source. LINQ provides full type safety and compile time checking of query results.<br />LINQ to SQL is an object relation mapping implementation that ships in .Net framework which allows to model a relational database using a .Net class. We can then query the database using the LINQ as update/insert/delete data from it. LINQ to SQL fully supports transactions , views, and stored procedures. <br />VS 2010 ships with an LINQ to SQL designer that provides an easy way to model and visualize a database as a LINQ to SQL object model.</p>
<p>In this blog post I will show you different steps to create&nbsp; a LINQ to SQL relational&nbsp; representation for the sample &#8220;NorthWind&#8221; database. The NorthWind database can be downloaded from this link </font><a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46a0-8da2-eebc53a68034&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46a0-8da2-eebc53a68034&amp;displaylang=en"><font face="Arial" size="2">http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46a0-8da2-eebc53a68034&amp;displaylang=en</font></a></p>
<p><font face="Arial" size="2">Create an empty ASP.Net website. Add a LINQ to SQL Class by selecting &#8220;Add New Item &#8221; option within VS 2010.</p>
<p></font><a href="http://bharathph.files.wordpress.com/2010/07/image.png"><font face="Arial" size="2"><img style="border-width:0;" height="345" alt="image" src="http://bharathph.files.wordpress.com/2010/07/image_thumb.png?w=500&#038;h=345" width="500" border="0"></font></a><font face="Arial" size="2"> <br /></font></p>
<p><font face="Arial" size="2">Name the &#8220;LINQ to SQL&#8221; class as per your requirement. This will launch the&nbsp; LINQ to SQL designer&nbsp; and allow you to&nbsp; model the classes that represent relational database.</p>
<p>LINQ to SQL helps in creating &#8220;Entity Classes&#8221; . The instance of Entity Classes are called as &#8220;Entities&#8221;. The entity classes map to the tables within a database. The properties of entity classes map to the table&#8217;s column.&nbsp; Each instance of an entity class then represent a row within the database table. All classes created using the LINQ to SQL are partial classes. So you can optionally add additional properties , methods and events to them. </p>
<p>To create a entity class from database , select the tables and views from server explorer and drag and drop it on LINQ to SQL designer surface.</p>
<p></font><a href="http://bharathph.files.wordpress.com/2010/07/image1.png"><font face="Arial" size="2"><img style="border-width:0;" height="317" alt="image" src="http://bharathph.files.wordpress.com/2010/07/image_thumb1.png?w=218&#038;h=317" width="218" border="0"></font></a><font face="Arial" size="2"> </p>
<p>Once I drag and drop the tables &#8220;Categories&#8221; , &#8220;Order Details&#8221; , &#8220;Orders&#8221; and &#8220;Products&#8221;&nbsp; from NorthWind database on the LINQ to SQL surface , entity classes will be created automatically.</p>
<p></font><a href="http://bharathph.files.wordpress.com/2010/07/image2.png"><font face="Arial" size="2"><img style="border-width:0;" height="379" alt="image" src="http://bharathph.files.wordpress.com/2010/07/image_thumb2.png?w=422&#038;h=379" width="422" border="0"></font></a><font face="Arial" size="2"> </p>
<p>In my next blog I will use the above LINQ to SQL relational diagram to run some queries.<br /></font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=98&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2010/07/01/linq-to-sql-relation-diagram/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2010/07/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2010/07/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://bharathph.files.wordpress.com/2010/07/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting Client ID&#8217;s in ASP.NET 4.0.</title>
		<link>http://bharathph.wordpress.com/2010/06/01/setting-client-ids-in-asp-net-4-0/</link>
		<comments>http://bharathph.wordpress.com/2010/06/01/setting-client-ids-in-asp-net-4-0/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 18:09:05 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[ASP.Net 4.0]]></category>
		<category><![CDATA[ClientID's]]></category>
		<category><![CDATA[ClientIDMode]]></category>

		<guid isPermaLink="false">https://bharathph.wordpress.com/2010/06/01/setting-client-ids-in-asp-net-4-0/</guid>
		<description><![CDATA[Client ID&#8217;s are very handy when you work on control manipulation using client side scripting. The usual algorithm for generating the ClientID concatenates the naming container(if any) with the ID of the control. In case of repeated controls it adds &#8230; <a href="http://bharathph.wordpress.com/2010/06/01/setting-client-ids-in-asp-net-4-0/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=86&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Client ID&#8217;s are very handy when you work on control manipulation using client side scripting. The usual algorithm for generating the <em>ClientID</em> concatenates the naming container(if any) with the ID of the control. In case of repeated controls it adds a prefix and a sequential number.&nbsp; </p>
<p>ASP.NET 4.0 introduces a new concept to solve issues with generating <em>ClientID.</em>&nbsp; The <em>ClientIDMode</em>&nbsp; associated with every controls can be manipulated to archive the desired result. The <em>ClientIDMode</em>&nbsp; can be set to any controls(including page). The available options for <em>ClientIDMode</em>&nbsp; are as follows. </p>
<table cellspacing="0" cellpadding="2" width="782" border="1">
<tbody>
<tr>
<td valign="top" width="124">ClientIDMode = &#8221; &#8220;</td>
<td valign="top" width="656">Description</td>
</tr>
<tr>
<td valign="top" width="124">AutoID</td>
<td valign="top" width="656">Automatically creates the ID. Same as earlier version of ASP.Net did.</td>
</tr>
<tr>
<td valign="top" width="124">Static</td>
<td valign="top" width="656">The ClientID properties will be same as the ID assigned without concatenating the ID&#8217;s of parent control.</td>
</tr>
<tr>
<td valign="top" width="124">Predicatable</td>
<td valign="top" width="656">This option is uses in repeating controls , like data controls that use repeating templates. It concatenates the ID properties of naming container. This is achieved by setting the <em>ClientIDRowSuffix</em> property if naming container. The ClientIDRowSuffix property is set to the name of a data field. The value of that field is used as the suffix for the generated ClientID.</td>
</tr>
<tr>
<td valign="top" width="124">Inherit</td>
<td valign="top" width="656">Control&#8217;s ID generation is the same as its parent. This setting is the default behavior of the controls.</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong>&nbsp;&nbsp;&nbsp;&nbsp; How to set the CleintIDMode as Page level ? <br /></strong></p>
<pre class="csharpcode">&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Single.aspx.cs" Inherits="Single" ClientIDMode ="Predictable" %&gt;
</pre>
<p><span class="asp"><strong></strong></span></p>
<p><strong>How to set the ClientIDMode at application level.</strong></p>
<div>
<pre style="font-size:8pt;overflow:visible;width:33.87%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;height:61px;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">&lt;system.web&gt;
  &lt;pages clientIDMode=<span style="color:#006080;">"Predictable"</span>&gt;&lt;/pages&gt;
&lt;/system.web&gt;
</pre>
<p>EXAMPLES:</p>
</div>
<div>
<div style="font-size:8pt;overflow:visible;width:69.6%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;height:173px;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;asp:ScriptManager ID=<span style="color:#006080;">"ScriptManager1"</span> runat=<span style="color:#006080;">"server"</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>     &lt;/asp:ScriptManager&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     &lt;asp:UpdatePanel ID=<span style="color:#006080;">"UpdatePanel1"</span> runat=<span style="color:#006080;">"server"</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     &lt;ContentTemplate &gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>              &lt;asp:Panel ID=<span style="color:#006080;">"Panel1"</span> runat=<span style="color:#006080;">"server"</span>&gt;             </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>              &lt;asp:TextBox ID=<span style="color:#006080;">"myTextBox"</span> runat=<span style="color:#006080;">"server"</span> ClientIDMode = <span style="color:#006080;">"Static"</span> &gt;&lt;/asp:TextBox&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>              &lt;/asp:Panel&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     &lt;/ContentTemplate&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     &lt;/asp:UpdatePanel&gt;</pre>
</div>
</div>
<div>In the above code a textbox is declared inside the panel control as &#8220;myTextBox&#8221;. The page is a content page for a master page. Here is the generated ID for the TextBox with default ClientIDMode which is inherit. The ClientIDMode for the master page is set as &#8220;AutoID&#8221;.<br />&nbsp;</div>
<div>
<div>
<pre style="font-size:8pt;overflow:visible;width:44.29%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;height:64px;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">&lt;div id=<span style="color:#006080;">"ctl00_ContentPlaceHolder1_Panel1"</span>&gt;
&lt;input name=<span style="color:#006080;">"ctl00$ContentPlaceHolder1$myTextBox"</span> type=<span style="color:#006080;">"text"</span>
   id=<span style="color:#006080;">"ctl00_ContentPlaceHolder1_myTextBox"</span> /&gt;
 &lt;/div&gt;</pre>
</div>
</div>
<div>Now set the ClientIDMode for the MasterPage as &#8220;Static&#8221; and do not change the ClientIDMode for the TextBox control. Here is the client<br />side out put code for &#8220;Static&#8221; assignment.</p>
<p>&lt;div id=<span style="color:#006080;">&#8220;Panel1&#8243;</span>&gt; &lt;input name=<span style="color:#006080;">&#8220;ctl00$ContentPlaceHolder1$myTextBox&#8221;</span> type=<span style="color:#006080;">&#8220;text&#8221;</span> id=<span style="color:#006080;">&#8220;myTextBox&#8221;</span> /&gt; &lt;/div&gt;</p>
</div>
</p>
<div>&nbsp;</div>
<p>A can be seen above , the client ID assigned to TextBox control does not change.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=86&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2010/06/01/setting-client-ids-in-asp-net-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>
	</item>
		<item>
		<title>Client Side AJAX Calling Part 2</title>
		<link>http://bharathph.wordpress.com/2009/10/20/client-side-ajax-calling-part-2/</link>
		<comments>http://bharathph.wordpress.com/2009/10/20/client-side-ajax-calling-part-2/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 04:38:00 +0000</pubDate>
		<dc:creator>phbharath</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bharathph.wordpress.com/2009/10/20/client-side-ajax-calling-part-2</guid>
		<description><![CDATA[In continuation to my earlier post, I am showing here how to access the data from the server using simple JavaScript calls. In this example the user will enter the customer id to retrieve the corresponding salary. For simplicity lets &#8230; <a href="http://bharathph.wordpress.com/2009/10/20/client-side-ajax-calling-part-2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=44&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Arial">In continuation to my earlier post, I am showing here how to access the data from the server using simple JavaScript calls.</font></p>
<p><font face="Arial">In this example the user will enter the customer id to retrieve the corresponding salary. For simplicity lets have following data model for this example. The data is stored in table named, tbAccounts.     <br />I will be using Sql Server 2008 as database server.      <br /></font><a href="http://lh6.ggpht.com/_A76e0Agr5VU/St0-l-s1E8I/AAAAAAAAAX0/Ab-Kpd2C34Q/s1600-h/image%5B2%5D.png"><font color="#333333" face="Arial"><img title="image" border="0" alt="image" src="http://lh5.ggpht.com/_A76e0Agr5VU/St0-me3KZQI/AAAAAAAAAX4/u_PhxL4SxvA/image_thumb.png?imgmax=800" width="191" height="136" /></font></a><font face="Arial"> </font></p>
<p><font face="Arial">In our application user will enter one among the above three customerID to test the application.     </p>
<p>Enter the following data access code inside function RaiseCallbackEvent. This function will query the tbAccount able for the salary corresponding to the user entered customer ID.      </p>
<p></font><a href="http://lh3.ggpht.com/_A76e0Agr5VU/St0-nGClKZI/AAAAAAAAAX8/w2wgw0eXWvE/s1600-h/image%5B6%5D.png"><font color="#333333" face="Arial"><img title="image" border="0" alt="image" src="http://lh5.ggpht.com/_A76e0Agr5VU/St0-n2a0H2I/AAAAAAAAAYA/K00ZYJmy2Ak/image_thumb%5B2%5D.png?imgmax=800" width="425" height="228" /></font></a><font face="Arial">&#160; </p>
<p>The value retrieved from database is stored in private variable, ValueToSendClient.      </p>
<p>As described in my earlier post, the value to be sent to the client is retuned using the function GetCallbackResult(), which is implemented as follows.      </p>
<p></font><a href="http://lh4.ggpht.com/_A76e0Agr5VU/St0-o8Sf6bI/AAAAAAAAAYE/PN11WfJixtg/s1600-h/image%5B10%5D.png"><font color="#333333" face="Arial"><img title="image" border="0" alt="image" src="http://lh6.ggpht.com/_A76e0Agr5VU/St0-p8DF6jI/AAAAAAAAAYI/WHXnXEpNAhk/image_thumb%5B4%5D.png?imgmax=800" width="348" height="105" /></font></a><font face="Arial">&#160; </font></p>
<p><font face="Arial">The value returned by above function is accessed by the client side function GetRequiredDataFromServer which then populates the salary textbox. This function is implemented as follows.     </p>
<p></font><a href="http://lh5.ggpht.com/_A76e0Agr5VU/St0-qHoX6lI/AAAAAAAAAYM/QzRpisXKZZE/s1600-h/image%5B14%5D.png"><font color="#333333" face="Arial"><img title="image" border="0" alt="image" src="http://lh4.ggpht.com/_A76e0Agr5VU/St0-qi1YdSI/AAAAAAAAAYQ/sEfYl48X10g/image_thumb%5B6%5D.png?imgmax=800" width="428" height="84" /></font></a><font face="Arial">&#160; </p>
<p>The above method is one among the many methods of accessing data from server using AJAX calls. In my subsequent post I will blogg about these methods.</font></p>
<p><font face="Arial"></font></p>
<p><font face="Arial"></font></p>
<p><font face="Arial"></font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharathph.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharathph.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharathph.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharathph.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharathph.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharathph.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharathph.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharathph.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharathph.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharathph.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharathph.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharathph.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharathph.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharathph.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharathph.wordpress.com&amp;blog=13860080&amp;post=44&amp;subd=bharathph&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharathph.wordpress.com/2009/10/20/client-side-ajax-calling-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3690870724f2bb13d8789b0675c26e5c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phbharath</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_A76e0Agr5VU/St0-me3KZQI/AAAAAAAAAX4/u_PhxL4SxvA/image_thumb.png?imgmax=800" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_A76e0Agr5VU/St0-n2a0H2I/AAAAAAAAAYA/K00ZYJmy2Ak/image_thumb%5B2%5D.png?imgmax=800" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_A76e0Agr5VU/St0-p8DF6jI/AAAAAAAAAYI/WHXnXEpNAhk/image_thumb%5B4%5D.png?imgmax=800" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_A76e0Agr5VU/St0-qi1YdSI/AAAAAAAAAYQ/sEfYl48X10g/image_thumb%5B6%5D.png?imgmax=800" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
