Posts for February, 2009
The int.parse() method is one I use a lot in ASP.NET so I wrote a handy extension method called To using generic return types and a little reflection that makes converting all these string values to another type incredibly simple.
Published in .NET on Monday, February 23rd, 2009
How (and why) to make your ASP.NET site's error handling better by returning the right response codes and redirecting to the error page without changing the url.
Published in ASP.NET on Wednesday, February 11th, 2009
postbacks add a lot of weight to your page and you don't always need them. Find out when you can do without them and how to use ASP.NET without paying the postback price.
Published in ASP.NET on Sunday, February 8th, 2009
Defaults can never please everyone. There’s always someone whose workflow is a little different. That one developer who likes to use SeaMonkey to test their pages or that weirdo who prefers to edit resx files as a text file. I am that weirdo who likes to edit resx files as text files and rather than […]
Published in .NET on Wednesday, February 4th, 2009
It’s a snowy day in London today. Apparently the most snow London’s seen in 20 years. It’s definitely the most snow I’ve ever seen. I was covered in snow and looking like a big white yeti by the time I got to the station this morning. I’ve been keeping an eye on the Transport for […]
Published in Programming on Monday, February 2nd, 2009
One of the biggest waste I see in using viewstate is that it persists values that are already set in the aspx. These get set every time that the page runs and don’t need to be round tripped to the browser so that they will be persisted. I did a little experiment a while back […]
Published in ASP.NET, Server controls on Sunday, February 1st, 2009