Archives
-
30Mar 2011
Why I Still L.O.V.E. ASP.NET WebForms
Objectives Build Contact Page (a page that interacts with a data-storage) Build a Contact List Page (a page with a gird) Do it using ASP.NET WebForms Create Unit Tests We will use the MVP …
Read More -
22Mar 2011
Where is the bug? - C#
Below are a few lines of code written in C#. Is the code bug-free? What will this print in the console? Can you do it without VS? static void AVeryCoolMethod(){ var numbers = new[] { 1, 2, 3, 4, 5 …
Read More -
I have received many comments and questions about how you can do what is described in this post when you site requires question and answer. (Better solution at the bottom of this post) The solution …
Read More -
Recently I was in a situation where a user was required to change the password upon first login. But MembershipUser’s ChangePassword requires 2 arguments. Old and new password. In my case the …
Read More -
A flag Enum is an Enumeration that can hold multiple values per instance An example of such Enum is: [Flags] public enum enDays { None = 0, Monday = 1, Tuesday = 2, Wednesday = …
Read More -
ASP.NET MVC3 doesn’t have a built-in RadioButtonList helper and there are times that I want to display an Enum property. I can always do that using a dropdown list but if there are 2 or 3 …
Read More -
Firebug is an essential tool for every web developer. It allows to do many things such as script debugging, DOM manipulation etc. What happens though when it get’s to the hand of an experienced …
Read More -
HDD (and it don’t mean Hard Disk Drive ☺) is intuitively a bad approach on Software Development. If someone tells you that many times is doing Hope Driven Development, only by name you might …
Read More -
7Mar 2011
Linked-In OAuth Library
I uploaded a package in Nuget Gallery that simplifies the interaction with linked-in. Uses a modified version of Hammock (because latest version has a bug) so be careful if you want to add it to your …
Read More -
5Mar 2011
JavaScript is disabled - Should I Care?
Many times a Web Developer faces the question “This won’t work if JavaScript is disabled. Should I change it?” If it’s something simple like a submit button instead of a link …
Read More -
The easiest way to submit a form is to use the input tag with the submit type <input type="submit" name="submit" value="Submit" /> But in every form it’s possible want a cancel link …
Read More -
Visual Studio has a build in Replace function that uses Regular Expressions. Let’s consider the following scenario: Although it’s not “good” code many times a developer has …
Read More