DCSIMG
MVC Framework - Gil Fink's Blog

Gil Fink's Blog

Fink about IT

News

Microsoft MVP

My Facebook Profile My Twitter Profile My Linkedin Profile

Locations of visitors to this page

Creative Commons License

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2011 Gil Fink

Hebrew Articles

Index Pages

My OSS Projects

English Articles

Browse by Tags

All Tags » MVC Framework (RSS)
Avoiding Circular Reference for Entity in JSON Serialization
Avoiding Circular Reference for Entity in JSON Serialization One problem that I was facing yesterday while working on an ASP.NET MVC application was a JSON serialization issue. The problem was a circular reference caused by the DataContractJsonSerializer because of relations between the entity and other entities. In this post I’ll show you how you can use a simple workaround in order to avoid the problem.    The JSON Serialization Error Returning the output of the JSON method in an...
Razor Helpers Syntax
Razor Helpers Syntax One hidden gem of Razor View Engine is the declarative helper syntax. With this syntax we can create helper components that are stored as .cshtml files, and enable reusability of view code. The name of the syntax might sound familiar and it is since it reminds the HtmlHelper class that was provided as part of MVC 1. In this post I’ll explain the Razor helper syntax and discuss why it sounds familiar to HtmlHelper. @helper Syntax and The HtmlHelper Class When you want to encapsulate...
ASP.NET MVC Model Binders
ASP.NET MVC Model Binders One thing that I’m always asked to talk about when I’m delivering ASP.NET MVC sessions or courses is Model Binders. In this post I’ll explain what are Model Binders in ASP.NET MVC and how you can use them in your MVC application. Model Binders ASP.NET MVC is providing a way to de-serialize complex types that are part of the incoming HTTP request input. After these types are de-serialize they are passed to the relevant controller’s action as method arguments. In the following...
My Sela Dev-Days Experience
My Sela Dev-Days Experience Today I finished my Sela Dev. Days experience. Sela Dev. Days is a conference which include 5 days, 15 top experts, 25 session, and a whole lot of attendees (around 600 people registered for this week). If you are not familiar with Sela Dev. Days you can go to the conference’s site . In the conference I had three tutorial days in three different subjects: ASP.NET MVC 3, EF Code First integration, and Razor: Oh My! In this one day tutorial I co-operated with Sebastian Pederiva...
Creating a Code First Database Initializer Strategy
Creating a Code First Database Initializer Strategy Yesterday I helped a colleague with his ASP.NET MVC 3 site deployment. That colleague implemented the data access layer using EF4.1 Code First. One of the restrictions that he had was that he didn’t have database permissions to create a new database and couldn’t use SQL Express or SQL CE in his application. Instead he had an empty database for his disposal in the hosting environment without a way to run SQL scripts… In such a situation the provided...
Sela Dev. Days 2011
Sela Dev. Days 2011 Next month, June 26-30 ,   Sela is going to have a mini conference – Sela Dev. Days . In the conference you will have the opportunity to meet Israel and world lead experts and learn about the new and coming Microsoft technologies that everyone will talk about in the next following years. The conference includes 25 one day workshop in subjects such as Silverlight 5, Parallel programing, Windows Phone Mango, ASP.NET MVC 3 and more. In the conference I’m having the following...
MIX11 Keynote Session Summary
MIX11 Keynote Session Summary I’m currently attending the MIX11 Keynote session. Here are some of the things that you might consider to checkout in the following weeks: IE10 Preview was released and can be download from here . A new tools update for ASP.NET MVC3 was released and includes: EF4.1 support jQuery 1.5 and Modernizr support Scaffolding support New Controller templates More WebMatrix update Orchard CMS new release Windows Azure new upgrades Access Control Service V2 Caching CDN support...
Installing a Production Server for ASP.NET MVC 2 – Part 2
Installing a Production Server for ASP.NET MVC 2 – Part 2 A few days ago I helped a client to solve a problem they had when they deployed an ASP.NET MVC 2 application. In a previous post I wrote about how you can install a production server in order to run ASP.NET MVC 2 application. The client team have installed the server according to the AspNetMVC2 MSI installer section (in my post) and then they used Phil Haack’s IIS6 Extension-less URLs solution to enable the routing engine. Life was beautiful...
MIX11 Open Call Voting Has Started Today
MIX11 Open Call Voting Has Started Today MIX conference is the biggest Microsoft web conference which occurs every year in Las Vegas. As in every year Microsoft asked the developers and designers communities to propose sessions that will be part of a community voting. The sessions that will be chosen will be performed on stage at this year’s conference. Since I’m going to MIX11 as in last year, I proposed two sessions and they were chosen to the open call voting. This is the session descriptions...
Installing a Production Server for ASP.NET MVC 2
Installing a Production Server for ASP.NET MVC 2 Two days ago I was asked to help with a production server installation. In the customer environment they built an ASP.NET MVC 2 application which they wanted to deploy. I found a very excellent post that Jon Galloway wrote about this subject and used it in at customer. In the post I’ll summarize some of the options that I used when we installed the production server for ASP.NET MVC 2 .  Web Platform Installer I wrote about the WebPI in the past...
Using the ControllerActivator in MVC 3
Using the ControllerActivator in MVC 3 In the previous post I showed how to use the DependencyResolver in order to bring Dependency Injection behavior to a MVC 3 application. In this post I’ll show you how you can use the ControllerActivator in order to activate controllers using your own behavior. The IControllerActivator In MVC 3 beta a new interface was introduced – the IControllerActivator . This interface is an injection point in order to create our own behavior in order to activate controllers...
Dependency Injection in MVC 3 Was Made Easier
Dependency Injection in MVC 3 Was Made Easier In the past I wrote a post that showed how to implement Dependency Injection using Unity in ASP.NET MVC framework . This post revisits that post and shows how you can do the same thing easily in MVC 3 . Pay attention that the supplied code is based on MVC 3 beta and may change in the future. The IDependencyResolver and DependencyResolver MVC 3 introduces a new interface – the IDependencyResolver . This interface enables service location by providing two...
How to Enable Client Side Validation in ASP.NET MVC 2
How to Enable Client Side Validation in ASP.NET MVC 2 Last night I was teaching MVC framework as part of an ASP.NET course. One of the things that I showed the students was how to use data annotations for server side validation. I got a question about how to enable client side validation in MVC 2 and decided to write about it in a post. So here it goes… MVC Server Side Validation In MVC 1 we didn’t have client side validation out of the box. In order to achieve validation we needed to use one of...
How To Use Unity Container In ASP.NET MVC Framework
How To Use Unity Container In ASP.NET MVC Framework In the past I wrote the post How To Use Unity Container In ASP.NET . In this post I’m going to explain how we can use Unity IoC container in ASP.NET MVC Framework . Building The Container As in the previous post the first thing to do is to build the container itself. I’ll use the same method I used in the previous post in order to persist the Unity container ’s state during the application execution. The right place to put the Unity container is...
Deciding When to Use ASP.NET MVC Framework
Deciding When to Use ASP.NET MVC Framework The post aim is to  help you decide when it’s appropriate to use ASP.NET MVC Framework and when it is appropriate to use ASP.NET Web Forms . Web Forms Web Application Advantages The old ASP.NET Web Forms framework is a mature framework that is being used in a lot of applications and web sites. The advantages of Web Forms are: State Management – in Web Forms state management is more easier. The use of ViewState or server based forms simplify the state...
More Posts Next page »