Articles : Page 1 of 1

  • Adding Export Capabilities to the Razor WebGrid

    Adding Export Capabilities to the Razor WebGrid

    Sep 11
    03

    When MVC first came out I really missed having a grid control. Now a few years later, we finally have a grid control again. In case, you didnt know the WebGrid was included in the System.Web.Helpers assembly which shipped with MVC 3. After using a variety of grid controls over the years I was actually glad that the API for the new WebGrid was kept clean and simple. Here is a screenshot of what the grid looks like: To display a grid on a razor view page, you basically create a new grid objec...


  • Studio for Wijmo MVC Review

    Studio for Wijmo MVC Review

    Aug 11
    22

    I was recently asked to review Studio for Wijmo MVC by Component One and, overall, I am impressed. There are 2 major components of this. The first is Wijmo Complete which is a collection of over 30 UI widgets (very similar to jQuery UI). The second is Wijmo Scaffolding for MVC which builds upon the scaffolding that was released as part of the MVC 3 Tools Update (note: is does *not* build on top of powershell-based MVC Scaffolding which Microsoft released earlier this year). Some of the Wijmo...


  • How to access controller methods from a view in ASP.NET MVC

    How to access controller methods from a view in ASP.NET MVC

    Jul 11
    30

    This question has been posed in several places. One of the places is on StackOverflow here. The use case here is that my controller has important state or an important function, and I’d like to leverage it from the view. It’s not appropriate to factor out to an html helper or other view-based utility class. It is something unique to the controller. It would be very easy to just pass the controller over to the view so that the view could make use of its methods, but there is a lot of discussion...


  • ViewData, ViewModel, ViewBag...

    ViewData, ViewModel, ViewBag...

    Jul 11
    25

    I was reading Rachel Appel’s post today on when to use ViewData, ViewBag, and TempData and I think it’s a good read. I left a comment but it disappeared… I think her comments might be borked… so I’ll add it here as I think it’s valuable. Here’s the comment I left: ———————————————————————————- Hi Rachel - nice post :). I think there’s a lot of confusion about this and it’s nice to see you tackle it :).  If I may - it might be worth pointing out that *everything* (aside from TempData) ge...


  • A first look at Windows Azure AppFabric Applications

    A first look at Windows Azure AppFabric Applications

    Jul 11
    07

    After the Windows Azure AppFabric team announced the availability of Windows Azure AppFabric Applications (preview), I signed up for early access immediately and got in. After installing the tools and creating a namespace through the portal, I decided to give it a try to see what it’s all about. Note that Neil Mackenzie also has an extensive post on “WAAFapps” which I recommend you to read as well. So what is this Windows Azure AppFabric Applications thing? Before answering that question, le...


  • Mixing Razor Views and WebForms Master Pages with ASP.NET MVC 3

    Mixing Razor Views and WebForms Master Pages with ASP.NET MVC 3

    Jan 11
    25

    I've spent the last few weeks travelling around presenting WebMatrix, Razor and ASP.NET MVC 3 to folks. Many people have existing WebForms apps or MVC apps with WebForms Views. The question has come up a number of times, Can I mix Razor Views and WebForms Views in a single ASP.NET MVC application? The answer is, No, Yes, and Maybe, But It's Not Supported. Most commonly the scenario is that someone has an existing WebForms (ASPX) Master Page that works nicely, and they now want to include...


  • An easy approach to adding user notifications to ASP web applications

    An easy approach to adding user notifications to ASP web applications

    Dec 10
    07

    We all have to do it inform the user of some status such as whether their edit saved properly and/or if a form submission was successful. The work here is based on something I picked up on the this blog: http://blog.idleworx.com/2010/11/friendly-css-error-messages-for-java.html. I changed things slightly to take advantage of the .NET environment. Have you ever wanted user notifications that faded out over a certain time interval? Perhaps you want the user to be able to click a message to m...



  • 1