About Martin Normark
Martin Normark works as a freelance web developer (consultant). He blogs about web, software and programming experiments, daily code battles, specific How To posts and what else comes to mind.
Posted on May 15, 2012 by Martin Normark
Share Tweet ActionFilters in ASP.NET MVC are great. You can now easily share logic between controllers without having to inherit from a base controller, that does the common work. I have a content heavy application that supports a set of layouts. …
Continue reading →
Posted on May 15, 2012 by Martin Normark |
Posted in ASP.NET MVC, Unit testing |
Tagged ActionFilters, ASP.NET MVC, Unit testing
Posted on May 11, 2012 by Martin Normark
Share Tweet When creating software, make your features obvious. A long time ago, Facebook introduced friendlists - a feature where you can group friends by any name you want. Along comes Google+, and have a feature called circles that, unlike …
Continue reading →
Posted on May 11, 2012 by Martin Normark |
Posted in Software |
Tagged design, feature, software
Posted on May 5, 2012 by Martin Normark
Share Tweet Another buggy experience in ASP.NET MVC. This has to do with validation, more specifically numeric validation. Whenever you have a numeric property on your view models, ASP.NET MVC automatically adds some implicit validation to ensure that whatever entered in fact …
Continue reading →
Posted on May 5, 2012 by Martin Normark |
Posted in ASP.NET MVC |
Tagged ASP.NET MVC, validation
Posted on April 3, 2012 by Martin Normark
Share Tweet Structuring JavaScript can be a job in itself if you don't look out. I was attending the virtual jQuery Summit 2011, and one of the talks were called 'Structuring Your DOM-based Application' by Garann Means. Her talk really took me …
Continue reading →
Posted on April 3, 2012 by Martin Normark |
Posted in JavaScript |
Tagged JavaScript, Maintainability
Posted on March 22, 2012 by Martin Normark
Share Tweet We all know it's a good idea to bundle JavaScript files into as few script includes as possible to minimize HTTP request. And - we all know you should write your code inside closures, to avoid the biggest …
Continue reading →
Posted on March 22, 2012 by Martin Normark |
Posted in JavaScript |
Tagged Closures, JavaScript
Posted on November 6, 2011 by Martin Normark
Share Tweet ASP.NET MVC 3 has its quirkiness here and there. Sometimes it's a lack of support for something, and other times it's downright buggy. An issue I came across recently, is something to do with Windows Authentication. There's a lot of …
Continue reading →
Posted on November 6, 2011 by Martin Normark |
Posted in ASP.NET MVC |
Tagged ASP.NET MVC, quirks
Posted on June 10, 2011 by Martin Normark
Share Tweet Being able to make CSS inline is something you need all the time when sending HTML e-mails. HTML E-mails simply don't render perfectly in all e-mail clients if you don't make all your styles inline. Campaign Monitor introduced …
Continue reading →
Posted on June 10, 2011 by Martin Normark |
Posted in C# |
Tagged C#, CSS, E-mail, HTML
Posted on April 2, 2011 by Martin Normark
Share Tweet As I argued about a year ago, any modern piece of software needs to send e-mail. It needs to connect, and reach its users. Back then I showed how to send templated HTML e-mail, using the little known …
Continue reading →
Posted on April 2, 2011 by Martin Normark |
Posted in ASP.NET MVC |
Tagged email
Posted on February 3, 2011 by Martin Normark
Share Tweet Dynamic / Anonymous types in C# was a great improvement to the framework, made in version 3.0. I use it a lot when doing AJAX callbacks from JavaScript to ASP.NET MVC Controllers, not to forget the extensive use …
Continue reading →
Posted on February 3, 2011 by Martin Normark |
Posted in C# |
Tagged anonymous type, dynamic, serialize, xml
Posted on November 15, 2010 by Martin Normark
Share Tweet Any modern web application needs localization! You simply can't ignore the huge amounts of people who doesn't speak your language, or whose native language is different from yours. You're probably using resource files (.resx) in .NET, but how …
Continue reading →
Posted on November 15, 2010 by Martin Normark |
Posted in C#, Internationalization, JavaScript |
Tagged ASP.NET, ASP.NET MVC, C#, Internationalization, JavaScript