Back to Basics – Keep it Simple and Develop Your Sense of Smell – From Linq To CSV
I was working with a friend recently on a side thing they were doing. They wanted to create an "Export" function for some small bit of data and start it from their website. You'd hit a URL after logging in Some data would come out of a database You'd get a .CSV file downloaded You could open it in Excel or whatever. I spoke to my friend and they said it was cool to share their code for this post. This post isn't meant to be a WTF or OMG look at that code, as is it meant to talk about some of the underlying issues. There's few things going on here and it's not all their fault, but it smells . They are using a Page when a IHttpHandler will do. Not a huge deal, but there's overhead in making a Page, and they're...(read more)
February 4, 2010