<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://interactiveasp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Phil Gilmore - All Comments</title><link>http://interactiveasp.net/blogs/spgilmore/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>re: How to support file uploads in ASP.Net MVC</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/06/03/how-to-support-file-uploads-in-asp-net-mvc.aspx#5629</link><pubDate>Sun, 27 Dec 2009 18:46:10 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:5629</guid><dc:creator>BoillaZooto</dc:creator><description>&lt;p&gt;Another useful and informative post. Thanks !&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=5629" width="1" height="1"&gt;</description></item><item><title>re: How to support file uploads in ASP.Net MVC</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/06/03/how-to-support-file-uploads-in-asp-net-mvc.aspx#3706</link><pubDate>Thu, 03 Dec 2009 15:58:07 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:3706</guid><dc:creator>Ping</dc:creator><description>&lt;p&gt;Do you know if there is a way to customize the &amp;#39;Browse...&amp;#39; button beside the file uploading text box? For example, I want it in a special color, and special font.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=3706" width="1" height="1"&gt;</description></item><item><title>re: Lambda expressions tutorial for C# and Visual Studio 2008</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/01/09/lambda-expressions-tutorial-for-c-and-visual-studio-2008.aspx#3705</link><pubDate>Thu, 03 Dec 2009 15:52:25 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:3705</guid><dc:creator>Ping</dc:creator><description>&lt;p&gt;Have you tried this? you should wrap the multiline body with {}.&lt;/p&gt;
&lt;p&gt;public int Accumulate()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Add((i1, i2) =&amp;gt; {i1 = i1 + i2; return i1;});&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=3705" width="1" height="1"&gt;</description></item><item><title>re: Building data sequences in C#</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/05/19/building-data-sequences-in-c.aspx#1525</link><pubDate>Sun, 13 Sep 2009 04:08:46 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:1525</guid><dc:creator>Nathan Zaugg</dc:creator><description>&lt;p&gt;Sequences huh? &amp;nbsp;Check this out: &lt;a rel="nofollow" target="_new" href="http://srtsolutions.com/blogs/chrismarinos/archive/2009/08/19/introducing-elevate.aspx"&gt;srtsolutions.com/.../introducing-elevate.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=1525" width="1" height="1"&gt;</description></item><item><title>re: Advanced merging - manual alignment with KDIFF3</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/02/23/advanced-merging-manual-alignment-with-kdiff3.aspx#1211</link><pubDate>Fri, 31 Jul 2009 09:22:59 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:1211</guid><dc:creator>Lapo Luchini</dc:creator><description>&lt;p&gt;Mhh, unfortunately doesn&amp;#39;t seems to work every time to me =(&lt;/p&gt;
&lt;p&gt;The fact that GUI doesn&amp;#39;t show anything about it doesn&amp;#39;t help, for sure.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=1211" width="1" height="1"&gt;</description></item><item><title>re: Regular expression for email addresses (replacing the Visual Studio 2008 default).</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/01/09/regular-expression-for-email-addresses-replacing-the-visual-studio-2008-default.aspx#997</link><pubDate>Tue, 30 Jun 2009 08:49:53 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:997</guid><dc:creator>Bear</dc:creator><description>&lt;p&gt;.NET treats expressions used with regular expression validator controls as if they begin with ^ and end with $ even if they don&amp;#39;t which is why it isn&amp;#39;t in the default.&lt;/p&gt;
&lt;p&gt;\w already encompasses letters, numbers, AND UNDERSCORES so [\w-_] could be written as [\w-] instead... plus, including an unescaped hyphen anywhere other than the end is bad practise because if neither side is a class shorthand you will either allow all characters between those either side of the hyphen (but not the hyphen unless it is part of that range) or will get a big fat error if the range is impossible.&lt;/p&gt;
&lt;p&gt;Beside all this I recommend you read the RFCs that apply to email addresses and domains as your list of target features misses the mark by a considerable margin even if your own database doesn&amp;#39;t exploit any of the missing options.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=997" width="1" height="1"&gt;</description></item><item><title>re: CodeRush Xpress for Visual Studio 2008 cheat sheet</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/06/19/coderush-xpress-for-visual-studio-2008-cheat-sheet.aspx#948</link><pubDate>Fri, 19 Jun 2009 20:30:21 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:948</guid><dc:creator>Nathan Zaugg</dc:creator><description>&lt;p&gt;Oh, I just HATE when a plug-in puts files in my code directory! &amp;nbsp;EWWW! &amp;nbsp;That is one of the main reasons I uninstalled resharper! &amp;nbsp;That and it keept trying to make everything var -- Yuck! &amp;nbsp;I don&amp;#39;t mind so much that it has to make these files but could it please keep it out of my source tree!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=948" width="1" height="1"&gt;</description></item><item><title>re: How to configure MKS to use KDiff3</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2008/11/07/how-to-configure-mks-to-use-kdiff3.aspx#935</link><pubDate>Mon, 15 Jun 2009 19:53:12 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:935</guid><dc:creator>Nathan Zaugg</dc:creator><description>&lt;p&gt;I freakin HATE MKS! &amp;nbsp;It sucks at everything it does! &amp;nbsp;I hope I don&amp;#39;t have to use it for too much longer!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=935" width="1" height="1"&gt;</description></item><item><title>re: Regular expression for email addresses (replacing the Visual Studio 2008 default).</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/01/09/regular-expression-for-email-addresses-replacing-the-visual-studio-2008-default.aspx#897</link><pubDate>Tue, 09 Jun 2009 13:59:50 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:897</guid><dc:creator>Naveen</dc:creator><description>&lt;p&gt;hi &amp;nbsp;had used this regular expression to validate the email id \w+([-+.&amp;#39;]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* in java script but it is not working correctly please offer me a correct expression.....!&lt;/p&gt;
&lt;p&gt;here is the code i had used for validation:&lt;/p&gt;
&lt;p&gt;var email=document.getElementById(&amp;quot;TextBox1&amp;quot;).value;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; if(email ==&amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alert(&amp;quot;Enter U R E-Mail Id.&amp;quot;);&lt;/p&gt;
&lt;p&gt;		document.getElementById(&amp;quot;TextBox1&amp;quot;).value=&amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;		document.getElementById(&amp;quot;TextBox1&amp;quot;).focus();&lt;/p&gt;
&lt;p&gt;//		document.getElementById(&amp;quot;TextBox1&amp;quot;).select();&lt;/p&gt;
&lt;p&gt;//		&lt;/p&gt;
&lt;p&gt;		return false;&lt;/p&gt;
&lt;p&gt;	}	&lt;/p&gt;
&lt;p&gt; else&lt;/p&gt;
&lt;p&gt; {&lt;/p&gt;
&lt;p&gt; //var mail=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;&lt;/p&gt;
&lt;p&gt; var mail=/^[\w][\w\.-]*[\w]@[\w][\w\.-]*[\w]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/&lt;/p&gt;
&lt;p&gt;	if(mail.test(document.frm.email.value)) &lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;		else&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;		alert(&amp;quot;Invalid E-mail Address! Please Re-enter.&amp;quot;);&lt;/p&gt;
&lt;p&gt;		document.getElementById(&amp;quot;TextBox1&amp;quot;).value=&amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;		document.getElementById(&amp;quot;TextBox1&amp;quot;).focus();&lt;/p&gt;
&lt;p&gt;//		document.getElementById(&amp;quot;TextBox1&amp;quot;).select();&lt;/p&gt;
&lt;p&gt;		return false;&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;return true;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=897" width="1" height="1"&gt;</description></item><item><title>re: FreePascal Error: Illegal parameter: -Opentium3</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/01/05/freepascal-error-illegal-parameter-opentium3.aspx#888</link><pubDate>Mon, 08 Jun 2009 05:24:33 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:888</guid><dc:creator>RnzF</dc:creator><description>&lt;p&gt;Hi. I followed the steps but it didn&amp;#39;t work on my computer. I tried it with a program, not a project. Is that the reason?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=888" width="1" height="1"&gt;</description></item><item><title>ASP.NET MVC Archived Blog Posts, Page 1</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/06/03/how-to-support-file-uploads-in-asp-net-mvc.aspx#886</link><pubDate>Mon, 08 Jun 2009 04:27:01 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:886</guid><dc:creator>ASP.NET MVC Archived Blog Posts, Page 1</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;ASP.NET MVC Archived Blog Posts, Page 1&lt;/p&gt;
&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=886" width="1" height="1"&gt;</description></item><item><title>re: Lambda expressions tutorial for C# and Visual Studio 2008</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/01/09/lambda-expressions-tutorial-for-c-and-visual-studio-2008.aspx#560</link><pubDate>Thu, 12 Mar 2009 20:42:26 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:560</guid><dc:creator>Phil Gilmore</dc:creator><description>&lt;p&gt;Here is a test of the multiline theory. &amp;nbsp;First I made it work with a single i1 + i2 predicate. &amp;nbsp;Then I added multiple lines. &amp;nbsp;The compiler immediately complains about the first semicolon after the =&amp;gt; operator, telling me &amp;quot;) expected&amp;quot;.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public int Add(Func&amp;lt;int, int, int&amp;gt; accumulator)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return accumulator(5, 3);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public int Accumulate()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return Add((i1, i2) =&amp;gt; i1 = i1 + i2; return i1;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=560" width="1" height="1"&gt;</description></item><item><title>re: FreePascal Error: Illegal parameter: -Opentium3</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/01/05/freepascal-error-illegal-parameter-opentium3.aspx#492</link><pubDate>Wed, 18 Feb 2009 22:46:14 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:492</guid><dc:creator>Phil Gilmore</dc:creator><description>&lt;p&gt;The link that pointed me to this solution is the FPC bug tracker entry mentioned in the blog post.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://bugs.freepascal.org/view.php?id=11865"&gt;bugs.freepascal.org/view.php&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=492" width="1" height="1"&gt;</description></item><item><title>Understanding Lambda Expressions</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/01/09/lambda-expressions-tutorial-for-c-and-visual-studio-2008.aspx#392</link><pubDate>Tue, 20 Jan 2009 20:20:08 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:392</guid><dc:creator>Nates Stuff</dc:creator><description>&lt;p&gt;This post has been sitting in my drafts for months! Because my friend Phil just posted his post on Lambda&lt;/p&gt;
&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=392" width="1" height="1"&gt;</description></item><item><title>re: Lambda expressions tutorial for C# and Visual Studio 2008</title><link>http://interactiveasp.net/blogs/spgilmore/archive/2009/01/09/lambda-expressions-tutorial-for-c-and-visual-studio-2008.aspx#380</link><pubDate>Wed, 14 Jan 2009 21:40:10 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:380</guid><dc:creator>Nathan Zaugg</dc:creator><description>&lt;p&gt;I prefer the term Function Pointer, Delegate, Dispatch Method or pretty much anyting oppsed to CallBack! &lt;/p&gt;
&lt;p&gt;I never really noticed that there is no return in a lambda expression. &amp;nbsp;Can you add one anyway? &amp;nbsp;Are you sure you can&amp;#39;t just do something like this to get multiple lines of code?&lt;/p&gt;
&lt;p&gt;(value1, value2) =&amp;gt; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;int result += value1;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;result =+ value2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;return (result / 2); // averate&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=380" width="1" height="1"&gt;</description></item></channel></rss>