Quantcast
Channel: Brian Dobberteen
Browsing latest articles
Browse All 11 View Live

Using LINQ to XML instead of XmlReader

Previously, I mentioned that I wasn’t sure if using an XmlReader was the best way to fetch the City and State values from the XML response from the Yahoo Maps API: Using reader As XmlReader =...

View Article


Calling a Web Service with ASP.NET AJAX Client Script

Wow! It’s been waaaaay too long since my last installment – been busy with latest programming contract, not that you care. Since beating the proverbial dead horse is my specialty, this brief post is...

View Article


Image may be NSFW.
Clik here to view.

Check Existing Values with ASP.NET CustomValidator + jQuery $.ajax()

This was selected as an ASP.NET Article of the Day for June 18, 2010 ‘SjAJ’ ASP.NET CustomValidator SjAJ?! Sorry, I couldn’t resist. I had started with AJAX, but thinking now… hmmm, the method being...

View Article

Getting Value of NEWSEQUENTIALID() on Insert

Recently, I was writing a stored procedure that, at one point, performs an insert into a table that has a GUID (uniqueidentifier) primary key. The default value for this column is set to...

View Article

Using Nullable Types to Handle Possible NULL Values From Database

I’d like to describe a techinque that I’ve come up with to handle the ever-present issue of the easiest (best?) way to handle building an object from a database query that may or may not contain NULL...

View Article


Image may be NSFW.
Clik here to view.

Using PHP and MySQL to Create a Simple Contact Form and Results Browser

By request, let’s build a simple Contact Form with a PHP/MySQL backend! (Disclaimer: I don’t pretend to be an expert in PHP [nor .NET for that matter!], so please understand that the way I go about...

View Article

Image may be NSFW.
Clik here to view.

Typesafe Enum Pattern in C#/VB.NET

Been doing some thinking about Enum and a couple of its shortcomings. First, let’s create a simple Enum: // C# public enum UsefulItem { Unknown = 0, Foo, Bar, Baz } ' VB.NET Public Enum UsefulItem...

View Article

Image may be NSFW.
Clik here to view.

Setting up VisualSVN for Local Projects

This one is pretty straightforward, but potentially useful to those of you not yet familiar with source control. In a nutshell, source control allows us to keep a historical record of any changes we’ve...

View Article


Enhancing the TypeSafe Enum Pattern

As I mentioned in my last post about the Typesafe Enum Pattern in C#/VB.NET, I left out a few features that I had originally wanted to include in that post. Namely, these features were nothing more...

View Article


Take Screenshots Programatically in iOS with Category on UIViewController

Thought I’d share this almost-trivial technique for taking screenshots of an iOS device. This will essentially replicate the user pressing the home & power buttons simultaneously, but will return...

View Article
Browsing latest articles
Browse All 11 View Live