Author Archives: Paul Martin

About Paul Martin

I enjoy rock climbing, playing guitar, writing code...

Debugging Classic ASP with Visual Studio 2010

In order to be able to set breakpoints that actually work in classic ASP with Visual Studio 2010, here are the steps i had to take. 1. Install WebMatrix (in order to get IISExpress) 2. Right-click the website project and … Continue reading

Posted in Classic ASP, Visual Studio 2010 | Tagged , , | 1 Comment

Simple IDataReader ORM extension methods

Instead of deploying an entire ORM solution and because I’m lazy, I created (read: google-distilled) these simple extension methods to map an IDataReader into a IEnumerable<T>. So basically, I can map any result set (that is an IDataReader) into a … Continue reading

Posted in .NET, C#, extension methods, IDataReader, ORM | Leave a comment

My Regex Function Parser

AND THEY SAID IT COULDN’T BE DONE!… or was that “shouldn’t”? Oh well, in any case, here is a FunctionParser I made to parse text functions. For example, this: would output: “Here is my text. It has some text in … Continue reading

Posted in .NET, C#, regex | Leave a comment

Attribute driven caching in ASP.NET (using Ninject)

So it turns out Ninject is AWESOME. As such, I’ve implemented a completely attribute driven caching scheme for my data service classes. My previous post mentioned a way to condense the code needed to retrieve data from ASP.NET’s data cache. … Continue reading

Posted in .NET, cache, ninject | 8 Comments

Using C# delegates with ASP.NET data caching

When using the data cache in ASP.NET, the standard practice is to:¬† Check if the¬†object exists in the data cache If not, then create/generate object and store the new object in the cache for the next time Return the object … Continue reading

Posted in .NET, C#, cache | 4 Comments