Category Archives: Lazy Programmer

Easily Create a Timestamped Filename in .NET

Eric says crazy filename parsing is something else you should stop doing.  If you’re creating output files, you probably need to timestamp the file name to keep the files separate.  Step away from the keyboard before you do anything crazy–you … Continue reading

Posted in .NET 1.1, .NET 2.0, Lazy Programmer | Leave a comment

Discount Microsoft Exam Vouchers and Free Second Chance

Save nearly $20 on Microsoft exam vouchers, good for MCSD/MCAD/MCP/etc exams at Pearson VUE centers.  Package includes a free practice exam, also. And, Microsoft is brinding back the Second Chance program.  Full information at http://www.microsoft.com/learning/mcp/offers/2ndchance/details/. Bookmark on Delicious Digg this … Continue reading

Posted in Lazy Programmer | Leave a comment

Don’t sniff browsers–sniff objects

As good as ASP.NET’s adaptive rendering is, I sometimes find myself needing to do some fairly substantial client-side scripting.  I used to sniff browsers, but that was getting tedious, and most common scripts are written upside down anyway. The best … Continue reading

Posted in Lazy Programmer | Leave a comment

Allowing Only Numbers in ASP. NET TextBoxes – Use Regular Expression Validator!

  [update 2011-10-07] This continues to be a popular post, even though it was written in 2005.  If you need a solution for ASP.NET MVC, I’d suggest using a validation attribute on your model, and the Wijmo Complete Input jQuery … Continue reading

Posted in Lazy Programmer | Leave a comment