Browse by Tags
All Tags »
Imported (
RSS)
Sorry, but there are no more tags available to filter with.
It's amazing how time can change your perspective. Three years ago, approaching the end of my army duty, I was already certain that I want to start my academic studies as soon as I can. Contrary to so many others, taking a long vacation after their army duty to "see the world" (i.e. thailand/ india) and "clean your head" (i.e. check how much weed the human body can endure) I was pretty certain I want to finish off with my studies first. I was determined that a B.Sc. at one...
As part of our effort to improve performance, we decided on a set of entities that should be cached. One of those was IPLAction. Happy at my brand new shiny cache, things turned around to kick me in the *#!%$ when I found out that the cache is constantly invalidated. Near the end of the request, a Flush() call will be sent to NH Session, the request will end and a minute after that – when asp cache polling mechanism polls the db - the cache is Re-loaded from db. SQL Profiler will show a bunch of...
Well, this might be a very small issue, but if this works : delegate TRes ExpDelegate <TArg, TRes>(TArg arg1); void LinqTest() { Expression < ExpDelegate < string , bool >> ex = (n => n.Length > 5); } Why doesn't this work : delegate TRes ExpDelegate <TArg, TRes>( params TArg[] arg1); void LinqTest() { Expression < ExpDelegate < string , bool >> ex = ((n,k) => n.Length > k.Length); } I know I can change the argument type (to be a collection or whatnot...
To anyone that have ever seen or heard enough of Ayende, the following post just clears away all speculation. http://kyle.baley.org/DoAndroidsDreamOfElectricMonorailsWhileTheyreHibernating.aspx Thanks, Kyle. Some of us were starting to develop an inferiority complex. :)
Colleges in israel have a problem. Well, it's more of a problem for us, students. It's the marketialization of academics - buzzwordemics. and I'll be specific. A new-comer to the world of a college's Comp.Science major will mainly hear about all the wonderfull programming languages and technologies he's about to learn : c, c++, c#, Java, asp/php, javascript, html, sql, and the list goes on... Oh, and yes - in the midst are Unix/Linux classes, and even some Oracle (PL-SQL) classes...
The problem occured for me when I had 2 tabs, and on the second tab there was a listbox with AutoPostBack set to "true". When a list item was clicked - the postback result would be that the TabContainer jumped back to the first tab panel (not maintaining "current active tab" state). Well, small override if you don't want to delve into the source code : <ajaxtoolkit:tabcontainer id="tc" runat="server" onclientactivetabchanged="SwitchTab">...
For more than two months (shameful to admit), four programmers in my company were experiencing a freakish phenomena while trying to view locally served web content - 90% of all page views directed to http://localhost/ in any subdir or extension - you would recieve corrupt content from your own IIS - html pages seemed screwed up, javascript errors all over the place, and sometimes even image content would seem, ahm, well, corrupt... The corruption manifests itself in a completely inconsist manner...
Well, I used to slap the “[ThreadStatic]” attribute on static members that I wanted to be Unique to the current request (null at the start of next one). It seems that, logically enough – it doesn’t really work that way. Since ASP.Net uses a threadPool, several consecutive requests may be served by the same thread, and all of your nice decorated members aren’t really unique at all. (Makes sense, but I never really gave it any thought) There is a solution – Here’s an article that explains the entire...
1. GetPostBackEventReference of control inside UpdatePanel - performs full postback instead Partial postback : This one can drive you nutters, since the __doPostBack call is almost the same for other elements which perform partial postback. btn.Attributes["onclick"] = GetPostBackEventReference(this, string.Empty); Although btn is inside the updatepanel - "this", the containing control, might not be - and that makes all the difference. If the control's clientId is pre-registered...