Blog

Archive for April, 2008

ASP.Net AJAX Extensions, GetPostBackEventReference And Custom Controls

Sunday, April 27th, 2008

If you’ve a piece of code similar to this one, and try to use the control inside an UpdatePanel then you might be surprised to see that triggering that event will in fact do a complete PostBack of the page (read Refresh-like-Postback): public override void Render(HtmlTextWriter writer) { Response.Write(“Button”, Page.ClientScript.GetPostBackEventReference(this, “onclick”)); } The reason is […]


Fedora 8 and the Sudo command

Thursday, April 3rd, 2008

Today I was checking out the latest mono from subversion and something funny was happening, I wasn’t able to install the builds if I used sudo make install, the error I was getting was a bit different from package to package but always looked something like: /usr/local/bin/gacutil /i monodoc.dll /f /package monodoc /gacdir /usr/local/lib /root […]


New Laptop – HP dv6799ep – (Near) Perfect Linux Compability

Wednesday, April 2nd, 2008

I’ve a new laptop, an HP dv6799ep (dv6700 series special edition). The reason I choose this exact version was the 4GB of RAM and the Intel 9300 (dual core, 2.5GHz, FSB 800MHz and 6MB cache) which is a great combination to develop on the road and use virtualization . My main concern with a new […]


How To: Random DateTime(s)

Tuesday, April 1st, 2008

I had a small database project that needed about a million records to stress test its performance and the front office application. For some reason, working with DateTime in C# is not always straightforward, and you might need some research and trial & errors until you can get something as simple as random date/time generation […]