April 2006 Entries

Talk about good design

Well, well, well, where do I start? I'm recreating this stored procedure for a client and I'm listing all columns I need from a table. What do I see? Something I thought I would never see in my life. The table contained a list of about 14 flags that specified something to be on or off. To be more specific, the columns looked like this: flag1_on, flag1_off, flag2_on, flag2_off and on and on it goes with a total of 7 flags * 2 (1 for off and other for on). I look at the data and I see that when...

posted @ Wednesday, April 26, 2006 2:26 AM | Feedback (0)

Alabama Code Camp

Hello everyone. Please join me Saturday 22nd of April in Alabama for the Alabama Code Camp. If you missed my pervious presentations this will be a good opportunity to attend to them. I'm presenting two sessions N-Tier Application Architecture and Ajax.

posted @ Saturday, April 22, 2006 2:20 AM | Feedback (0)

Spanish Language Pack for DotNetNuke (DNN)

Hi everyone! I was in need for a language pack for the es-AR culture (Spanish - Argentina). I couldn't find one, but I did find the es-UY culture (Spanish - Uruguay). The author did an incredible job on translating everything. Both cultures and languages from Uruguay and Argentina are almost identical so I grabbed his Language Pack, created a small app that renamed all the files with es-UY in it to es-AR, and zipped it up. I then uploaded it to my DNN website and worked like a charm. I sent it to the DNN fellas. Here's the link to...

posted @ Tuesday, April 18, 2006 2:19 AM | Feedback (4)

GridView, HyperLinkField, and JavaScript what the #%$@!

When you always think something is going to go very smooth you know there will be something to make it rough. Of course I'm talking about code. As the title might have given it away, I'm talking about the GridView. To be more specific: a GridView with a HyperLinkField and JavaScript.In 2005, a HyperlinkField cannot have javascript. For some reason if you do something like this:<asp:HyperLinkField HeaderText="PLAN IMG" DataTextField="PLAN_IMG" Text="{0}" SortExpression="PLAN_IMG" DataNavigateUrlFields="PLAN_IMG" DataNavigateUrlFormatString="javascript:MM_openBrWindow('../images/elevations/{0}','img','');"/>The grid will be rendered without a hyperlink. How to solve this problem, you may ask. After reading this blog I came up with a solution. Use a...

posted @ Friday, April 07, 2006 2:17 AM | Feedback (22)