About Martin H. Normark
I love writing code, inventing stuff, pushing the limits, questioning why something is as it is. I write about software and programming experiments, daily code battles, specific How To posts.
Posted on November 6, 2011 by Martin H. 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 H. Normark |
Posted in ASP.NET MVC |
Tagged ASP.NET MVC, quirks
Posted on June 10, 2011 by Martin H. 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 H. Normark |
Posted in C# |
Tagged C#, CSS, E-mail, HTML
Posted on April 2, 2011 by Martin H. 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 H. Normark |
Posted in ASP.NET MVC |
Tagged email
Posted on February 3, 2011 by Martin H. 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 H. Normark |
Posted in C# |
Tagged anonymous type, dynamic, serialize, xml
Posted on November 15, 2010 by Martin H. 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 H. Normark |
Posted in C#, Internationalization, JavaScript |
Tagged ASP.NET, ASP.NET MVC, C#, Internationalization, JavaScript
Posted on October 25, 2010 by Martin H. Normark
Share Tweet A long time ago, I wrote a blog post about how to translate text in C# using Google Translate. Since then, an official AJAX API has been released, which is a much better solution. Reading the comments of …
Continue reading →
Posted on October 25, 2010 by Martin H. Normark |
Posted in C#, Internationalization |
Tagged C#, Google, Internationalization
Posted on July 31, 2010 by Martin H. Normark
Share Tweet There’s a lot of talk on Twitter and blogs about The Ultimate Developer PC 2.0. The Ultimate Developer PC, was something started three years ago by Scott Hanselman and Jeff Atwood, when Scott wanted a new machine and …
Continue reading →
Posted on July 31, 2010 by Martin H. Normark |
Posted in Hardware |
Tagged Hardware
Posted on March 13, 2010 by Martin H. Normark
Share Tweet Almost a year ago, I answered a question on StackOverflow, about if there’s a better way to generate HTML e-mails in C# than using a StringBuilder and just appending strings one by one. I think that any modern …
Continue reading →
Posted on March 13, 2010 by Martin H. Normark |
Posted in C# |
Tagged C#, Hidden features of .NET
Posted on March 8, 2010 by Martin H. Normark
Share Tweet If there’s one change I hate about IIS 7 and beyond, it is the lack of the very useful IISAPP script that was present on IIS 6 installations. Run it from a command prompt, and you will see …
Continue reading →
Posted on March 8, 2010 by Martin H. Normark |
Posted in IIS7 |
Tagged IIS7
Posted on March 4, 2010 by Martin H. Normark
Share Tweet I love the new model validation features in System.ComponentModel.DataAnnotations. One thing I don’t like though, is that the ErrorMessageResourceName is loosely typed. The ErrorMessageResourceType, however, is a System.Type which will be strongly typed by assigning its value using …
Continue reading →
Posted on March 4, 2010 by Martin H. Normark |
Posted in C#, Internationalization, Unit testing |
Tagged C#, Internationalization, Unit testing