Archive for the ‘ASP.NET MVC’ Category

ASP.NET MVC Helper for creating Twitter Bootstrap Form Fields

Being a good (read: lazy) programmer, when I find myself doing something over and over, I automate it. Ostensibly, this is done to save time in the long run and to prevent mistakes in repetitive work. Really though, it’s because I think doing the same thing is boring, and creating something new is fun. One […]

Posted in ASP.NET MVC on Wednesday, May 8th, 2013. No comments yet

Generic Session Helper Class for ASP.NET MVC

I just wrote this. I haven’t tested it. I haven’t even run it. But surely it works, right!?! What it is is a little helper class to allow you to get objects from the session in ASP.NET MVC (or, I assume, WebForms, though I don’t touch the stuff) public ActionResult FirstAction() { var model = […]

Posted in ASP.NET MVC on Friday, May 3rd, 2013. No comments yet

A Type-Safe Cache with Delegates for ASP.NET (also MVC)

Caching is great. It’s what allows all of our favorite websites to run lightning-fast. ASP.NET has a robust caching system built in which can hold value types or serializable reference types. It can also perform caching of output from an ActionResult or PartialViewResult rendered from a controller action method. However, the existing ASP.NET caching has […]

Posted in ASP.NET MVC on Wednesday, February 22nd, 2012. No comments yet

Fixing Authorize.NET’s FormBuilders for ASP.NET MVC

Recently, I was working on a client site and had to implement payment using Authorize.NET. Compared to some other service providers, their documentation and sample code is fairly good. However, when I tried to use their @using (new SIMForm(…)) {} construct, I kept getting forms that looked like crap. It turns out that that class […]

Posted in ASP.NET MVC on Monday, January 30th, 2012. No comments yet
Tags: , ,