Responding to jQuery AJAX Request with PHP
I will start by saying that my experience with PHP is somewhat limited, so this is more of an exercise for my benefit. I’d like to take ASP.NET out of the formula for a bit here, and instead resort to...
View ArticleUsing 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 ArticleCalling 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 ArticleCheck 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 ArticleGetting 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 ArticleUsing 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 ArticleUsing 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 ArticleTypesafe 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 ArticleSetting 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 ArticleEnhancing 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 ArticleTake 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