<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-13021382</id><updated>2012-05-01T14:56:55.886+03:00</updated><category term='smo'/><category term='sql2005'/><category term='c#'/><category term='certification'/><category term='javascript html'/><category term='css'/><category term='javascript'/><category term='VSS'/><category term='ajax'/><category term='LLBL'/><category term='windows'/><category term='asp.net'/><category term='Batch'/><category term='.net'/><category term='xslt'/><category term='T-SQL'/><category term='Dos'/><category term='vs2005'/><category term='ie'/><title type='text'>Byte Food</title><subtitle type='html'>Software development stuff.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default?start-index=26&amp;max-results=25'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>60</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-13021382.post-1521756708993607927</id><published>2012-04-10T18:10:00.008+03:00</published><updated>2012-04-10T18:30:24.738+03:00</updated><title type='text'>IE9 scroll jumps to the top when the browser has a scrollbar</title><content type='html'>&lt;span&gt;&lt;span style="font-size: 100%;"&gt;Internet Explorer 9 has one very strange behaviour where inner div's with scrollbars can jump up to the top by themselves.&lt;/span&gt;&lt;/span&gt;
&lt;br/&gt;&lt;br/&gt;

In my case the problem happened when using jquery ui resizable and draggable on DIVs, when using IE9 &lt;b&gt;and the browser has scrollbars&lt;/b&gt; (note that the problem only happens when the browser has scroll bars). If the DIV has an inner DIV with height 100% and overflow scroll or auto. When the outer DIV was resized or dragged the scroll of the inner DIV would jump to the top.
&lt;br/&gt;&lt;br/&gt;

&lt;span&gt;&lt;span style="font-size: 100%;"&gt;After a long investigation (with no google references found at all) I came down to this simple demo of the problem:&lt;/span&gt;&lt;/span&gt;
&lt;br/&gt;&lt;br/&gt;

I filtered the problem down to changing the absolute position of a div in IE9 with scrollbars on the browser.
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;The solution: set "position: relative" on the BODY.&lt;/b&gt;

&lt;br/&gt;&lt;br/&gt;

&lt;div style="border: 1px solid black; background-color: yellow; color: black;"&gt;

&amp;lt;html&amp;gt;
&amp;lt;head runat="server"&amp;gt;
   &amp;lt;title&amp;gt;TEST&amp;lt;/title&amp;gt;
   &amp;lt;script type="text/javascript" src="/Spreadex.Otp.Fins.Web/Scripts/framework/jquery-1.7.2.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

   &amp;lt;div id="resres" style="width: 1500px; height: 300px; background-color: Red; position: absolute; "&amp;gt;
       Test Resizable
       &amp;lt;div style="width: 300px; height: 100%; overflow: scroll" id="testScroll"&amp;gt;
           AAAAAAAAAAA&amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
           BBBBBBBBBB&amp;lt;br /&amp;gt;
           CCCCCCCC&amp;lt;br /&amp;gt;
           &amp;lt;br /&amp;gt;
       &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
   &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
   &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
   &amp;lt;button onclick="res1()"&amp;gt;res1&amp;lt;/button&amp;gt;
   &amp;lt;button onclick="res2()"&amp;gt;res2&amp;lt;/button&amp;gt;

   &amp;lt;script type="text/javascript"&amp;gt;

       function res2() {
           //$('#resres').css({ top: 8 });
           document.getElementById('resres').style.top = "8px";
       }

  
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-1521756708993607927?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/1521756708993607927/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=1521756708993607927&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/1521756708993607927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/1521756708993607927'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2012/04/ie9.html' title='IE9 scroll jumps to the top when the browser has a scrollbar'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-5285302266898458918</id><published>2012-03-30T19:01:00.004+03:00</published><updated>2012-03-30T19:25:21.499+03:00</updated><title type='text'>Downloading files with Internet Explorer 8 or below, and setting the Cache Control on ASP.NET MVC 3</title><content type='html'>This one is worth posting since it took some time and lots of googling to figure out.
&lt;br/&gt;
The web site is ASP.NET MVC3, the browser is IE8 or lower version.
&lt;br/&gt;&lt;br/&gt;
When downloading a file with HTTPS we get the error:
&lt;br/&gt;
"Internet Explorer cannot download filename from sitename. Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
&lt;br/&gt;&lt;br/&gt;
This is a "feature" on IE: See &lt;a href="http://stackoverflow.com/questions/3415370/ie-unable-to-download-from-unable-to-open-this-internet-site-the-request"&gt;http://stackoverflow.com/questions/3415370/ie-unable-to-download-from-unable-to-open-this-internet-site-the-request&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
And the best workaround is to set the "cache-control" header to "private" for these browsers.
&lt;br/&gt;&lt;br/&gt;
The next problem was that setting the cacheability on MVC3 only works if you set it to a value greater than what it is now. So if you set it to NoCache, you can not set it again to Private.
&lt;br/&gt;
See &lt;a href="http://weblogs.asp.net/andrewseven/archive/2005/04/06/SetCacheability.aspx"&gt;http://weblogs.asp.net/andrewseven/archive/2005/04/06/SetCacheability.aspx&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
So, if your website has a generic nocache policy and you want to set a specific request to "private" you need to make sure NoCache is never being set on the same request.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-5285302266898458918?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/5285302266898458918/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=5285302266898458918&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/5285302266898458918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/5285302266898458918'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2012/03/downloading-files-with-internet.html' title='Downloading files with Internet Explorer 8 or below, and setting the Cache Control on ASP.NET MVC 3'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-4960607422858046283</id><published>2011-12-06T17:30:00.004+02:00</published><updated>2011-12-06T17:31:57.931+02:00</updated><title type='text'>Google Adwords conversion failing with Ajax</title><content type='html'>&lt;div&gt;Google adwords conversion script (conversion.js) uses document.write(), which prevents it from working correctly when using dynamic Ajax page loading.&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;Excelent workaround here:&lt;/div&gt;&lt;div&gt;&lt;a href="http://articles.adamwrobel.com/2010/12/23/trigger-adwords-conversion-on-javascript-event"&gt;http://articles.adamwrobel.com/2010/12/23/trigger-adwords-conversion-on-javascript-event&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-4960607422858046283?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/4960607422858046283/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=4960607422858046283&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/4960607422858046283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/4960607422858046283'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2011/12/google-adwords-conversion-failing-with.html' title='Google Adwords conversion failing with Ajax'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-3764162813972665303</id><published>2011-08-31T16:32:00.000+03:00</published><updated>2011-08-31T16:32:07.941+03:00</updated><title type='text'>Visual Studio Macro: Locate Item in Solution Explorer</title><content type='html'>&lt;div&gt;This is a great macro that allows you to locate the current file in edition on the Solution Explorer:&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;a href="http://dvanderboom.wordpress.com/2008/03/21/visual-studio-macro-track-item-in-solution-explorer-on-demand/#comment-1900"&gt;Visual Studio Macro: Locate Item in Solution Explorer on Demand « Critical Development&lt;/a&gt;:


&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-3764162813972665303?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://dvanderboom.wordpress.com/2008/03/21/visual-studio-macro-track-item-in-solution-explorer-on-demand/#comment-1900' title='Visual Studio Macro: Locate Item in Solution Explorer'/><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/3764162813972665303/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=3764162813972665303&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/3764162813972665303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/3764162813972665303'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2011/08/visual-studio-macro-locate-item-in.html' title='Visual Studio Macro: Locate Item in Solution Explorer'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-398064870394014567</id><published>2011-08-05T12:52:00.000+03:00</published><updated>2011-08-05T12:52:26.796+03:00</updated><title type='text'>Using WinMerge with Team Explorer and TFS</title><content type='html'>&lt;div&gt;Nice page explaining how to change the default file compare on Visual Studio Team Explorer:&lt;/div&gt;&lt;div&gt;  &lt;a href="http://www.neovolve.com/post/2007/06/19/using-winmerge-with-tfs.aspx"&gt;Rory Primrose | Using WinMerge with TFS&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-398064870394014567?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.neovolve.com/post/2007/06/19/using-winmerge-with-tfs.aspx' title='Using WinMerge with Team Explorer and TFS'/><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/398064870394014567/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=398064870394014567&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/398064870394014567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/398064870394014567'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2011/08/using-winmerge-with-team-explorer-and.html' title='Using WinMerge with Team Explorer and TFS'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-5975819536102380568</id><published>2011-08-03T17:08:00.000+03:00</published><updated>2011-08-03T17:08:24.814+03:00</updated><title type='text'>WCF and error serializing enums</title><content type='html'>&lt;div&gt;I had a similar problem as described here: &lt;a href="http://www.darkside.co.za/archive/2008/08/01/wcf-error-caused-by-a-serialisation-issue.aspx"&gt;WCF error caused by a serialisation issue&lt;/a&gt;&lt;/div&gt;&lt;div&gt;The exception thrown was too generic: &lt;span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "&gt;The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:59.7490000'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;The best way to go to find reasons for problems not explicitly shown by WCF exceptions is to use the Trace Viewer described in this &lt;a href="http://stackoverflow.com/questions/204032/complex-data-types-in-wcf"&gt;thread&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;Exception was all in the log generated by the server side of WCF.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-5975819536102380568?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/5975819536102380568/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=5975819536102380568&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/5975819536102380568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/5975819536102380568'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2011/08/wcf-and-error-serializing-enums.html' title='WCF and error serializing enums'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-157561316891934892</id><published>2011-07-21T12:42:00.001+03:00</published><updated>2011-07-21T12:42:32.520+03:00</updated><title type='text'>Visio diagram lines changed on copy paste?</title><content type='html'>&lt;div&gt;I drew my diagram on Vision 2003 all nice, when I copied it to Word the dashed lines were changed to solid lines!&lt;/div&gt;&lt;div&gt;Found the resolution on good old Microsoft Support site.&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;a href="http://support.microsoft.com/kb/837294"&gt;Dashed or dotted line patterns are converted to a solid line pattern when you embed a Visio 2003 object in another document&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-157561316891934892?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://support.microsoft.com/kb/837294' title='Visio diagram lines changed on copy paste?'/><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/157561316891934892/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=157561316891934892&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/157561316891934892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/157561316891934892'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2011/07/visio-diagram-lines-changed-on-copy.html' title='Visio diagram lines changed on copy paste?'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-2073568343617431221</id><published>2011-07-18T18:33:00.002+03:00</published><updated>2011-08-08T17:30:42.757+03:00</updated><title type='text'>Using IDs in jQuery Mobile Pages</title><content type='html'>&lt;div&gt;With JQuery Mobile different server pages are loaded on the same client DOM.&lt;/div&gt;&lt;div&gt;If you need to access an element by ID or class which conflicts with another element on another page with the same ID or class (in my case it was the same page with different parameters) you can use the ancestor on the JQuery selector as described by cplee70 in this forum thread:&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;a href="http://forum.jquery.com/topic/using-ids-in-jquery-mobile-pages"&gt;Using IDs in jQuery Mobile Pages - jQuery Forum&lt;/a&gt;: "&lt;div&gt;
$('div.ui-page-active .lat')

instead of just:

$('.lat')&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;EDIT:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Better yet, I started using: $('.lat', $.mobile.activePage)&lt;/b&gt;

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-2073568343617431221?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://forum.jquery.com/topic/using-ids-in-jquery-mobile-pages' title='Using IDs in jQuery Mobile Pages'/><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/2073568343617431221/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=2073568343617431221&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/2073568343617431221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/2073568343617431221'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2011/07/using-ids-in-jquery-mobile-pages.html' title='Using IDs in jQuery Mobile Pages'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-2005248708041361918</id><published>2010-06-23T19:49:00.002+03:00</published><updated>2010-06-23T19:55:13.409+03:00</updated><title type='text'>aspnet_wp.exe stopped unexpectedly</title><content type='html'>&lt;div&gt;On one of our deployed environments ASP.NET crashed completely when accessing an Interop dll that invokes MATLAB code.&lt;/div&gt;&lt;div&gt;We isolated the line of code that had the problem, this would run ok from a console application but crash miserly on ASP.NET. Event viewer shows "aspnet_wp.exe (PID: xxxx) stopped unexpectedly".&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;After spending a lot of time trying different things and googling, I finally ran into &lt;a href="http://www.issociate.de/board/goto/769838/aspnet_wp.exe_crashing.html"&gt;this one&lt;/a&gt;. &lt;/div&gt;&lt;div&gt;I'm not sure of the security consequences of this change, but since it is on the .NET context, for that environment it seems like a safe solution.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-2005248708041361918?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/2005248708041361918/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=2005248708041361918&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/2005248708041361918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/2005248708041361918'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2010/06/aspnetwpexe-stopped-unexpectedly.html' title='aspnet_wp.exe stopped unexpectedly'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-5230619949601414116</id><published>2009-10-15T15:34:00.001+03:00</published><updated>2009-10-15T15:36:08.386+03:00</updated><title type='text'>Xcopy not working from System.Diagnostics.Process.Start()</title><content type='html'>This one wasn't easy.&lt;div&gt;See &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/ab3c0cc7-83c2-4a86-9188-40588b7d1a52/"&gt;http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/ab3c0cc7-83c2-4a86-9188-40588b7d1a52/&lt;/a&gt;
&lt;div&gt;"&lt;span class="Apple-style-span" style="font-family: Verdana, Geneva, Arial, sans-serif; font-size: small; "&gt;This is a quirk of xcopy.exe.  If you redirect the output, you have to redirect the input as well."&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-5230619949601414116?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/5230619949601414116/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=5230619949601414116&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/5230619949601414116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/5230619949601414116'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2009/10/xcopy-not-working-from.html' title='Xcopy not working from System.Diagnostics.Process.Start()'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-2537097397088780068</id><published>2009-09-07T10:22:00.001+03:00</published><updated>2009-09-07T10:23:09.216+03:00</updated><title type='text'>SQL 2008 - "Saving changes is not permitted."</title><content type='html'>&lt;div&gt;On SQL 2008 Management Studio  Icoudln't save the changes done on a table.&lt;/div&gt;This seemed strange, but was easy to fix:&lt;div&gt;
&lt;div&gt;&lt;a href="http://weblogs.asp.net/pabloperalta/archive/2008/09/23/sql-2008-quot-saving-changes-is-not-permitted-quot-error-message.aspx"&gt;http://weblogs.asp.net/pabloperalta/archive/2008/09/23/sql-2008-quot-saving-changes-is-not-permitted-quot-error-message.aspx&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-2537097397088780068?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/2537097397088780068/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=2537097397088780068&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/2537097397088780068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/2537097397088780068'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2009/09/sql-2008-saving-changes-is-not.html' title='SQL 2008 - &quot;Saving changes is not permitted.&quot;'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-2650670458709385787</id><published>2009-04-21T21:28:00.003+03:00</published><updated>2009-04-21T21:30:49.156+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><title type='text'>Running dynamic javascript generated on the UpdatePanel partial postback</title><content type='html'>&lt;div&gt;I found this great piece of code that allows a more or less generic way of running javascript generated during the processing of a partial postback within an UpdatePanel.&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;It runs all the script inside script tags with a certain ID.&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;a href="http://www.31a2ba2a-b718-11dc-8314-0800200c9a66.com/2008/08/dynamic-javascript-in-update-panel_19.html?showComment=1240338420000#c118959118652221112"&gt;http://www.31a2ba2a-b718-11dc-8314-0800200c9a66.com/2008/08/dynamic-javascript-in-update-panel_19.html?showComment=1240338420000#c118959118652221112&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-2650670458709385787?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/2650670458709385787/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=2650670458709385787&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/2650670458709385787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/2650670458709385787'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2009/04/running-dynamic-javascript-generated-on.html' title='Running dynamic javascript generated on the UpdatePanel partial postback'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-4090830130143604957</id><published>2009-04-17T10:48:00.002+03:00</published><updated>2009-04-17T11:04:00.627+03:00</updated><title type='text'>Stuck with static constructor exception</title><content type='html'>&lt;div&gt;It took me quite some time to understand why I was getting allways the same exception on a static constructor. So this blog confirmed what I suspected. The exception is cached and thrown again:&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;a href="http://weblogs.asp.net/avnerk/archive/2008/12/16/static-constructor-throws-the-same-exception-again-and-again.aspx"&gt;http://weblogs.asp.net/avnerk/archive/2008/12/16/static-constructor-throws-the-same-exception-again-and-again.aspx&lt;/a&gt;

&lt;div&gt;I found this with .NET2.0
I believe .NET 3.5 works differently since they added this to the documentation:&lt;/div&gt;&lt;div&gt;"&lt;span class="Apple-style-span"   style="  line-height: 15px; font-family:Verdana;font-size:11px;"&gt;If a static constructor throws an exception, the runtime will not invoke it a second time, and the type will remain uninitialized for the lifetime of the application domain in which your program is running"&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-4090830130143604957?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/4090830130143604957/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=4090830130143604957&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/4090830130143604957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/4090830130143604957'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2009/04/stuck-with-static-constructor-exception.html' title='Stuck with static constructor exception'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-8785437506791766407</id><published>2009-03-18T17:08:00.002+02:00</published><updated>2009-03-18T17:10:59.977+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Check if 2 dates belong to the same week</title><content type='html'>&lt;div&gt;I found this post while looking for the solution to the problem in C#.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;a href="http://quickduck.com/blog/2008/11/03/reader-challenge/" style="text-decoration: none;"&gt; &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;&lt;a href="http://quickduck.com/blog/2008/11/03/reader-challenge/" style="text-decoration: none;"&gt;http://quickduck.com/blog/2008/11/03/reader-challenge/&lt;/a&gt;&lt;/span&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;I endded up using the code:&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;div&gt;        public static bool InSameWeek(DateTime d1, DateTime d2)&lt;/div&gt;&lt;div&gt;        {&lt;/div&gt;&lt;div&gt;            DateTime beginningOfWeekDate1 = GetFirstDayOfWeek(d1);&lt;/div&gt;&lt;div&gt;            DateTime beginningOfWeekDate2 = GetFirstDayOfWeek(d2);&lt;/div&gt;&lt;div&gt;            return beginningOfWeekDate1 == beginningOfWeekDate2;&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;        /// &lt;summary&gt;&lt;/div&gt;&lt;div&gt;        /// Considers monday to be the first day of week&lt;/div&gt;&lt;div&gt;        /// &lt;/summary&gt;&lt;/div&gt;&lt;div&gt;        /// &lt;param name="d"&gt;&lt;/param&gt;&lt;/div&gt;&lt;div&gt;        /// &lt;returns&gt;&lt;/returns&gt;&lt;/div&gt;&lt;div&gt;        private static DateTime GetFirstDayOfWeek(DateTime d)&lt;/div&gt;&lt;div&gt;        {&lt;/div&gt;&lt;div&gt;            switch (d.DayOfWeek)&lt;/div&gt;&lt;div&gt;            {&lt;/div&gt;&lt;div&gt;                case DayOfWeek.Monday:&lt;/div&gt;&lt;div&gt;                    return d;&lt;/div&gt;&lt;div&gt;                case DayOfWeek.Tuesday:&lt;/div&gt;&lt;div&gt;                    return d.AddDays(-1);&lt;/div&gt;&lt;div&gt;                case DayOfWeek.Wednesday:&lt;/div&gt;&lt;div&gt;                    return d.AddDays(-2);&lt;/div&gt;&lt;div&gt;                case DayOfWeek.Thursday:&lt;/div&gt;&lt;div&gt;                    return d.AddDays(-3);&lt;/div&gt;&lt;div&gt;                case DayOfWeek.Friday:&lt;/div&gt;&lt;div&gt;                    return d.AddDays(-4);&lt;/div&gt;&lt;div&gt;                case DayOfWeek.Saturday:&lt;/div&gt;&lt;div&gt;                    return d.AddDays(-5);&lt;/div&gt;&lt;div&gt;                case DayOfWeek.Sunday:&lt;/div&gt;&lt;div&gt;                    return d.AddDays(-6);&lt;/div&gt;&lt;div&gt;                default:&lt;/div&gt;&lt;div&gt;                    throw new ApplicationException();&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;/blockquote&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-8785437506791766407?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/8785437506791766407/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=8785437506791766407&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/8785437506791766407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/8785437506791766407'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2009/03/check-if-2-dates-belong-to-same-week.html' title='Check if 2 dates belong to the same week'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-6431854041734838899</id><published>2009-01-17T15:23:00.000+02:00</published><updated>2009-01-17T15:23:07.640+02:00</updated><title type='text'>Equals on Javascript between different types</title><content type='html'>Equality with javascript between differetn types has it's pitfalls, for example between bool and string.&lt;br&gt;
Fortunately there is the operator ===&lt;br&gt;
'false' == '' -&gt; true&lt;br&gt;
'false' === '' -&gt; false&lt;br&gt;
&lt;br&gt;
See &lt;a href="http://www.mapbender.org/JavaScript_pitfalls:_null,_false,_undefined,_NaN#Comparison_via_.3D.3D.3D"&gt;JavaScript pitfalls: null, false, undefined, NaN - MapbenderWiki&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-6431854041734838899?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/6431854041734838899/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=6431854041734838899&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/6431854041734838899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/6431854041734838899'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2009/01/equals-on-javascript-between-different.html' title='Equals on Javascript between different types'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-6728143084628710899</id><published>2008-11-05T18:26:00.000+02:00</published><updated>2008-11-05T18:27:11.768+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dos'/><category scheme='http://www.blogger.com/atom/ns#' term='Batch'/><title type='text'>Return a result code from a batch file</title><content type='html'>How to return a result code (ERRORLEVEL) from a batch file. 
&lt;br&gt;
     exit /B 63
&lt;br&gt;
See &lt;a href="http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20687843.html"&gt;Batch script return code : return, batch, code, script&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-6728143084628710899?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/6728143084628710899/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=6728143084628710899&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/6728143084628710899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/6728143084628710899'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/11/return-result-code-from-batch-file.html' title='Return a result code from a batch file'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-3618757688688871128</id><published>2008-10-13T14:17:00.000+03:00</published><updated>2008-10-13T14:17:09.827+03:00</updated><title type='text'>Enable or Disable Triggers on SQL Server 7.0</title><content type='html'>Icreated a trigger to prevent deletion of data from a table. but of course in some cases (Database initialization) ı need to override the trigger.
Here's how: &lt;a href="http://www.devx.com/tips/Tip/13019"&gt;Enable or Disable Triggers on SQL Server 7.0&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-3618757688688871128?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/3618757688688871128/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=3618757688688871128&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/3618757688688871128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/3618757688688871128'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/10/enable-or-disable-triggers-on-sql.html' title='Enable or Disable Triggers on SQL Server 7.0'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-9059599631062339184</id><published>2008-10-06T14:42:00.001+03:00</published><updated>2008-10-06T14:46:14.827+03:00</updated><title type='text'>Log unexpected exceptions in a windows service and in an APPDomain in general</title><content type='html'>My services stopped without reason and I had no thing on the log except the System Event Log. A good solution to log fatal errors is to use the event AppDomain.CurrentDomain.UnhandledException (see
&lt;a href="http://bytes.com/forum/thread238006.html"&gt;Cannot catch Exception in a thread - .NET C#)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-9059599631062339184?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/9059599631062339184/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=9059599631062339184&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/9059599631062339184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/9059599631062339184'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/10/log-unexpected-exceptions-in-windows.html' title='Log unexpected exceptions in a windows service and in an APPDomain in general'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-4863707112714210462</id><published>2008-09-19T12:00:00.000+03:00</published><updated>2008-09-19T12:00:31.080+03:00</updated><title type='text'>ınclude extra classes on a web service not referenced yb the parameters directly</title><content type='html'>We created a webmethod that would receive a list of objects, Sometimes these objects are integers or strings, sometimes they can be a more complex type, like CustomClass[].
Turns out that with XmlIncludeAttribute solved the problem, thanks to this post:

&lt;a href="http://social.msdn.microsoft.com/forums/en-US/asmxandxml/thread/6e95c165-afae-490e-8f5d-6bb351d4bd58/"&gt;WebMethod can't serialise an array of custom type : ASMX Web Services and XML Serialization : .NET Development : MSDN Forums&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-4863707112714210462?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://social.msdn.microsoft.com/forums/en-US/asmxandxml/thread/6e95c165-afae-490e-8f5d-6bb351d4bd58/' title='ınclude extra classes on a web service not referenced yb the parameters directly'/><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/4863707112714210462/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=4863707112714210462&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/4863707112714210462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/4863707112714210462'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/09/nclude-extra-classes-on-web-service-not.html' title='ınclude extra classes on a web service not referenced yb the parameters directly'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-4742179182909929021</id><published>2008-07-11T18:57:00.000+03:00</published><updated>2008-07-11T18:57:42.899+03:00</updated><title type='text'>F7 to switch from ASPX "Source" to C# codebehind</title><content type='html'>The trick is to configure the View.ToggleDesigner to F7.

From &lt;a href="http://forums.asp.net/t/981786.aspx?PageIndex=2"&gt;F7 to switch from ASPX "Source" to C# codebehind - doesn't work? - ASP.NET Forums&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-4742179182909929021?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://forums.asp.net/t/981786.aspx?PageIndex=2' title='F7 to switch from ASPX &quot;Source&quot; to C# codebehind'/><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/4742179182909929021/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=4742179182909929021&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/4742179182909929021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/4742179182909929021'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/07/f7-to-switch-from-aspx-source-to-c.html' title='F7 to switch from ASPX &quot;Source&quot; to C# codebehind'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-8290663669124133891</id><published>2008-06-28T21:00:00.000+03:00</published><updated>2008-06-28T21:00:22.731+03:00</updated><title type='text'>Caching in ASP.NET with a dependency on the SQL Server</title><content type='html'>As I suspected when you use caching on ASP.NET 2.0 with SQL Server Dependency in SQL Server 2005 the system is not implemented with a polling mechanis as in previous versions of SQL Server. It uses the NOtifications Services to advise the ASP.NET that some cache item must be cleared.
See &lt;a href="http://msdn.microsoft.com/en-us/library/ms178604.aspx"&gt;Caching in ASP.NET with the SqlCacheDependency Class&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-8290663669124133891?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/8290663669124133891/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=8290663669124133891&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/8290663669124133891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/8290663669124133891'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/06/caching-in-aspnet-with-dependency-on.html' title='Caching in ASP.NET with a dependency on the SQL Server'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-5711337004125359805</id><published>2008-06-22T02:03:00.003+03:00</published><updated>2008-06-22T02:27:21.480+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><title type='text'>Microsoft certification 70-536</title><content type='html'>I just watched an excellent &lt;a href="https://www.livemeeting.com/cc/lmevents/view?id=msft061108lm&amp;amp;pw=ATT11784lm&amp;amp;cn="&gt;presentation about the Microsoft certification 70-536&lt;/a&gt; (Microsoft .NET Framework).
I was very impressed by the quality of the presentation and the functionalities of the player itself!
I have one certification made 3 years ago, and I want to do some more pretty soon, from what I could understand the first one to take for developers is the 70-536.
The presentation gives a general explanation about the content of the exam. It also gives out some links to resources (pasted below).
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;p&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exams/70-536.mspx"&gt;Books and      training&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;a href="http://en.csharp-online.net/Microsoft_Exam_70-536_Study_Guide"&gt;C#      Online learning guide&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;o:p&gt;Practices Tests: &lt;a href="http://www.measureup.com/"&gt;measureup.com&lt;/a&gt;&lt;/o:p&gt; , &lt;a href="http://www.selftestsoftware.com/"&gt;selftestsoftware.com&lt;/a&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;a href="http://blogs.msdn.com/trika/"&gt;Blog about MS certifications&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;
&lt;/p&gt;&lt;p class="MsoNormal"&gt;I want to get 2 kinds of materials (books?) one on the theory and one with exercises, but I still couldn't understand what's the best place for that (everyone I talk to uses some pirate memorize-the-answers books, but I think I don't want to go that way)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-5711337004125359805?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/5711337004125359805/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=5711337004125359805&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/5711337004125359805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/5711337004125359805'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/06/microsoft-certification-70-536.html' title='Microsoft certification 70-536'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-7144296623314743672</id><published>2008-05-26T17:57:00.003+03:00</published><updated>2008-05-26T18:50:05.551+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ie'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript html'/><title type='text'>Page with big table and many text inputs is stuck on loading, in IE</title><content type='html'>Problem: A page with a table with 300 rows and a total of 1500 input text boxes was rendered fast but I couldn't scroll for 20 seconds. It seemed like the whole Internet Explorer was stuck, frozen  doing something.
I tried several things to find out where the problem was.
&lt;ul&gt;&lt;li&gt;Removed all javascript from the page, still slow
&lt;/li&gt;&lt;li&gt;Removed all elements from the page except the basic structure (html, body, form) and the table with the inputs, still slow
&lt;/li&gt;&lt;li&gt;Took out all id and name attributes from the inputs, still slow&lt;/li&gt;&lt;li&gt;Removed the form tag, page opened and scrolled fast (we need the FORM though :P)
&lt;/li&gt;&lt;li&gt;Removed the table and kept all 1500 inputs, page opened and scrolled fast (we need the layout though :P)&lt;/li&gt;&lt;/ul&gt;Tested the page on Firefox and it would load and scroll fast.
So all I could find was that a page with a form with a table containing a considerable number of textboxes would freeze in IE for some time.

After asking for the help of others, in the hope of some enlightment, we found out that a friend had no problems opening and scrolling the page! I quikly realized that the problem was in the Google Toolbar AutoFill functionality...

It seems like Firefox doesn't have the same problem when using the Google Toolbar.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-7144296623314743672?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/7144296623314743672/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=7144296623314743672&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/7144296623314743672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/7144296623314743672'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/05/page-with-big-table-and-many-text.html' title='Page with big table and many text inputs is stuck on loading, in IE'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-7442681382340873165</id><published>2008-04-21T15:40:00.001+03:00</published><updated>2008-04-21T15:40:56.346+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2005'/><category scheme='http://www.blogger.com/atom/ns#' term='VSS'/><title type='text'>Share and Pin in Visual SourceSafe</title><content type='html'>Nice step by step on what to do to share, branch and merge with VSS, and how to integrate that with Visual Studio 2005: 
&lt;a href="http://www.testingreflections.com/node/view/3305"&gt;Share and Pin in Visual SourceSafe | testingReflections.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-7442681382340873165?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/7442681382340873165/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=7442681382340873165&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/7442681382340873165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/7442681382340873165'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/04/share-and-pin-in-visual-sourcesafe.html' title='Share and Pin in Visual SourceSafe'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13021382.post-7366197180266901000</id><published>2008-04-02T13:39:00.001+03:00</published><updated>2008-04-02T13:40:25.138+03:00</updated><title type='text'>Nice article about Deadlock's</title><content type='html'>Very helpfull in finding the reason behing the deadlocks: 
&lt;a href="http://blogs.msdn.com/bartd/archive/2006/09/09/Deadlock-Troubleshooting_2C00_-Part-1.aspx"&gt;Bart Duncan&amp;#39;s SQL Weblog : Deadlock Troubleshooting, Part 1&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13021382-7366197180266901000?l=bytefood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://blogs.msdn.com/bartd/archive/2006/09/09/Deadlock-Troubleshooting_2C00_-Part-1.aspx' title='Nice article about Deadlock&apos;s'/><link rel='replies' type='application/atom+xml' href='http://bytefood.blogspot.com/feeds/7366197180266901000/comments/default' title='Enviar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13021382&amp;postID=7366197180266901000&amp;isPopup=true' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/7366197180266901000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13021382/posts/default/7366197180266901000'/><link rel='alternate' type='text/html' href='http://bytefood.blogspot.com/2008/04/nice-article-abuot-deadlocks.html' title='Nice article about Deadlock&apos;s'/><author><name>Aziz</name><uri>http://www.blogger.com/profile/04897882710688926268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
