Jonas Stawski

Everything .NET and More

Container.DataItem. What exactly is this?

Recently I had to bind to an array of strings and I wasn't sure how to show the value of the current item. After a little bit of help from the DevTheo and a little bit of thinking I figured out the solution was very simple. All i had to do was bind i... [More]

String.Empty, null, Length, or String.IsEmptyOrNull ?

Every time i have to deal with strings (almost every time) I stop and wonder which way is really the fastest way to check for an empty string. Of course the string.Length == 0 check should be the fastest since Length is a property and there shouldn't... [More]

Set Focus on a TextBox and Set a Default Button

ASP.Net 2.0 has a new feature (I learned about it today) and I must say it’s a pretty cool feature one that every web developer had to deal with since the very beginning. Now you can set initial focus on your form and also set a default button ... [More]

Nullable Types ?!?!?!?!?!??!?!?!

Today I learned something new. Today I learned this new feature of .net 2.0 and that feature is Nullable Types. What are they? Basically they are a typed object of a primitive/value type that can hold a value or null/nothing. What's the difference be... [More]

Updated Rows in a GridView

Have you ever wondered how to show the updated rows of a grid view? Well, I did, and I had to implement it for a client. Here's the basic idea. We need some kind of collection that holds the index of all the rows that had been modified. We need to pe... [More]

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 langu... [More]