DCSIMG
MVC Framework - new { Name = ”Shay Jacoby” }

new { Name = ”Shay Jacoby” }

Maximum separation, minimum Dependencies, No Injections.

Browse by Tags

All Tags » MVC Framework (RSS)
Real world error hadnling in ASP.NET MVC RC2.
I would like to share with You my ASP.NET MVC Error Handling solution after reading this question in stackoverflow.com Goal: To catch every error that occures on server include HttpExeptions like 404 (Page not found). The ability to choose a specific View (error Template) for some errors and a generic View/Behaviour if nor specific has been specified. Scenario 1: anonymus user typed a wrong url. Actions: display a user friendly message like: "OOPS, The page is missing... back to home" Log...
MVC Framework RC1 - Moq vs. TypeMock Isolator Controller test
A new version of MVC Framework is just released and has some cool improvements: The Views have no ".cs" (code behind like) files. You could generate CRUD Views from VS. HTML Form fields could be Type Safe, You could Bind class property to form field. The Controller action behavior is very testability, example: The Moq example from ScottGu's post: [ TestMethod ] public void Display_Message_Authenticated() { // Arrange HomeController controller = new HomeController (); Mock < ControllerContext...
Mvc custom ActionFilterAttribute for ajax requests caching
One of the most important performance improvements issues on Web Applications is caching AJAX calls on client browser. Faster page responses improve the client UI as well. Since I read about this little hack of omar zabir that fixes a known .net framework Cache-Control header setting bug I implement this solution on every project. For Web Application I keep on using MVC Framework beta so a very elegant to implement ajax responses caching by creating a custom ActionFilterAttribute class. Important...
Building a basic IoC
I used to work with the IoC libraries Unity Application Block , StructureMap which I found very good but I wanted a very basic one that keeps the services/repositories as singleton, no need to manage state/lifetime of objects.. I didn't use one of the libraries I mentioned above because I don't need most of their functionallity. So... I wrote my basic IoC and would like to share it with You: Step 1 - App.Config/Web.config < configSections > <!-- Add this line inside "configSections"...