Articles : Page 1 of 1

  • Physical Directories vs. MVC View Paths

    Physical Directories vs. MVC View Paths

    Apr 12
    05

    This post falls into the bucket of operator error on my part, but I want to share this anyway because it describes an issue that has bitten me a few times now and writing it down might keep it a little stronger in my mind. I've been working on an MVC project the last few days, and at the end of a long day I accidentally moved one of my View folders from the MVC Root Folder to the project root. It must have been at the very end of the day before shutting down because tests and manual site nav...


  • Using the West Wind Web Toolkit to set up AJAX and REST Services

    Using the West Wind Web Toolkit to set up AJAX and REST Services

    Nov 11
    03

    I frequently get questions about which option to use for creating AJAX and REST backends for ASP.NET applications. There are many solutions out there to do this actually, but when I have a choice - not surprisingly - I fall back to my own tools in the West Wind West Wind Web Toolkit. I've talked a bunch about the 'in-the-box' solutions in the past so for a change in this post I'll talk about the tools that I use in my own and customer applications to handle AJAX and REST based access to servic...


  • The Backbone.js Todo List Sample, Refactored - Part 1

    The Backbone.js Todo List Sample, Refactored - Part 1

    Aug 11
    11

    This is a long post with lots of code. I want to be complete, but I also don’t want to bore you to tears. If you want to see the refactor right now - here it is. I’m fairly certain I don’t know what I’m doing - and that I probably lack the experience to even be writing this post. All I can tell you is that I have a feeling… a not so good feeling… when reading the current Todo List tutorial up on Github. So I figured I’d refactor it and submit a pull request. Is this correct? You tell me… Wh...


  • How to convert an ASP.NET Web Forms web application into ASP.NET MVC 3

    How to convert an ASP.NET Web Forms web application into ASP.NET MVC 3

    May 11
    06

    So, you have a traditional web forms web application and you are inspired by the new ASP.NET MVC 3 are you? Well this is definitely doable. In this how to guide I will tell you step by step exactly how you can add your new ASP.NET MVC 3 work into your existing ASP.NET web forms project. 1. Add referencesRight click on your web root project in Visual Studio (2010 in my case) and add the following references: System.Web.Routing System.Web.Abstractions System.Web.Mvc System.WebPages System.Web...


  • Changing Base Type Of A Razor View

    Changing Base Type Of A Razor View

    Feb 11
    21

    Within a Razor view, you have access to a base set of properties (such as Html, Url, Ajax, etc.) each of which provides methods you can use within the view. For example, in the following view, we use the Html property to access the TextBox method. @Html.TextBox("SomeProperty") Html is a property of type HtmlHelper and there are a large number of useful extension methods that hang off this type, such as  TextBox. But where did the Html property come from? It’s a property of System.We...



  • 1