BlackJack

Old school BlackJack game for Windows. Need to move this to the web/mobile next! https://github.com/mcullinan44/BlackJackNet4.5 0 forks. 0 stars. 0 open issues. Recent commits: cleanup, Matt fix color, matt@mattcullinan.com test, matt@mattcullinan.com sfsfffd, matt@mattcullinan.com refactor, matt@mattcullinan.com

ASP.NET WebForms – Use ICallbackEventHandler to lighten the load of PostBacks

Much has been written over the years regarding the drawbacks of ASP.NET and how MVC/SPAs solve many of these problems, so there’s not much to rehash there. However, if you’re stuck working with older technology, there is a handy tool to make your ASP.NET WebForms site more responsive. Implementing the ICallbackEventHandler interface in your WebForms… Continue reading ASP.NET WebForms – Use ICallbackEventHandler to lighten the load of PostBacks

Published
Categorized as ASP.NET, C#

CAUTION: This SQL will DELETE all rows in your table

I came across this gem the other day. Fortunately, I ran it locally first. There are two tables. Person and AlienPerson. Lets create the tables and seed with some data.

Try to run a bad select statement:

Here’s the baddie. This will delete all data in the Person table:

To get… Continue reading CAUTION: This SQL will DELETE all rows in your table

Published
Categorized as SQL

XML to Key Value Pairs (Works well for exporting data to Excel)

On a recent project, I had to provide export functionality for a web grid’s data source that contained wildly varying data structures. The XML structure contained anywhere between 1 to 10 levels of nesting and we needed to be able to export this data into an Excel or comma separate values file. This code will show… Continue reading XML to Key Value Pairs (Works well for exporting data to Excel)

Published
Categorized as C#