Site Upgrades

by Captain Database on May 4th in Site Updates

Going through some site upgrades, please excuse the temporary reduction in site content while I get set up. Thanks!

Auto Ellipsis in JavaScript

by Captain Database on Sep 3rd in Web Development

The other day, I had a request I’ve never had before: we want two elements with different widths and dynamic content to have identical height and have any content that gets cut off be denoted with an ellipsis. OK, on the surface, this doesn’t sound so bad — but wait, how are we going to [...]

Microsoft Virtual Labs

by Captain Database on Mar 24th in Training Resources

So I’ve been learning BizTalk 2009 for a project at work, and I have to say that it’s quite a spiffy tool! I wish I had paid more attention when I was working at those Gartner conferences… I think I went to 1 BAM and 2 BPM conferences and didn’t even listen in on a single session! They sure [...]

Dynamic Code Execution Class

by Captain Database on Jan 29th in C#

So there are times when, in applications of a certain complexity, the need arises to run dynamically generated code. Whether its code from an administrator data rule or template code from a sandbox playground, we’ll need to do it from time to time. So I wrote this simple class that explores the beginnings of dynamic [...]

PLINQO

by Captain Database on Jan 7th in C#

So there’s been a lot of heated debate about Object Relational Mapping (ORM) systems lately. This is pretty understandable given the fact that programmers want to focus on developing, not mindlessly hooking up objects to data stores. I was working on a system for this when LINQ to SQL first came out, and I then [...]

Multiple Versions of IE

by Captain Database on Jan 6th in Web Development

Internet Explorer… it doesn’t listen to you, it breaks your pages, and it even takes the time to break it in different ways depending on what version of it you use… but you still have to deal with it. Well, that sucks. I’ll give you a little time to accept that and get over it. [...]

ViewState Properties

by Captain Database on Dec 5th in ASP.NET, C#

If you do much control creation in ASP.NET, you’ve surely had more than your fill of defining ViewState-bound properties. Yes, it’s nice that Visual Studio provides you with a pretty nice default handler, but still, it requires a little too much customization per property. This is a simple task, and personally, I don’t want to [...]

Hybrid Clone

by Captain Database on Mar 30th in C#

OK, since this is a pretty hefty bit of code, I’m going to break this up a little bit.  First, let’s talk about the problem that this code solves and some of the code used to support it. When using a Web Reference in your applications, the development environment is good enough to automatically build [...]

Get Escape

by Captain Database on Mar 23rd in C#

Trying to keep up the momentum I started here and continue to post new things I come up with, even if they are small and meaningless. So, I ran into a situation where I wanted to read a string containing escape sequences and process the escape sequences.  To my delight, I couldn’t find a function [...]

Summarize Exception

by Captain Database on Mar 11th in C#

OK, so to continue on my last blog entry about making code names “pretty” names, let’s talk about some automated exception handling.  We all know that exception handling is a pain, but if you want your code to be robust, it has to be done right. Well, let’s see if we can do it right without too much [...]

Powered By Wordpress Designed By Ridgey