Categories

4 articles in 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… 
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... Its usual to return the base class ActionResult, rather than a specific action result… 
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… 
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. Razor View The view needs to have the enctype set as shown below. Also, if you are using the TextFor HtmlHelper, make sure you set the File type of the control…