<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.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>Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5 - All Comments</title><link>http://weblogs.asp.net/omarzabir/default.aspx</link><description>Working hard to enrich millions of peoples' lives</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Step by Step screencasts to do Behavior Driven Development on WCF and UI using xUnit</title><link>http://weblogs.asp.net/omarzabir/archive/2010/05/04/step-by-step-screencasts-to-do-behavior-driven-development-on-wcf-and-ui-using-xunit.aspx#7471423</link><pubDate>Wed, 05 May 2010 15:52:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7471423</guid><dc:creator>m.tretyak</dc:creator><description>&lt;p&gt;Is it possible to get links of these videos to offline viewing?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7471423" width="1" height="1"&gt;</description></item><item><title>re: Prevent Denial of Service (DOS) attacks in your web application</title><link>http://weblogs.asp.net/omarzabir/archive/2007/10/16/prevent-denial-of-service-dos-attacks-in-your-web-application.aspx#7451403</link><pubDate>Tue, 20 Apr 2010 19:51:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7451403</guid><dc:creator>oazabir</dc:creator><description>&lt;p&gt;No need to. You set the threshold values based on the capacity of each server. Not based on the capacity of your entire web farm, which is not practical to calculate as capacity of a web farm is dynamic. &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7451403" width="1" height="1"&gt;</description></item><item><title>re: Prevent Denial of Service (DOS) attacks in your web application</title><link>http://weblogs.asp.net/omarzabir/archive/2007/10/16/prevent-denial-of-service-dos-attacks-in-your-web-application.aspx#7451341</link><pubDate>Tue, 20 Apr 2010 18:57:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7451341</guid><dc:creator>franklin</dc:creator><description>&lt;p&gt;This solution doesn&amp;#39;t really work in a web farm scenario.&lt;/p&gt;
&lt;p&gt;It relies on the ASP.NET Cache object, which is stored in each web server&amp;#39;s local memory.&lt;/p&gt;
&lt;p&gt;Each web server in the farm has its own instance of the Cache object. So, webserver2 doesn&amp;#39;t know how many times a particular IP address has hit webserver1.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7451341" width="1" height="1"&gt;</description></item><item><title>re: Fast page loading by moving ASP.NET AJAX scripts after visible content</title><link>http://weblogs.asp.net/omarzabir/archive/2008/04/06/fast-page-loading-by-moving-asp-net-ajax-scripts-after-visible-content.aspx#7450826</link><pubDate>Tue, 20 Apr 2010 12:02:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7450826</guid><dc:creator>Abhishek Singh</dc:creator><description>&lt;p&gt;If some of the java script functions calling on&lt;/p&gt;
&lt;p&gt;onload event of the page then will it cause the JS errors in that case or they will execute&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7450826" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Ajax Extender for multi-column widget drag &amp; drop</title><link>http://weblogs.asp.net/omarzabir/archive/2007/10/22/asp-net-ajax-extender-for-multi-column-widget-drag-amp-drop.aspx#7443901</link><pubDate>Wed, 14 Apr 2010 15:45:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7443901</guid><dc:creator>Manisha</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you mention WidgetService.MoveWidgetInstance( instanceId, columnNo, row ); &lt;/p&gt;
&lt;p&gt;do we need to create work flow for this?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7443901" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Ajax Extender for multi-column widget drag &amp; drop</title><link>http://weblogs.asp.net/omarzabir/archive/2007/10/22/asp-net-ajax-extender-for-multi-column-widget-drag-amp-drop.aspx#7413609</link><pubDate>Fri, 26 Mar 2010 05:25:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7413609</guid><dc:creator>routhrirajana</dc:creator><description>&lt;p&gt;The type or namespace name 'FloatingBehaviorScript' could not be found&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7413609" width="1" height="1"&gt;</description></item><item><title>re: C# with keyword equivalent</title><link>http://weblogs.asp.net/omarzabir/archive/2010/03/22/c-with-keyword-equivalent.aspx#7396972</link><pubDate>Mon, 22 Mar 2010 10:20:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7396972</guid><dc:creator>oazabir</dc:creator><description>&lt;p&gt;Very good idea Andy! I have updated the post with your solution. &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7396972" width="1" height="1"&gt;</description></item><item><title>re: C# with keyword equivalent</title><link>http://weblogs.asp.net/omarzabir/archive/2010/03/22/c-with-keyword-equivalent.aspx#7391950</link><pubDate>Sun, 21 Mar 2010 22:14:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7391950</guid><dc:creator>Andy T.</dc:creator><description>&lt;p&gt;Why not:&lt;/p&gt;
&lt;p&gt;public static void With&amp;lt;T&amp;gt;(this T item, Action&amp;lt;T&amp;gt; work) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;work(item);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Then:&lt;/p&gt;
&lt;p&gt;this.StatusProgressBar.With(pb =&amp;gt; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;pb.Visiblity = false;&lt;/p&gt;
&lt;p&gt;});&lt;/p&gt;
&lt;p&gt;... seems a bit cleaner&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7391950" width="1" height="1"&gt;</description></item><item><title>re: C# with keyword equivalent</title><link>http://weblogs.asp.net/omarzabir/archive/2010/03/22/c-with-keyword-equivalent.aspx#7391838</link><pubDate>Sun, 21 Mar 2010 21:31:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7391838</guid><dc:creator>webbes</dc:creator><description>&lt;p&gt;To limit the scope of a variable, simply place it between two curly brackets..&lt;/p&gt;
&lt;p&gt;public void method(){&lt;/p&gt;
&lt;p&gt;// some code&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; var p = this.StatusProgressBar;&lt;/p&gt;
&lt;p&gt; p.IsIndeterminate = false;&lt;/p&gt;
&lt;p&gt; p.Visibility = Visibility.Visible;&lt;/p&gt;
&lt;p&gt; p.Minimum = 0;&lt;/p&gt;
&lt;p&gt; p.Maximum = 100;&lt;/p&gt;
&lt;p&gt; p.Value = percentage;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;// some more code where p is out of scope!&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Wes&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7391838" width="1" height="1"&gt;</description></item><item><title>re: C# with keyword equivalent</title><link>http://weblogs.asp.net/omarzabir/archive/2010/03/22/c-with-keyword-equivalent.aspx#7391831</link><pubDate>Sun, 21 Mar 2010 21:25:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7391831</guid><dc:creator>Malachi</dc:creator><description>&lt;p&gt;I too sorely miss the with keyword from pascal. &amp;nbsp;However, &amp;nbsp;you can actually limit scope variables anywhere you want. &amp;nbsp;For example:&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;var p = this.StatusProgressBar;&lt;/p&gt;
&lt;p&gt;p.IsIndeterminate = false;&lt;/p&gt;
&lt;p&gt;p.Visibility = Visibility.Visible;&lt;/p&gt;
&lt;p&gt;p.Minimum = 0;&lt;/p&gt;
&lt;p&gt;p.Maximum = 100;&lt;/p&gt;
&lt;p&gt;p.Value = percentage;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Keeps p only active within the curly braces&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7391831" width="1" height="1"&gt;</description></item></channel></rss>
