Jonas Stawski

Everything .NET and More

Where are thou, DLL?

One of the enhancements of Visual Studio 2005 and ASP.NET 2.0 is the runtime compilation performed by ASPNET. With ASP.NET 1.1 and Visual Studio 2003 the compilation was performed by the compiler and the result was a DLL. With the new runtime compila... [More]

Install Language Pack For DotNetNuke

This post is based on DNN 4.0.2. To install a new language pack from a downloaded file from the DNN website you have to log in as an admin or a host.1. Once loged in go to Host - Languages2. On the Languages page click on the Upload Language Pack lin... [More]

ConnectionString on a DataSet/DataTable with DataAdapter

UPDATE: I would not recommend using this approach. You shouldn't change any code that is automatically generated because it might get overwritten when modifying the designer. When you add a DataTable with a DataAdapter on a DataSet for a web app, Vi... [More]

Passing objects to the Object Data Source as parameters

This Object Data Source is very nice to use and almost all examples you see out there use primitive types as parameters. The question arrives when you want to pass an object as a parameter. You can't do it declaretively, so you have to do it on the c... [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]

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

N-Tier Application Architecture

Well, I just finished my N-Tier presentation and I can say it was the best presentation of all the 3 presentations I presented so far. The content was good, exciting, and cutting edge; and the crowd was the best I had. They laughed, and participated ... [More]

Orlando Code Camp

Join me at the Orlando Code Camp. In contrast to the Miami Code Camp I will be giving two sessions this time: "A Guide to Developing Web Server Controls" and "Developing N-Tier Applications with C#, MSSQL 2005, and XML." The Ajax session at the Miami... [More]