Articles : Page 1 of 1

  • Getting a Web Resource Url in non WebForms Applications

    Getting a Web Resource Url in non WebForms Applications

    Oct 11
    05

    WebResources in ASP.NET are pretty useful feature. WebResources are resources that are embedded into a .NET assembly and can be loaded from the assembly via a special resource URL. WebForms includes a method on the ClientScriptManager (Page.ClientScript) and the ScriptManager object to retrieve URLs to these resources. For example you can do: ClientScript.GetWebResourceUrl(typeof(ControlResources), ControlResources.JQUERY_SCRIPT_RESOURCE); GetWebResourceUrl requires a type (which is use...


  • Redirecting Routes To Maintain Persistent URLs

    Redirecting Routes To Maintain Persistent URLs

    Feb 11
    03

    Over a decade ago, Tim Berners-Lee, creator of the World Wide Web instructed the world know that cool URIs don’t change with what appears to be a poem, but it doesn’t rhyme and it’s not haiku. What makes a cool URI? A cool URI is one which does not change. What sorts of URI change? URIs don't change: people change them. In a related article, URL as UI, usability expert Jakob Nielsen lists the following criteria for a usable site: a domain name that is easy to remember and easy to spell...


  • Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms applications

    Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms applications

    Jan 11
    06

    I got an interesting question recently from a gentleman who has an existing ASP.NET WebForms 2.0 application that works just fine. He's upgraded it to ASP.NET 4 and it still works great, but now he wants to add some ASP.NET MVC pages to it. He doesn't want to rewrite the application. A few years ago I did a post on Hybrid ASP.NET applications. The goal was to reinforce the point that you can have ASP.NET applications that are both WebForms and MVC (as well as WCF and ASMX Web Services and o...


  • A Sordid Little Tale Of Unexpected Security Exceptions

    A Sordid Little Tale Of Unexpected Security Exceptions

    Nov 10
    05

    It was a dark and stormy coding session; the rain fell in torrents as my eyes were locked to two LCD screens in a furious display of coding … …sorry sorry, I just can’t continue. It’s all a lie. This actually a cautionary tale describing one subtle way that you can run afoul Code Access Security (CAS) when attempting to run an application in partial trust. But who wants to read about that? Right? Right? Well this isn’t a sordid tale, but if you bear with me, you may just find it intere...



  • 1