Articles : Page 1 of 4

  • How was my 2010?

    How was my 2010?

    Jan 11
    13

    It’s the beginning of the year again, and exactly as last year, on the 13th of January I’m reviewing the year that passed against the my 2010 resolutions, and see how it went. Who did 2010 go? Before starting the list I want to add a resolutions that I didn’t disclose with my 2010 resolutions: I wanted to move out of Italy in 2010. And since now I’m living in Belgium I think the biggest goal form 2010 was accomplished. But all the other resolutions where a bit shadowed by the big effort need...


  • 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...


  • MVC 2 Model Metadata to Render Dynamic UI

    MVC 2 Model Metadata to Render Dynamic UI

    Sep 10
    09

    Recently we had a project where we needed to render certain questions on the screen dynamically based on answers to previous questions on previous screens.  For questions that need to dynamically be visible/invisible on the same screen, this can simply be controlled with jQuery.  However, in this case, based on the user’s input on previous screens we know there are certain questions that will not be applicable before the current screen even loads. In this case, we could use jQuery to set those...


  • 13 books for a .NET Summer reading list

    13 books for a .NET Summer reading list

    Aug 10
    16

    As last year, before going on holiday I’m list some of the books that are in my reading list. It’s not entirely about .NET book, but will also cover other languages not related with .NET development at all, like Scala or Arduino. JavaScript and jQuery I think JavaScript is still the most unknown language among all the ones used to write web applications: mostly due to the fact that it lives in the limbo between developer and designer. JavaScript: The Good Parts It seems incredible, but I ...


  • IntelliSense for jQuery in Visual Studio 2010

    IntelliSense for jQuery in Visual Studio 2010

    Aug 10
    04

    I read this morning in Steve Sanderson's Pro ASP.NET MVC 2 Framework book that it is possible to get IntelliSense when using the popular JavaScript library, jQuery. Microsoft have decided to implicitly support jQuery by including some of its libraries in their sample MVC project. This is as well as their own AJAX library that comes with a lot of support for ASP.NET Web Forms specific features, which of course you won't be needing in ASP.NET MVC. Part of their support translates into workin...


  • Migrating ASP.NET MVC 2 applications to ASP.NET MVC 3 Preview 1

    Migrating ASP.NET MVC 2 applications to ASP.NET MVC 3 Preview 1

    Jul 10
    28

    ASP.NET MVC 3 Preview 1 has just been released! More info on ScottGu's blog. Download ASP.NET MVC 3 Preview 1! I just finished up a preview of my ASP.NET MVC application conversion tool to support conversions from ASP.NET MVC 2 to ASP.NET MVC 3. The previous version of the app that converted from ASP.NET MVC 1.0 to ASP.NET MVC 2 is available here. Download The app is a single executable: Download MvcAppConverter-MVC3Preview1.zip (256 KB). Usage The only requirement for this tool ...


  • July 9th Links: ASP.NET, ASP.NET MVC, jQuery, Silverlight, WPF, VS 2010

    July 9th Links: ASP.NET, ASP.NET MVC, jQuery, Silverlight, WPF, VS 2010

    Jul 10
    09

    Here is the latest in my link-listing series. Also check out my VS 2010 and .NET 4 series and ASP.NET MVC 2 series for other on-going blog series I’m working on. [In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu] ASP.NET Extending ASP.NET Output Caching: Scott Mitchell has a nice article that discusses how to take advantage of ASP.NET 4’s extensible cache provider API to implement richer output caching mechanisms...


  • Signup for MvcConf – Virtual ASP.Net MVC Conference

    Signup for MvcConf – Virtual ASP.Net MVC Conference

    Jul 10
    08

    When: Thursday in July 22nd 8am - 5pm CDT Cost: Free Where: Virtual (Live Meeting) Register: http://www.mvcconf.com MvcConf is a online conference where you can learn about real experiences creating MVC applications as well about what the future holds for creating asp.net apps based on MVC. I have scheduled community members to present on intro and advanced topics using MVC2 and we have some Microsoft product members who will talk about some of the new stuff coming out soon. Prepare: ...

    • jQuery
    • MVC2

  • Validating a Dynamic UI with MVC 2

    Validating a Dynamic UI with MVC 2

    Jul 10
    07

    When MVC 2 was released, there was a last minute change to use Model Validation instead of Input Validation. Essentially, Model validation means that your entire view model will be validated regardless of which values actually got posted to the server. On the other hand, with Input validation, only the values that get posted to the server will get validated. While this was the right decision by the MVC team for the most mainstream cases, there are still some cases where the previous behavior o...


  • Using ModelMetaData in ASP.Net MVC 2 to wire up sweet jQuery awesomeness

    Using ModelMetaData in ASP.Net MVC 2 to wire up sweet jQuery awesomeness

    Jun 10
    23

    I recently came up with an approach to wiring up some jquery plugins that modify the behavior of standard input text boxes. The approach is not original by any means.I got the idea from the built in client side validation for MVC2, which was inspired by Steve Sanderson's xVal framework. The goal. I wanted a way to add both Watermark and Masked Input functionality to text boxes on my MVC views. I wanted to do this in an unobtrusive jQuery-ish way. I also did not want to reinvent the Editor t...