in

Utah .NET User Group

Home of Utah's professional .NET developers.

Matthew M. Osborn's Blog

December 2009 - Posts

  • Updated MVC Script Helpers

    Okay so if you read this title and said “wait… MVC has Script helpers?!” you should first go read my original post on MVC Script & Css Helpers. Okay now for those of you who know what they are or just finished reading about them, I was able to add a small feature from Beta to RC to the script helper that I just didn’t have time to code the first time. If you download the new RC futures assembly and add it to your project or update the existing one you will notice that the script helper now has an overload.

    Overload

    If you have not been able to figure out what this overload does, it allows you to specify a path to a second file to use when you are debugging. For instance it is pretty common to minify JavaScript which basically makes it impossible to read or understand. Most developer maintain to versions on the JavaScript one minified and one not for debugging purposes. In fact if you are using the ScriptManager control in ASP.NET this has the same basic functionality.

    1. <head>
    2.     <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
    3.     <%= Html.Css("Site.css") %>
    4.     <%= Html.Script("MicrosoftAjax.js", "MicrosoftAjax.debug.js") %>
    5. </head>

    So you might be asking how we know when to render the debug script or the release script. This is based off the same logic that the ScriptManager control uses. If the HttpContext.IsDebuggingEnabled is set to true then we will render the debug script. There are a couple ways in which the IsDebuggingEnabled is set to false all of which can be found on MSDN.

    Hopefully this makes the script helper a little more useful. I would love to continue to improve these and maybe even bring them into the main framework some day so please let me know what you think! In fact, this improvement was a request on my original post. You can download MVC Futures here.


  • We want you (again)! If you&rsquo;re a test ninja

    We Want You! If you're a test ninja

    That’s right you read the title right the ASP.NET QA team is once again hosting ninja try outs. We are looking for someone who is able to help evolve the team processes, improve our tooling, and join us in the trenches as we test one of the best technologies out there. Overall the team is responsible for ASP.NET WebForms, ASP.NET MVC, Microsoft AJAX, and a whole slew of other technologies. Our technologies can be found in numerous large scale web sites such as MySpace.com, Dell.com and Deals.Woot.com.

    Once again we would like to find someone that shares our passion for our technology and our trade and someone that has spent sometime in the trenches. So if this sounds like something you’re interested in polish your nun chucks, practice your disappearing skills, and slice your way through our job posting.

    PS: If you listen to the Coding QA podcast you can get a good feel for what it is like being the frontline testing ninjas for ASP.NET. We had a great turn out last time and please feel free submit your resume again it can’t hurt.


Copyright © 2000-2007, Utah .NET User Group
Powered by Community Server (Commercial Edition), by Telligent Systems