Posts

Showing posts with the label ASP.NET MVC

Clicked checkbox does not post back to the server

Recently I got a bit stuck trying to do the simple task of set some values on a checkbox. The form was quite complex and I was finding that checking a checkbox to signify a "FollowUp" had occurred was not being posted back to the server. It took quite a bit of fiddling around before I got to the bottom of the problem so thought I would record the solution...

ActionResults in ASP.NET MVC 5

In ASP.NET MVC 5  ActionResult  classes are used to return data from the controller classes to the views. There are 15 different sub classes that can be used in various situations depending on your scenario...

MVC Unit Testing Asserts with Rhino Mocks

When I first started learning to use mocking frameworks I was lucky enough to start on Moq which was nice and simple. Whenever I needed to know something there was one single google code page which told everything. Nice! Rhino Mock by example I find hard work, so I put this cheat sheet together to help get up and running quickly.

ASP.NET MVC Uploading and Downloading Files

Uploading files is pretty straight forward with ASP.NET MVC 5, but there are few things to be aware of to make things go a bit smoother.