public static object Substitute(this HtmlHelper html, MvcCacheCallback cb) { html.ViewContext.HttpContext.Response.WriteSubstitution( c => cb(html.ViewContext.HttpContext) ); return null; }
public static object Substitute(this HtmlHelper html, MvcCacheCallback cb) { html.ViewContext.HttpContext.Response.WriteSubstitution( c => cb(html.ViewContext.HttpContext) ); return(null); }
public static object Substitute(this HtmlHelper html, MvcCacheCallback cb) { html.ViewContext.HttpContext.Response.WriteSubstitution(c => HttpUtility.HtmlEncode(cb(new HttpContextWrapper(c)))); return(null); }
public static object Substitute(this HtmlHelper html, MvcCacheCallback cb) { html.ViewContext.HttpContext.Response.WriteSubstitution( c => HttpUtility.HtmlEncode( cb(new HttpContextWrapper(c)) )); return null; }