DCSIMG
ASP.NET - 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 » ASP.NET (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...
Quick Tip – Including Empty Directory While Deploying a Web Application
Quick Tip – Including Empty Directory While Deploying a Web Application During this week I had to deploy an ASP.NET MVC 3 web application to a host environment using web deploy. The problem I faced was the deployment of an empty directory which is being used by the application. By design, when using web deploy tool in Visual Studio it skips empty directories when packaging a web application. So How can you deploy this empty directory and overcome this problem? The solution is to put an empty stub...
Visual Studio 2010 Image Optimizer Extension
Visual Studio 2010 Image Optimizer Extension One thing that caught my attention while watching the session that Mads Kristensen had in MIX11 was the Image Optimizer extension he is writing. This extension can be very valuable when you are trying to optimize your ASP.NET application (whether it is Web Forms or MVC 3). The Image Optimizer Extension The extension adds the opportunity to use industry proven algorithms such as SmushIt and PunyPNG for optimizing the images in the solution. This is enabled...
MIX11 Second Day Sessions Summary
MIX11 Second Day Sessions Summary Here is a summary of the sessions I attended in the second day of MIX11: An Overview of the MS Web Stack of Love In the session Scott Hanselman showed a lot of demos in the Microsoft web platform. The things that Scott showed: ASP.NET MVC 3 + new tools Scaffolding IIS Express NuGet EF4.1 Glimpse – a new open source package which is FireBug like tool for MVC framework. Get the insight of the flow of your MVC application. Knockout.js: Helping you build dynamic JavaScript...
MIX11 First Day Sessions Summary
MIX11 First Day Sessions Summary In the first day at MIX11 conference I attended the following sessions: Hot from the Labs – HTML5 WebSockets The first session after the keynotes was about HTML5 Web Sockets which has a Microsoft first draft implementation on HTML5 Labs. The concept of “Real Time Web” is very crucial and hard to implement (using push or polling messages to and from the client). In order to address the problem of client server communication (Bidirectional, Single TCP socket, In &...
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...
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...
More Posts Next page »