<?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-4994114216265655714</id><updated>2012-02-16T20:46:07.516-08:00</updated><category term='AJAX'/><category term='DataList'/><category term='javascript'/><category term='html'/><category term='IE8'/><category term='ASP.NET'/><title type='text'>Easy things learned hard way</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://i-um.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://i-um.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>i-um</name><uri>http://www.blogger.com/profile/05511449654375744439</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>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4994114216265655714.post-4038979323718768339</id><published>2010-07-06T06:14:00.000-07:00</published><updated>2010-07-06T06:16:32.482-07:00</updated><title type='text'>ASP.NET failure</title><content type='html'>Faulting application name: w3wp.exe, version: 7.5.7600.16385, time stamp: 0x4a5bd0eb&lt;br /&gt;Faulting module name: mscorwks.dll, version: 2.0.50727.4927, time stamp: 0x4a27466f&lt;br /&gt;&lt;br /&gt;can happen because you have messed with GAC (like I did)&lt;br /&gt;readding assemblies using gacutil helps&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4994114216265655714-4038979323718768339?l=i-um.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-um.blogspot.com/feeds/4038979323718768339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://i-um.blogspot.com/2010/07/aspnet-failure.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/4038979323718768339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/4038979323718768339'/><link rel='alternate' type='text/html' href='http://i-um.blogspot.com/2010/07/aspnet-failure.html' title='ASP.NET failure'/><author><name>i-um</name><uri>http://www.blogger.com/profile/05511449654375744439</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4994114216265655714.post-6476694564784347179</id><published>2009-11-09T05:58:00.000-08:00</published><updated>2009-11-09T06:00:00.788-08:00</updated><title type='text'>Passing arrays to SQL server as parameter</title><content type='html'>A slow and dirty way:&lt;br /&gt;&lt;br /&gt;@param = ',one,two,three,'&lt;br /&gt;SELECT * FROM foo WHERE @param LIKE '%,'+bar+',%'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4994114216265655714-6476694564784347179?l=i-um.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-um.blogspot.com/feeds/6476694564784347179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://i-um.blogspot.com/2009/11/passing-arrays-to-sql-server-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/6476694564784347179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/6476694564784347179'/><link rel='alternate' type='text/html' href='http://i-um.blogspot.com/2009/11/passing-arrays-to-sql-server-as.html' title='Passing arrays to SQL server as parameter'/><author><name>i-um</name><uri>http://www.blogger.com/profile/05511449654375744439</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-4994114216265655714.post-3840929094631572248</id><published>2009-10-28T19:57:00.001-07:00</published><updated>2009-10-28T20:00:11.254-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IE8'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>IE8 and authentication cookies</title><content type='html'>It's rather hard to google it out, here's how to make them work on any IE8:&lt;br /&gt;&amp;lt;authentication mode="Forms" domain="yoursite.com"&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4994114216265655714-3840929094631572248?l=i-um.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-um.blogspot.com/feeds/3840929094631572248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://i-um.blogspot.com/2009/10/ie8-and-authentication-cookies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/3840929094631572248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/3840929094631572248'/><link rel='alternate' type='text/html' href='http://i-um.blogspot.com/2009/10/ie8-and-authentication-cookies.html' title='IE8 and authentication cookies'/><author><name>i-um</name><uri>http://www.blogger.com/profile/05511449654375744439</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-4994114216265655714.post-7027766780313288045</id><published>2009-09-23T11:07:00.001-07:00</published><updated>2009-09-23T11:13:09.101-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><title type='text'>Another way to preload images in javascript</title><content type='html'>function preloadImg(url) {&lt;br /&gt;var divPreLoad = '&amp;lt;div style=&amp;quot;height:0px; width:1px; background-image:url(' + url + ')&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;';&lt;br /&gt;document.write(divPreLoad);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4994114216265655714-7027766780313288045?l=i-um.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-um.blogspot.com/feeds/7027766780313288045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://i-um.blogspot.com/2009/09/another-way-to-preload-images-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/7027766780313288045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/7027766780313288045'/><link rel='alternate' type='text/html' href='http://i-um.blogspot.com/2009/09/another-way-to-preload-images-in.html' title='Another way to preload images in javascript'/><author><name>i-um</name><uri>http://www.blogger.com/profile/05511449654375744439</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-4994114216265655714.post-3657425629252051545</id><published>2009-09-21T14:19:00.000-07:00</published><updated>2009-09-21T14:25:03.812-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='DataList'/><title type='text'>DataList with automatically generated columns</title><content type='html'>DataList can repeat, but can't autogenerate.&lt;br /&gt;DetailsView can autogenerate, but can't repeat (but requires a list as datasource, thus the array)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;      &amp;lt;asp:DataList ID="dvResults" runat="server" ondatabound="dvResults_DataBound"&amp;gt;&lt;br /&gt;          &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;              &amp;lt;asp:DetailsView ID="subDvResult" runat="server" RowStyle-CssClass="row"&lt;br /&gt;                  DataSource='&amp;lt;%# new System.Collections.Generic.List&amp;lt;System.Data.DataRowView&amp;gt;(new System.Data.DataRowView[]{(System.Data.DataRowView)Container.DataItem}) %&amp;gt;'&amp;gt;&lt;br /&gt;              &amp;lt;/asp:DetailsView&amp;gt;&lt;br /&gt;          &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;          &amp;lt;SeparatorTemplate&amp;gt;&lt;br /&gt;              &amp;lt;br /&amp;gt;&lt;br /&gt;          &amp;lt;/SeparatorTemplate&amp;gt;&lt;br /&gt;      &amp;lt;/asp:DataList&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4994114216265655714-3657425629252051545?l=i-um.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-um.blogspot.com/feeds/3657425629252051545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://i-um.blogspot.com/2009/09/datalist-with-automatically-generated.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/3657425629252051545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/3657425629252051545'/><link rel='alternate' type='text/html' href='http://i-um.blogspot.com/2009/09/datalist-with-automatically-generated.html' title='DataList with automatically generated columns'/><author><name>i-um</name><uri>http://www.blogger.com/profile/05511449654375744439</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-4994114216265655714.post-457717063854207571</id><published>2009-08-04T15:39:00.000-07:00</published><updated>2009-09-09T02:59:43.119-07:00</updated><title type='text'>Screen Keyboard</title><content type='html'>Here comes a brand new shiny and seeming to be the only one of a kind... I'll define it by a list keywords for Google to find:&lt;br /&gt;&lt;br /&gt;Screen Keyboard Firefox Extension XUL Javascript Mozilla FireFox plugin Touchscreen Kiosk Input URL&lt;br /&gt;&lt;br /&gt;&lt;img src="http://bayimg.com/image/kadfjaacb.jpg" alt="My baby" /&gt;&lt;br /&gt;&lt;br /&gt;It can modify textboxes in a webpage and the url textbox to enter URLs.&lt;br /&gt;&lt;br /&gt;I'll open it to the opensource community after the guy who ordered it will pay :] Or after someone else writes it and the guy googles it out. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;UPD:&lt;/span&gt; &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/14194/"&gt;here it is&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Because XUL and FF are around for like 5 years, and it took me like 3 days to create the thing. I'm sure this idea is crossing minds of another 99 code monkeys across the globe (and some forums posts show that they already did in the past, fruitlessly)&lt;br /&gt;&lt;br /&gt;P.S.: being a dedicated fan of Opera, I must admit that FireFox IS a platform.&lt;br /&gt;P.P.S.:Why the geck did Google give Chrome browser &lt;a href="http://en.wikipedia.org/wiki/Chrome_Mozilla"&gt;this name&lt;/a&gt;?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4994114216265655714-457717063854207571?l=i-um.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-um.blogspot.com/feeds/457717063854207571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://i-um.blogspot.com/2009/08/screen-keyboard.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/457717063854207571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/457717063854207571'/><link rel='alternate' type='text/html' href='http://i-um.blogspot.com/2009/08/screen-keyboard.html' title='Screen Keyboard'/><author><name>i-um</name><uri>http://www.blogger.com/profile/05511449654375744439</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-4994114216265655714.post-5219344089833777003</id><published>2009-07-02T12:18:00.000-07:00</published><updated>2009-07-02T12:37:42.330-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>UpdatePanel doesn't update</title><content type='html'>&lt;p&gt;Once upon a time I had a master page with s number of Content placeholders. Also I had a page with an UpdatePanel in one Content and a GridView in another. What I wanted was the GridView row clicks to trigger UpdatePanels's refresh.&lt;/p&gt;&lt;p&gt;I tried OnSelectedIndexChanged (adding a LinkButton of Select command in the GW) with no success.&lt;/p&gt;&lt;p&gt;I tried to add another UpdatePanel2 as parent for the GridView with ChildrenAsTriggers=true, catch LinkButtons' OnClicks and update UpdatePanel 1 from there - the breakpoints didn't hit again.&lt;/p&gt;&lt;p&gt;The fast, dirty and easy solution was to replace those LinkButtons with &lt;input type="button"&gt; and add following function (found somewhere in Internet) to its onclick:&lt;/p&gt;&lt;p&gt;    function forceAJAXPostback(eventTarget, eventArgument)&lt;br /&gt;    {&lt;br /&gt;        var prm = Sys.WebForms.PageRequestManager.getInstance(); &lt;br /&gt;        prm._doPostBack(eventTarget, eventArgument);&lt;br /&gt;    }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Then in Page_Load I just parsed Request.Form["__EVENTTARGET"], and if it was what I passed (some constant), then Request.Form["__EVENTARGUMENT"] was used to update the UpdatePanel. UpdatePanel was set to conditional update.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Alternatively, you can pass a button id as eventTarget - it doesn't even have to be the UniqueId, add the button's Click to the UpdatePanel's triggers and do what you need in the button's Click handler. The button also doesn't have to be displayed.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4994114216265655714-5219344089833777003?l=i-um.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-um.blogspot.com/feeds/5219344089833777003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://i-um.blogspot.com/2009/07/updatepanel-doesnt-update.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/5219344089833777003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4994114216265655714/posts/default/5219344089833777003'/><link rel='alternate' type='text/html' href='http://i-um.blogspot.com/2009/07/updatepanel-doesnt-update.html' title='UpdatePanel doesn&apos;t update'/><author><name>i-um</name><uri>http://www.blogger.com/profile/05511449654375744439</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>
