Matt Button

Hi, I'm Matt Button. I write this blog, and work as a software developer at a financial technology company in Wellington, New Zealand. I like learning new things, connecting with awesome people, exploring the world, and creating great work.

ASP.NET MVC - Multiple parameterised form submit buttons without Javascript

By Matt |  Jan 24, 2011  | asp.net-mvc, noscript
The current project I’m working on involves a search page with multiple submit buttons in a single HTML form. Each submit button triggers a different behavior while posting all of the form data to the controller. This method is compatible with both IE 6+ and Firefox. It also avoids the IE button bug where button values are not passed on HTTP POST. After discussing a few design options we decided to allow the user to add the desired search parameters via selecting them one by one from a drop down list.
Continue Reading...

Bitbucket - wrong user on commit

By Matt |  Jan 21, 2011  | bitbucket, mercurial
I was having an issue where after pushing my changes to bitbucket, the changesets listed a different user as having pushed the files. For bitbucket, the commit username has to match your bitbucket username. As commits in Mercurial are local, we have no way of controlling that you have set your username correctly. It is important for you to set this up in such a way that we can identify your user account on Bitbucket when you push your commits to us.
Continue Reading...