Author Archive

Quick tip: Creating multiple user controls with simillar properties

Imagine you just created 4 or 5 or n different Web user controls in your ASP.NET WebForms application. Now you realized that they all share some properties. This is a problem, because it means you are having nearly identical code in multiple spots. What you can do is create a partial public class that inherits […]

Microsoft cuts passwords to 16 chars

This week a big news broke out. Web mail service Hotmail apparently cut passwords to 16 character of length for years, despite allowing users to enter unlimited number of characters. According to arstechnica.com this applies to all Microsoft online services, i.e. Passport authentication. Now, this in itself is not a worry. Allowing 16 characters is […]

Version 2.0

When I started this blog, a page theme was the last thing on my mind and to be honest, I thought a generic one would do. As more time passed, I started noticing things that I really didn’t like. For instance, a search window was a background image and cursor was not centered. Or the […]

Quick tip: Templated controls

If you create a templated server control, import it into your web-site or web application and you want to do: <my:Control ID=”myControl” runat=”server”> <ItemTemplate> Some text, html or whatever. </ItemTemplate> </myControl> and you are allowed to do only: <my:Control ID=”myControl” runat=”server” /> you need to modify your ItemTemplate property to look like this: [TemplateContainer(typeof(MyTemplateControl))] [Browsable(false)] […]

Generics

For years, I have tried to learn more about generics, but since my work was never in need for such implementation, I never bothered. Finally, an opportunity arose. I cannot go in specific details, but I had to write a Windows service (in C#) that daily obtains vast amount of similar data which must then […]

Clean code by Robert C. Martin

There are authors that suit you and there are authors that don’t. Having spent a decent amount of time to get through Clean Code: A Handbook of Agile Software Craftsmanship, I have found out, that Mr. Martin fails to suit me. His self admiration and belief that he is new software messiah (and as such, […]

.NET Custom validators – perfect tool (almost)

I don’t know about you, but working with .NET validators is always a fiddly job. Sure, they enable you to do quick validations, but I am yet to find an app where each field only needs one validator. And this is where things usually get interesting.

Happy New Year

This year’s post count is getting a +1. I wish you all a belated merry Christmas and a really happy, healthy and successful new year 2012.

DB2 Data Provider for .NET – followup

A follow-up on article about DB2 Data Provider for .NET

Firefox – new release cycle observation

So working as I always do with Firefox – you know, several windows, kazillion of tabs – I have lately discovered that my PC was running slow nearing the end of a working day. Now, for first 100 times, I just ignored the fact that my 3,33 GHz Core i5 Workstation with 4GB of RAM […]