Wednesday, August 18, 2010 from (Robert Greyling)
Since giving my talk at mvcconf, I’ve received numerous requests to talk a little more about the mysterious Bindings feature in Spark. To be clear, it’s only mysterious because it’s the newest feature in the framework and because of lack of documentation – that is until now. Louis Dejardin has outdo ...
Wednesday, August 18, 2010 from koenwillemse
I read this post by Ayende today and started thinking about this myself. So, what is it all about: “What would you do if you were running the developer division of Microsoft (or… what would you do if you were the Gu )?”. If I would run DevDiv I would: embrace successful open source project instead o ...
Tuesday, August 17, 2010 from Donn
ModelBinding ASP.NET MVC and Multiple Field Validation. This tip comes to you from my blog, but the hat-tip goes to Andres Nelson whom I work with at my current client who actually showed me how to do this. ...
Tuesday, August 17, 2010 from www.4guysfromrolla.com
Back in May 2010 I wrote a three-part article series titled Building a Store Locator ASP.NET Application Using Google Maps API, which showed how to build a simple store locator application using ASP.NET and the Google Maps API. The application consisted of two ASP.NET pages. In the first page, the u ...
Tuesday, August 17, 2010 from Luc
At work today, I was trying to install our ASP.NET MVC web application on a Windows Server 2003 box that was running a 64 bit version of IIS 6.0. I had set everything up just as I have for every other test server that we were using, ...
Monday, August 16, 2010 from trevorpower
One of the reasons I like to play with other languages from time to time is to find new ways of solving problems. This is why, while learning Ruby on Rails, I am making a conscious effort to do things the Ruby way, as opposed to writing C# style code in Ruby. While working on my new blog page, I enc ...
Monday, August 16, 2010 from (Kila Morton)
Don't you just love crazy weirdness when you create urls? I sure do....NOT! Sometimes the smallest things can provide you with the biggest pain - especially when you are pressed for time. I ran across a crazy little problem in ASP.NET MVC 2 with an url I created using Html.Actionlink. I wanted an ur ...
Monday, August 16, 2010 from Jonathan M. Hammond
I'm currently working on an app that has several different sub-sections. i.e. a public facing section and a private admin section. Since this is an ASP.NET MVC 2 app, Areas are an obvoious solution to dividing up and organizing the code for the different parts of the project. However, one of the req ...
Sunday, August 15, 2010 from DigiMortal
Today I tried out ASP.NET MVC HTML5 Helpers Toolkit by Dean Hume. Although browsers today support HTML5 partially it is time to start playing with it. As soon as HTML5 gets common standard in web you should be able to react fast. In this posting I will introduce you HTML5 Helpers Toolkit and some HTML5 field types. HTML5 Helpers Toolkit is easy to install. Just download the package, unpack it and reference the DLL you found from package. That’s all. You don’t have to do anything more. If your...
Sunday, August 15, 2010 from Mads Kristensen
In part 1 of this series, we looked at some tricks to optimize the performance of any website running in IIS 7 by only modifying the web.config. In this part we will focus on handling browser caching issues and optimize the number of JavaScript and CSS files loaded from an ASP.NET website. NB! All t ...
Saturday, August 14, 2010 from DigiMortal
ASP.NET MVC 3 supports global action filters. Global action filters are applied to all actions in web application. By example, you can use global action filters for common security checks. In this posting I will show you how to write dummy action filter, register it as global and test it. Creating action filter Let’s start with our primitive action filter that is able in some cases ruin page layout for IE. Am I evil? Yes, I am! But I want this example to work on IIS and Cassini both so let’s...
Saturday, August 14, 2010 from DigiMortal
ASP.NET MVC 3 brings us new view engine called Razor. Razor view engine was made available with WebMatrix first beta. Razor brings us new and very short syntax for writing views. In this posting I will introduce you shortly ASP.NET MVC Razor view engine. New ASP.NET MVC project type There is new ASP.NET MVC project type for Razor projects so you can start new application with Razor support already there. The other options are project with ASPX based views and empty ASP.NET MVC project. As I am...
Saturday, August 14, 2010 from DigiMortal
Lately I blogged about HttpNotFoundResult and HttpStatusCodeResult action results that come with ASP.NET MVC 3. These results are ideal for controller tests as we don’t have to mess with HttpContext and Response objects anymore. In this posting I will show you how to use HttpNotFoundResult in controller tests to check if errors are given correctly to user. Let’s suppose we have controller method that displays product details. public ActionResult Details(int productId){ ...
Friday, August 13, 2010 from unknown
I try and play around with ASP.net MVC as much as possible and this site is also written in MVC 2. One of the things that I thought about adding to MVC is the ability to have all the textboxes and controls updated to use HTML5. ...
Friday, August 13, 2010 from Scott Mitchell
One of the free, open-source controls on the ASP.NET team’s CodePlex page is the GeneratedImage control. In a nutshell, the GeneratedImage control is a combination of an ASP.NET Web Control and a set of classes that facilitate programmatically creating, serving, caching, and transforming images. If ...