Jonas Stawski

Everything .NET and More

Change Source Control Provider for Visual Studio 2005

I was looking around for a way to change source control providers. I found a bunch of blogs and articles talking about updating the registry so I was going to summarize it here until I found out about the following:You can change your source control ... [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]

2007 Atlanta CodeCamp

This past weekend was the 2007 Atlanta Code Camp. It was a total success. Great speakers, sessions, organization, and participants. I must say we must have had over 300 attendees and about 25 sessions. Both of my two sessions went great, but I guess ... [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]

All we are saying, is give peace a chance

I don’t like to do this, but I have to do it. I have to do it for the good of civilization… mmmmhhhhh… Maybe I just have to do it because it is the right thing to do. Because of the recent release of Vista and Zune I’ve been reading articles, opinion... [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]

Maintaining Collection Property State for Web Custom Controls

I have dealt with this issue twice already, once being yesterday, and both times I found it very hard to find the solution. Therefore, i'm posting about it, not only for people to find the solution to their problem, but also for a reminder for me.Any... [More]

More Control Over GridView Column

In response to the many comments/questions regarding the post on GridView, HyperLinkField, and JavaScript what the #%$@! I decided to extend it and show how you can have total control over a column with the GridView.Whenever you need to do something ... [More]

ExecuteNonQuery Always Returns -1

Whenever you want to execute a sql statement that shouldn't return a value or a record set the ExecuteNonQuery should be used. So if you want to run an update, delete, or insert statement, you should use the ExecuteNonQuery. ExecuteNonQuery returns t... [More]