<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.microsoft.co.il/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>Avi Pinto - All Comments</title><link>http://blogs.microsoft.co.il/blogs/pintyo/</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: double scrollbars with "overflow-y: scroll" on IE7 when using cssstickyfooter</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/11/06/double-scrollbars-with-quot-overflow-y-scroll-quot-on-ie7-when-using-cssstickyfooter.aspx#783667</link><pubDate>Fri, 11 Feb 2011 04:45:46 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:783667</guid><dc:creator>thanks</dc:creator><description>&lt;p&gt;Toda raba from Melbourne Isaac !&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=783667" width="1" height="1"&gt;</description></item><item><title>re: Insert a new Item to a GridView using an ObjectDataSource and the EditItemTemplate</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2008/06/12/insert-a-new-item-to-a-gridview-using-an-objectdatasource-and-the-edititemtemplate.aspx#760547</link><pubDate>Sun, 26 Dec 2010 17:22:08 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:760547</guid><dc:creator>Avi Pinto</dc:creator><description>&lt;p&gt;היי שלום,&lt;/p&gt;
&lt;p&gt;DataMgr זה השירות שממנו אני מביא את המידע,&lt;/p&gt;
&lt;p&gt;לצורך העניין פה בדוגמא, אם אני לא טועה זו הייתה מחלקה סטטית שמחזירה dataTable סטטי - כך שבהדגמה המידע החדש מתווסף אליו.&lt;/p&gt;
&lt;p&gt;אבל זה בהחלט לא המימוש עבור מערכת production.&lt;/p&gt;
&lt;p&gt;ובכלל, מחמיא שפוסט כ&amp;quot;כ ישן זוכה להתייחסות.&lt;/p&gt;
&lt;p&gt;אם אתה לא חייב, ממליץ לך להתרחק כמו מאש מ gridView בכלל ומ objectDataSource בפרט.&lt;/p&gt;
&lt;p&gt;שיהיה בהצלחה&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=760547" width="1" height="1"&gt;</description></item><item><title>re: Insert a new Item to a GridView using an ObjectDataSource and the EditItemTemplate</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2008/06/12/insert-a-new-item-to-a-gridview-using-an-objectdatasource-and-the-edititemtemplate.aspx#760530</link><pubDate>Sun, 26 Dec 2010 13:21:17 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:760530</guid><dc:creator>שלום</dc:creator><description>&lt;p&gt;מה זה ה DataMgr שבפונקציה ?.&lt;/p&gt;
&lt;p&gt; public static DataTable GetMyData(bool bNew)&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;DataTable theData = DataMgr.GetMyData();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (bNew)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp;theData = theData.Copy();//assume we take the data from the cache&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;theData.Rows.InsertAt(theData.NewRow(), 0);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &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 theData;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;תודה רבה &lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=760530" width="1" height="1"&gt;</description></item><item><title>re: IModelBinder and property key for successful binding at the ModelState + partial form validation</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/10/28/imodelbinder-and-property-key-for-successful-binding-at-the-modelstate-partial-form-validation.aspx#756430</link><pubDate>Tue, 14 Dec 2010 04:09:16 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:756430</guid><dc:creator>Avi Pinto</dc:creator><description>&lt;p&gt;Adding the &amp;quot;cancel&amp;quot; class will disable the jQuery validation of the form on submit(it is a feature of jQuery validation).&lt;/p&gt;
&lt;p&gt;This is the behavior i need for partial validation,&lt;/p&gt;
&lt;p&gt;and i manually validate the fields that need validation at the BindSaveDraftButton JS function, returning false if not valid to stop the form from submitting. &lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=756430" width="1" height="1"&gt;</description></item><item><title>re: IModelBinder and property key for successful binding at the ModelState + partial form validation</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/10/28/imodelbinder-and-property-key-for-successful-binding-at-the-modelstate-partial-form-validation.aspx#756301</link><pubDate>Mon, 13 Dec 2010 22:11:16 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:756301</guid><dc:creator>vgirard@spektrummedia.com</dc:creator><description>&lt;p&gt;When you say &amp;quot;oh.. and the button for &amp;nbsp;“save draft” has the class “cancel” so it won’t trigger client validations&amp;quot; what do you mean? &lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=756301" width="1" height="1"&gt;</description></item><item><title>re: jQuery Gotcha: val() might select the wrong option at a select element</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/03/22/jQuery-Gotcha_3A00_-val_28002900_-might-select-the-wrong-option-at-a-select-element_2E00_.aspx#728466</link><pubDate>Wed, 20 Oct 2010 10:05:58 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:728466</guid><dc:creator>Avi Pinto</dc:creator><description>&lt;p&gt;a little follow up&lt;/p&gt;
&lt;p&gt;(though i might write a post about it later)&lt;/p&gt;
&lt;p&gt;in jQuery 1.4.2 they just removed selecting by the text:&lt;/p&gt;
&lt;p&gt;this.selected = jQuery.inArray( jQuery(this).val(), values ) &amp;gt;= 0;&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=728466" width="1" height="1"&gt;</description></item><item><title>HowTo: HTML Input Validation mit ASP.NET MVC &amp;amp; ASP.NET 4 (oder warum geht ValidateInput(false) nicht?) | Code-Inside Blog</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/03/24/simple-rtfem-or-why-asp-net-mvc-validateinput_3D00_false-doesnt-disable-request-validation-on-asp-net-4.aspx#727298</link><pubDate>Sun, 17 Oct 2010 16:39:15 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:727298</guid><dc:creator>HowTo: HTML Input Validation mit ASP.NET MVC &amp; ASP.NET 4 (oder warum geht ValidateInput(false) nicht?) | Code-Inside Blog</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;HowTo: HTML Input Validation mit ASP.NET MVC &amp;amp;amp; ASP.NET 4 (oder warum geht ValidateInput(false) nicht?) | Code-Inside Blog&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=727298" width="1" height="1"&gt;</description></item><item><title>re: MVC2 ActionFilterAttribute - During OnActionExecuting Don't use Redirect Use RedirectResult</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/04/28/MVC2-ActionFilterAttribute-_2D00_-During-OnActionExecuting-Dont-use-Redirect-Use-RedirectResult.aspx#726496</link><pubDate>Fri, 15 Oct 2010 18:00:48 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:726496</guid><dc:creator>Avi Pinto</dc:creator><description>&lt;p&gt;בכיף :)&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=726496" width="1" height="1"&gt;</description></item><item><title>re: Good talk on JavaScript performance + some notes</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/09/28/Good-talk-on-JavaScript-performance-_2B00_-some-notes.aspx#726494</link><pubDate>Fri, 15 Oct 2010 17:58:51 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:726494</guid><dc:creator>Avi Pinto</dc:creator><description>&lt;p&gt;בכיף :)&lt;/p&gt;
&lt;p&gt;כן.. אני &amp;quot;קצת&amp;quot; מזייף עם עניין הכתיבה בשנה האחרונה..&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=726494" width="1" height="1"&gt;</description></item><item><title>re: MVC2 ActionFilterAttribute - During OnActionExecuting Don't use Redirect Use RedirectResult</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/04/28/MVC2-ActionFilterAttribute-_2D00_-During-OnActionExecuting-Dont-use-Redirect-Use-RedirectResult.aspx#726443</link><pubDate>Fri, 15 Oct 2010 15:56:38 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:726443</guid><dc:creator>Rotem Bloom</dc:creator><description>&lt;p&gt;אחלה של דבר תודה.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=726443" width="1" height="1"&gt;</description></item><item><title>re: Good talk on JavaScript performance + some notes</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/09/28/Good-talk-on-JavaScript-performance-_2B00_-some-notes.aspx#726437</link><pubDate>Fri, 15 Oct 2010 15:47:31 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:726437</guid><dc:creator>Rotem Bloom</dc:creator><description>&lt;p&gt;תודה על השיתוף תמיד כיף לקבל טיפים על ביצועים.&lt;/p&gt;
&lt;p&gt;תמשיך לכתוב יותר פוסטים אההההה&lt;/p&gt;
&lt;p&gt;רותם&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=726437" width="1" height="1"&gt;</description></item><item><title>re: Little LifeHack - editing your Hosts file in one click</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2009/09/27/Little-LifeHack-_2D00_-editing-your-Hosts-file-in-one-click.aspx#724209</link><pubDate>Sun, 10 Oct 2010 13:55:31 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:724209</guid><dc:creator>Elad Karako</dc:creator><description>&lt;p&gt;You better use Notepad2 to edit your HOSTS file, it has highlighting and it can handle very well with huge HOST file (even few MB).&lt;/p&gt;
&lt;p&gt;under File menu you can click Properties and Mark/Unmark your HOST file to be ReadOnly (or remove the attribute before you save it), this way Trojans won&amp;#39;t harm you with malicious editing also you can have better control over this important system file.&lt;/p&gt;
&lt;p&gt;here is an example to a shortcut to open your HOST file directly (lets assume Notepad2 is in C:\Software\Notepad2\Notepad2.exe):&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Software\Notepad2\Notepad2.exe&amp;quot; &amp;quot;%WINDIR%\system32\drivers\etc\hosts&amp;quot;&lt;/p&gt;
&lt;p&gt;here are good sources to get a HOSTS file that contains many bad/ads hosts to enable faster surfing&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://iCompile.0fees.net"&gt;http://iCompile.0fees.net&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.mvps.org/winhelp2002/hosts.htm"&gt;www.mvps.org/.../hosts.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blocklistpro.com/download-center/blocklist-pro-blocklists-mirror/?orderby=4"&gt;blocklistpro.com/.../blocklist-pro-blocklists-mirror&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;in order to prevent high CPU hogging from DNS service because of big HOSTS file you should use the fix suggested by Microsoft: &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/318803"&gt;support.microsoft.com/.../318803&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;to make it easy for you I&amp;#39;ve put it in a form of a reg file (copy-paste it to a blank notepad and save it as &amp;quot;DNS High CPU Fix.reg&amp;quot;, use the semicolons when saving it):&lt;/p&gt;
&lt;p&gt;Windows Registry Editor Version 5.00&lt;/p&gt;
&lt;p&gt;; Don&amp;#39;t disable the DNS service, otherwise net connections will get very slow.&lt;/p&gt;
&lt;p&gt;; &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/318803"&gt;support.microsoft.com/.../318803&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;; &lt;a rel="nofollow" target="_new" href="http://www.mvps.org/winhelp2002/hosts.htm"&gt;www.mvps.org/.../hosts.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;; &lt;a rel="nofollow" target="_new" href="http://iCompile.0fees.net"&gt;http://iCompile.0fees.net&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dnscache\Parameters]&lt;/p&gt;
&lt;p&gt;&amp;quot;MaxCacheTtl &amp;quot;=dword:00000001&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dnscache\Parameters]&lt;/p&gt;
&lt;p&gt;&amp;quot;MaxNegativeCacheTtl&amp;quot;=dword:00000000&lt;/p&gt;
&lt;p&gt;save and double it, to merge it into the registry.&lt;/p&gt;
&lt;p&gt;note that if you&amp;#39;ve download few HOSTS files, you might consider cleaning and sorting them first to keep them smaller, or you can browse my blog at &lt;a rel="nofollow" target="_new" href="http://iCompile.0fees.net"&gt;http://iCompile.0fees.net&lt;/a&gt; in order to download a clean and sorted one, and its free, of course.&lt;/p&gt;
&lt;p&gt;one other thing:&lt;/p&gt;
&lt;p&gt;if you want to prevent access to a host, make sure to use 0.0.0.0 and NOT 127.0.0.0 in your HOSTS file, its faster and safer (it doesn&amp;#39;t go through the inner-loop of the host to get an error, it just been blocked, also- 127.0.0.0 is not safe if you have a server running on your computer. so remember to use 0.0.0.0 in order to block bad hosts).&lt;/p&gt;
&lt;p&gt;for example:&lt;/p&gt;
&lt;p&gt;#example.&lt;/p&gt;
&lt;p&gt;0.0.0.0 badADS.Hosts.Com&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=724209" width="1" height="1"&gt;</description></item><item><title>?????????? ???????????????? ?????? ????????  / ???? ?????????? / ???? ?????????????? / ?????? ???????? ???????? ???????????? ???????? ???????? &amp;laquo; ???????? ??????????</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2009/04/12/Go-visit-the-Petach-Tikva-Museum-of-Art.aspx#677418</link><pubDate>Thu, 08 Jul 2010 19:51:51 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:677418</guid><dc:creator>?????????? ???????????????? ?????? ????????  / ???? ?????????? / ???? ?????????????? / ?????? ???????? ???????? ???????????? ???????? ???????? « ???????? ??????????</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;?????????? ???????????????? ?????? ???????? &amp;nbsp;/ ???? ?????????? / ???? ?????????????? / ?????? ???????? ???????? ???????????? ???????? ???????? &amp;amp;laquo; ???????? ??????????&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=677418" width="1" height="1"&gt;</description></item><item><title>Twitter Trackbacks for                 MVC2 ActionFilterAttribute - During OnActionExecuting Don't use Redirect Use RedirectResult - Avi Pinto         [microsoft.co.il]        on Topsy.com</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/04/28/MVC2-ActionFilterAttribute-_2D00_-During-OnActionExecuting-Dont-use-Redirect-Use-RedirectResult.aspx#602890</link><pubDate>Thu, 29 Apr 2010 11:37:35 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:602890</guid><dc:creator>Twitter Trackbacks for                 MVC2 ActionFilterAttribute - During OnActionExecuting Don't use Redirect Use RedirectResult - Avi Pinto         [microsoft.co.il]        on Topsy.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Twitter Trackbacks for &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MVC2 ActionFilterAttribute - During OnActionExecuting Don&amp;#39;t use Redirect Use RedirectResult - Avi Pinto &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [microsoft.co.il] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on Topsy.com&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=602890" width="1" height="1"&gt;</description></item><item><title>re: MVC2 ActionFilterAttribute - During OnActionExecuting Don't use Redirect Use RedirectResult</title><link>http://blogs.microsoft.co.il/blogs/pintyo/archive/2010/04/28/MVC2-ActionFilterAttribute-_2D00_-During-OnActionExecuting-Dont-use-Redirect-Use-RedirectResult.aspx#602666</link><pubDate>Thu, 29 Apr 2010 07:06:57 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:602666</guid><dc:creator>Avi Pinto</dc:creator><description>&lt;div dir="ltr" style="text-align:left;"&gt;
&lt;p&gt;Hi Shay,&lt;/p&gt;
&lt;p&gt;the point of this post wasn&amp;#39;t the &lt;span class="Apple-style-span" style="border-collapse:separate;font-family:&amp;#39;Times New Roman&amp;#39;;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"&gt;&lt;span class="Apple-style-span" style="font-family:arial;font-size:small;"&gt;authentication&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;but the right way to redirect from an ActionFilterAttribute &lt;/p&gt;
&lt;p&gt;concerning the AuthorizeAttribute,&lt;/p&gt;
&lt;p&gt;we are not using forms authenticahion nor the membership &lt;/p&gt;
&lt;p&gt;so by using it we would have to derive from it, conform to it&amp;#39;s limitations(user roles are comma delimited strings), &lt;/p&gt;
&lt;p&gt;implement everything(as we already did) + override the forms authentication module to grab the returned 401 result and redirect to the Login Url&lt;/p&gt;
&lt;p&gt;it is much much simpler to take Robs approach(posted a link to his post), and just use the right redirect&lt;/p&gt;
&lt;iframe id="qtlframe" style="display:none;background-color:white;"&gt;&lt;/iframe&gt;
&lt;/div&gt;&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=602666" width="1" height="1"&gt;</description></item></channel></rss>
