Codelib Future

3 comments

Links to possible things to implement in future

 

Stongly typed web.config sections

http://haacked.com/archive/2007/03/12/custom-configuration-sections-in-3-easy-steps.aspx

 

An implementation of subforms:

http://www.joncurtis.co.uk/

 

Capturing HTML response output to a string instead of sending directly to the browser:

http://www.brightmix.com/blog/how-to-renderpartial-to-string-in-asp-net-mvc/

http://stackoverflow.com/questions/483091/render-a-view-as-a-string/1241257#1241257 

 

MVC Controllers with single Action only

http://jeffreypalermo.com/blog/the-asp-net-mvc-actioncontroller-ndash-the-controllerless-action-or-actionless-controller/

 

Pluggable functionality

Example of how to call a method on an object only if the object exists:

 

        // selects the v3.5 (legacy) or v4 HTML encoder 
        private static HtmlEncoder GetHtmlEncoder() {
            return TypeHelpers.CreateDelegate<HtmlEncoder>(TypeHelpers.SystemWebAssembly, "System.Web.HttpUtility", "HtmlEncode", null) 
                ?? EncodeLegacy; 
        }
 

Comments


Leave a Comment