<?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>Stelio Di Bello - Blog</title>
	<atom:link href="http://steliodibello.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://steliodibello.wordpress.com</link>
	<description>Finance - FX - Technology</description>
	<lastBuildDate>Tue, 10 Jan 2012 15:38:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='steliodibello.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/12daab6c66d4bde9bbb7a1805c4d09f6?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Stelio Di Bello - Blog</title>
		<link>http://steliodibello.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://steliodibello.wordpress.com/osd.xml" title="Stelio Di Bello - Blog" />
	<atom:link rel='hub' href='http://steliodibello.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ReProvisioning of Sharepoint WebSites</title>
		<link>http://steliodibello.wordpress.com/2012/01/10/reprovisioning-of-sharepoint-websites/</link>
		<comments>http://steliodibello.wordpress.com/2012/01/10/reprovisioning-of-sharepoint-websites/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 15:38:17 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/?p=98</guid>
		<description><![CDATA[Do you need to ReProvision your Sharepoint Sites in your farm??? stsadm -o provisionservice -action start -servicetype spwebservice<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=98&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Do you need to ReProvision your Sharepoint Sites in your farm???</p>
<p><strong><u><em> stsadm -o provisionservice -action start -servicetype spwebservice</em></u></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=98&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2012/01/10/reprovisioning-of-sharepoint-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
		<item>
		<title>Tuple in .net 4.0</title>
		<link>http://steliodibello.wordpress.com/2011/12/05/tuple-in-net-4-0/</link>
		<comments>http://steliodibello.wordpress.com/2011/12/05/tuple-in-net-4-0/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 20:11:29 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[DEV]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/?p=91</guid>
		<description><![CDATA[In .net 4.0 we have a new datatype… the Tuple… if you are familiar with software engineer, you know the idea behind it… to have a strongly typed datastructure that cannot be changed during the time… // Instantiate using constructor Tuple&#60;int, string, int&#62; t1 = new Tuple&#60;int, string, int&#62;(4, "Stelio", 7); // Instantiate using create [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=91&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In .net 4.0 we have a new datatype… the Tuple… if you are familiar with software engineer, you know the idea behind it… to have a strongly typed datastructure that cannot be changed during the time…</p>
<pre class="csharpcode"><span class="rem">// Instantiate using constructor </span>
Tuple&lt;<span class="kwrd">int</span>, <span class="kwrd">string</span>, <span class="kwrd">int</span>&gt; t1 = <span class="kwrd">new</span> Tuple&lt;<span class="kwrd">int</span>, <span class="kwrd">string</span>, <span class="kwrd">int</span>&gt;(4, <span class="str">"Stelio"</span>, 7);

<span class="rem">// Instantiate using create method </span>
Tuple&lt;<span class="kwrd">int</span>, <span class="kwrd">int</span>, <span class="kwrd">int</span>&gt; t2 = Tuple.Create(2, 7, 9);</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=91&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/12/05/tuple-in-net-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
		<item>
		<title>GeoLoaction in Javascript</title>
		<link>http://steliodibello.wordpress.com/2011/09/28/geoloaction-in-javascript/</link>
		<comments>http://steliodibello.wordpress.com/2011/09/28/geoloaction-in-javascript/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 11:19:40 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[DEV]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/?p=89</guid>
		<description><![CDATA[I found this free service for GeoLocation in Javascript… &#60;script language='JavaScript' src='http://j.maxmind.com/app/geoip.js'&#62;&#60;/script&#62; &#60;script language='JavaScript'&#62;document.write(geoip_country_code());&#60;/script&#62; &#60;script language='JavaScript'&#62; if(geoip_country_code()=="IT") { //Redirect ALL users from ITALY on google.com location.replace("http://www.google.com"); } &#60;/script&#62; the code is extremely easy to use, anyway I am looking forward for the proper GeoLocation API shipped with HTML5<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=89&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found this free service for GeoLocation in Javascript…</p>
<div class="csharpcode">
<pre class="alt">&lt;script language=<span class="str">'JavaScript'</span> src=<span class="str">'http://j.maxmind.com/app/geoip.js'</span>&gt;&lt;/script&gt;
&lt;script language=<span class="str">'JavaScript'</span>&gt;document.write(geoip_country_code());&lt;/script&gt;</pre>
<pre class="alt">&lt;script language=<span class="str">'JavaScript'</span>&gt;
<span class="kwrd">if</span>(geoip_country_code()==<span class="str">"IT"</span>)</pre>
<pre class="alt">{
<span class="rem">//Redirect ALL users from ITALY on google.com</span></pre>
<pre class="alt">location.replace(<span class="str">"http://www.google.com"</span>);
}</pre>
<pre class="alt">&lt;/script&gt;</pre>
</div>
<p>the code is extremely easy to use, anyway I am looking forward for the proper GeoLocation API shipped with HTML5</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=89&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/09/28/geoloaction-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
		<item>
		<title>how to script an FTP upload in a BAT file</title>
		<link>http://steliodibello.wordpress.com/2011/09/25/how-to-script-an-ftp-upload-in-a-bat-file/</link>
		<comments>http://steliodibello.wordpress.com/2011/09/25/how-to-script-an-ftp-upload-in-a-bat-file/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 15:18:41 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[DEV]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/2011/09/25/how-to-script-an-ftp-upload-in-a-bat-file/</guid>
		<description><![CDATA[In several projects you have the need to automate your deployment procedures… unfortunately often your code is hosted by an external provider that for security reasons give you the access only with FTP… This code is perfect to automate the upload of your deployment package. 1) Create a Bat File with the following code and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=88&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In several projects you have the need to automate your deployment procedures… unfortunately often your code is hosted by an external provider that for security reasons give you the access only with FTP…</p>
<p>This code is perfect to automate the upload of your deployment package.</p>
<p>1) Create a Bat File with the following code and name it Upload.bat</p>
<p>@echo off   <br />echo user <font color="#ff0000">FTPUserName</font>&gt; ftpcmd.dat    <br />echo <font color="#ff0000">FTPPWD</font> &gt;&gt; ftpcmd.dat    <br />echo cd <font color="#ff0000">FolderName</font> &gt;&gt;ftpcmd.dat    <br />echo bin&gt;&gt; ftpcmd.dat    <br />echo put %1&gt;&gt; ftpcmd.dat    <br />echo quit&gt;&gt; ftpcmd.dat    <br />ftp -n -s:ftpcmd.dat <font color="#ff0000">FTP</font><font color="#ff0000">serverURL</font>    <br />del ftpcmd.dat</p>
<p>as you can understand you have to put into your username and password and eventually the code to switch directory if you are going to upload something on the root…</p>
<p>2) call your bat file with the following syntax: upload.bat testFile.zip </p>
<p>Happy scripting to everybody <img style="border-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://steliodibello.files.wordpress.com/2011/09/wlemoticon-smile.png?w=600" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=88&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/09/25/how-to-script-an-ftp-upload-in-a-bat-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>

		<media:content url="http://steliodibello.files.wordpress.com/2011/09/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello World with BackgroundWorker</title>
		<link>http://steliodibello.wordpress.com/2011/09/21/hello-world-with-backgroundworker/</link>
		<comments>http://steliodibello.wordpress.com/2011/09/21/hello-world-with-backgroundworker/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 22:03:34 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[DEV]]></category>
		<category><![CDATA[backgroundWorker]]></category>
		<category><![CDATA[multithread]]></category>
		<category><![CDATA[winform]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/2011/09/21/hello-world-with-backgroundworker/</guid>
		<description><![CDATA[in .Net 2.0 MS introduced the BackgroundWorker component to simplify the life of WinForm developers… you can check the following article to know more information http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx the simples sample of use of the BackgroundWorker is a WinForm application that count from 1 to 999 billion and every time that add 1 million, update a simple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=86&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>in .Net 2.0 MS introduced the BackgroundWorker component to simplify the life of WinForm developers… you can check the following article to know more information <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx</a></p>
<p>the simples sample of use of the BackgroundWorker is a WinForm application that count from 1 to 999 billion and every time that add 1 million, update a simple textBox on the form…</p>
<p>As you can see code is extremely simple… just remember to enable the WorkerReportProgress to true and use the UserState to pass values between events…</p>
<p>ps. this sample does not support user cancellation and does not handle more than 1 click…</p>
<pre class="code"><span style="color:blue;">public </span>Form1()
       {
           InitializeComponent();
           backgroundWorker1.WorkerReportsProgress = <span style="color:blue;">true</span>;
       }

       <span style="color:blue;">private void </span>backgroundWorker1_DoWork(<span style="color:blue;">object </span>sender, <span style="color:#2b91af;">DoWorkEventArgs </span>e)
       {
           <span style="color:blue;">var </span>bckwork = (<span style="color:#2b91af;">BackgroundWorker</span>)sender;
           <span style="color:blue;">for </span>(<span style="color:#2b91af;">Int64 </span>i = 1; i &lt;= 9999999999; i++)
           {
               <span style="color:blue;">if </span>((i % 1000000) == 0)
               {
                   <span style="color:blue;">int  </span>prog =  (<span style="color:blue;">int</span>)(i / 1000000) ;
                   bckwork.ReportProgress( prog, i);
               }
           }
       }

       <span style="color:blue;">private void </span>button1_Click(<span style="color:blue;">object </span>sender, <span style="color:#2b91af;">EventArgs </span>e)
       {
           backgroundWorker1.RunWorkerAsync();
       }

       <span style="color:blue;">private void </span>backgroundWorker1_ProgressChanged(<span style="color:blue;">object </span>sender, <span style="color:#2b91af;">ProgressChangedEventArgs </span>e)
       {
           textBox1.Text = e.UserState.ToString();
       }</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=86&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/09/21/hello-world-with-backgroundworker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
		<item>
		<title>Source Control on Mercurial</title>
		<link>http://steliodibello.wordpress.com/2011/09/18/source-control-on-mercurial/</link>
		<comments>http://steliodibello.wordpress.com/2011/09/18/source-control-on-mercurial/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 16:44:48 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[DEV]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[teamcity]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/2011/09/18/source-control-on-mercurial/</guid>
		<description><![CDATA[There are several tools available for Mercurial… On my last project we have decided to migrate to Mercurial from TFS and we are enjoying the following technologies stack: Mercurial – Bitbucket– Jira – TeamCity How can you do all of this??? Jira with the agile plugin is an excellent tool to run an Agile project, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=78&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are several tools available for Mercurial…</p>
<p>On my last project we have decided to migrate to Mercurial from TFS and we are enjoying the following technologies stack:</p>
<p>Mercurial – Bitbucket– Jira – TeamCity</p>
<p>How can you do all of this???</p>
<p>Jira with the agile plugin is an excellent tool to run an Agile project, and you can integrate it fairly easily with Mercurial…</p>
<p>TeamCity can be also integrated fairly easily with Mercurial to keep under control build and deployment processes</p>
<p>Bitbucket is the connector to see your Mercurial repository “onLine”</p>
<p>as useful tools, I would also recommend TortoiseHG and VisualHG and Jira Connector for VS</p>
<p>these are few command to remember in the everyday life using mercurial…</p>
<pre class="csharpcode">How to <span class="kwrd">switch</span> Branch: HG update <span class="str">"default"</span>

TFS CheckIn
hg push 

TFS get latest
hg pull 

after pull sometime hg up o hg update

hg merge to mix changes after a pull

how to download an existing repository from bitbucket
hg clone https:<span class="rem">//username@bitbucket.org/repCreator/projectName</span>

TO KNOW ALL THE EXISTING BRANCHES
hg branches</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=78&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/09/18/source-control-on-mercurial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
		<item>
		<title>Access to an external Sharepoint List with Sharepoint Client API</title>
		<link>http://steliodibello.wordpress.com/2011/09/16/access-to-an-external-sharepoint-list-with-sharepoint-client-api/</link>
		<comments>http://steliodibello.wordpress.com/2011/09/16/access-to-an-external-sharepoint-list-with-sharepoint-client-api/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 13:30:25 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[DEV]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/?p=76</guid>
		<description><![CDATA[Do you need to access a Sharepoint List from a NonSharepoint Application???! With Sharepoint 2010 it is extremely easy&#8230; you can benefit of the Sharepoint Client API and it would be extremely easy to control resource hosted on SharePoint external list. Obviously, whenever it is possible, I would suggest to cache the Sharepoint List in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=76&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Do you need to access a Sharepoint List from a NonSharepoint Application???! With Sharepoint 2010 it is extremely easy&#8230; you can benefit of the Sharepoint Client API and it would be extremely easy to control resource hosted on SharePoint external list.<br />
Obviously, whenever it is possible, I would suggest to cache the Sharepoint List in your application cache layer to avoid performance issues&#8230;.</p>
<div class="csharpcode">
<pre class="alt"> <span class="kwrd">public</span> <span class="kwrd">static</span> ListItemCollection GetClientList(<span class="kwrd">string</span> listPath)
  {</pre>
<pre class="alt">  <span class="kwrd">string</span> url = ConfigurationManager.AppSettings[<span class="str">"sharepointConfigSite"</span>];
  <span class="kwrd">using</span> (Microsoft.SharePoint.Client.ClientContext ctx = <span class="kwrd">new</span> Microsoft.SharePoint.Client.ClientContext(url))
     {</pre>
<pre class="alt">        var list = ctx.Web.Lists.GetByTitle(listPath);
       ctx.Load(list);</pre>
<pre class="alt">       CamlQuery camlQuery = <span class="kwrd">new</span> CamlQuery();
       camlQuery.ViewXml = <span class="str">"&lt;View/&gt;"</span>;</pre>
<pre class="alt">       ListItemCollection listItems = list.GetItems(camlQuery);
        ctx.Load(listItems);</pre>
<pre class="alt">        <span class="kwrd">if</span> (ConfigurationManager.AppSettings[<span class="str">"sharepointUserConfigSite"</span>] != <span class="kwrd">null</span>)
          {</pre>
<pre class="alt">           <span class="kwrd">string</span> username = ConfigurationManager.AppSettings[<span class="str">"sharepointUserConfigSite"</span>];
           <span class="kwrd">string</span> pwd = ConfigurationManager.AppSettings[<span class="str">"sharepointPwdConfigSite"</span>];</pre>
<pre class="alt">            <span class="kwrd">string</span> domain = ConfigurationManager.AppSettings[<span class="str">"sharepointDomConfigSite"</span>];
            var cred = <span class="kwrd">new</span> System.Net.NetworkCredential(username, pwd, domain);
            ctx.Credentials = cred;</pre>
<pre class="alt">           }   <span class="kwrd">else</span>  {</pre>
<pre class="alt">                    ctx.AuthenticationMode = ClientAuthenticationMode.Anonymous;</pre>
<pre class="alt">                }
            ctx.ExecuteQuery();</pre>
<pre class="alt">            <span class="kwrd">return</span> listItems;
      }</pre>
<pre class="alt"> }</pre>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=76&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/09/16/access-to-an-external-sharepoint-list-with-sharepoint-client-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtualization Tips</title>
		<link>http://steliodibello.wordpress.com/2011/09/15/virtualization-tips/</link>
		<comments>http://steliodibello.wordpress.com/2011/09/15/virtualization-tips/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 12:00:47 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/?p=73</guid>
		<description><![CDATA[Do you need to run Virtual PC on your Windows 7 home edition??? this guide explain you how to install virtual PC on windows 7 home… http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/07/07/installing-windows-virtual-pc-on-windows-7-home-editions.aspx Anyhow if you have windows 7 home I would recommend you VirtualBox Oracle solution for virtualization… http://www.virtualbox.org<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=73&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Do you need to run Virtual PC on your Windows 7 home edition??? this guide explain you how to install virtual PC on windows 7 home…</p>
<p><a href="http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/07/07/installing-windows-virtual-pc-on-windows-7-home-editions.aspx">http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/07/07/installing-windows-virtual-pc-on-windows-7-home-editions.aspx</a></p>
<p>Anyhow if you have windows 7 home I would recommend you VirtualBox Oracle solution for virtualization… <a href="http://www.virtualbox.org">http://www.virtualbox.org</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=73&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/09/15/virtualization-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
		<item>
		<title>Easy WireFrames and Interface Mockups</title>
		<link>http://steliodibello.wordpress.com/2011/09/04/easy-wireframes-and-interface-mockups/</link>
		<comments>http://steliodibello.wordpress.com/2011/09/04/easy-wireframes-and-interface-mockups/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 19:05:05 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[Infrastructure]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/2011/09/04/easy-wireframes-and-interface-mockups/</guid>
		<description><![CDATA[I tried the Balsamiq&#160; tool for making WireFrame and Mockup few interfaces and I found it extremely easy and quick to use… It is not powerful as VISIO but I found it much easier to use!!! http://balsamiq.com/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=71&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I tried the Balsamiq&#160; tool for making WireFrame and Mockup few interfaces and I found it extremely easy and quick to use…</p>
<p>It is not powerful as VISIO but I found it much easier to use!!!</p>
<p><a href="http://balsamiq.com/">http://balsamiq.com/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=71&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/09/04/easy-wireframes-and-interface-mockups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
		<item>
		<title>Using SQL Table Parameters in ADO.NET</title>
		<link>http://steliodibello.wordpress.com/2011/09/04/using-sql-table-parameters-in-ado-net/</link>
		<comments>http://steliodibello.wordpress.com/2011/09/04/using-sql-table-parameters-in-ado-net/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 18:39:17 +0000</pubDate>
		<dc:creator>steliodibello</dc:creator>
				<category><![CDATA[DEV]]></category>
		<category><![CDATA[ado.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">https://steliodibello.wordpress.com/2011/09/04/using-sql-table-parameters-in-ado-net/</guid>
		<description><![CDATA[Some time is much better to use in your Store Procedures Table parameters for reduce the round-trip with the server and have better performances…. this is an example on how to do implement it. SQL Store Procedure with a TABLE Parameter 1: Create PROC [dbo].[getData] 2:&#160; 3: @MyTableParam ProductsTableType READONLY , 4: @InputId varchar (200) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=70&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some time is much better to use in your Store Procedures Table parameters for reduce the round-trip with the server and have better performances…. this is an example on how to do implement it.</p>
<p>SQL Store Procedure with a TABLE Parameter </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:&#039;direction:ltr;height:279px;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">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">Create</span> <span style="color:#0000ff;">PROC</span> [dbo].[getData]</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>  @MyTableParam ProductsTableType  READONLY ,</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>  @InputId <span style="color:#0000ff;">varchar</span> (200)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>  <span style="color:#0000ff;">AS</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>       <span style="color:#0000ff;">SELECT</span>  *</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>       <span style="color:#0000ff;">FROM</span>  table1 sub</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>       </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>       <span style="color:#0000ff;">inner</span> <span style="color:#0000ff;">join</span> @MyTableParam p <span style="color:#0000ff;">on</span>  sub.Productid = p.productId <span style="color:#0000ff;">and</span> sub.VariantId = p.VariantId</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>       </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>       <span style="color:#0000ff;">INNER</span> <span style="color:#0000ff;">JOIN</span> somethingelse <span style="color:#0000ff;">ON</span> sub.SubscriptionID = Subscription.ID</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span>         </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>     <span style="color:#0000ff;">where</span> Field =@InputId</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>       </pre>
<p><!--CRLF--></div>
</div>
<p>and this is the code to call the storeProc</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:&#039;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">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">void</span> AssignProductDataTableRow(DataTable products, CatalogItemsDataSet.CatalogItem catalogItem)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>        {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>            DataRow dr = products.NewRow();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>            dr[0] = catalogItem.ProductId;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>            dr[1] = catalogItem.VariantId;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>            products.Rows.Add(dr);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>        }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>        <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> DataTable PrepareProductsDataTable()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>        {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>            var products = <span style="color:#0000ff;">new</span> DataTable();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>            var prIdCol = <span style="color:#0000ff;">new</span> DataColumn(<span style="color:#006080;">&quot;ProductId&quot;</span>, Type.GetType(<span style="color:#006080;">&quot;System.String&quot;</span>));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span>            var varIdCol = <span style="color:#0000ff;">new</span> DataColumn(<span style="color:#006080;">&quot;VariantId&quot;</span>, Type.GetType(<span style="color:#006080;">&quot;System.String&quot;</span>));</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>            products.Columns.Add(prIdCol);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span>            products.Columns.Add(varIdCol);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span>            <span style="color:#0000ff;">return</span> products;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span>        }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span>      <span style="color:#0000ff;">using</span> (</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span>                var conn =</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span>                    <span style="color:#0000ff;">new</span> SqlConnection(ConfigurationManager.ConnectionStrings[<span style="color:#006080;">&quot;CustomProductData&quot;</span>].ToString()))</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum24">  24:</span>            {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum25">  25:</span>                SqlCommand cmd = conn.CreateCommand();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum26">  26:</span>                cmd.CommandType = CommandType.StoredProcedure;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum27">  27:</span>                cmd.CommandText = <span style="color:#006080;">&quot;dbo.getData&quot;</span>;</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum28">  28:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum29">  29:</span>                cmd.Parameters.AddWithValue(<span style="color:#006080;">&quot;@MyTableParam&quot;</span>, products);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum30">  30:</span>                cmd.Parameters.AddWithValue(<span style="color:#006080;">&quot;@InputId&quot;</span>, <span style="color:#006080;">&quot;1&quot;</span>);</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum31">  31:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum32">  32:</span>                conn.Open();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum33">  33:</span>                SqlDataReader res = cmd.ExecuteReader();</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum34">  34:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum35">  35:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum36">  36:</span>                <span style="color:#0000ff;">while</span> (res.Read())</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum37">  37:</span>                {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum38">  38:</span>                 <span style="color:#008000;">//Read Row...</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum39">  39:</span>                 }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum40">  40:</span> }</pre>
<p><!--CRLF--></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/steliodibello.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/steliodibello.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/steliodibello.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/steliodibello.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/steliodibello.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/steliodibello.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/steliodibello.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/steliodibello.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/steliodibello.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/steliodibello.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/steliodibello.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/steliodibello.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/steliodibello.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/steliodibello.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=steliodibello.wordpress.com&amp;blog=23307990&amp;post=70&amp;subd=steliodibello&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://steliodibello.wordpress.com/2011/09/04/using-sql-table-parameters-in-ado-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c095bc8ffdd765b45212b8cf3e83a474?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">steliodibello</media:title>
		</media:content>
	</item>
	</channel>
</rss>
