예제 #1
0
 public static object Substitute(this HtmlHelper html, MvcCacheCallback cb)
 {
     html.ViewContext.HttpContext.Response.WriteSubstitution(
         c => cb(html.ViewContext.HttpContext)
         );
     return null;
 }
예제 #2
0
 public static object Substitute(this HtmlHelper html, MvcCacheCallback cb)
 {
     html.ViewContext.HttpContext.Response.WriteSubstitution(
         c => cb(html.ViewContext.HttpContext)
         );
     return(null);
 }
예제 #3
0
 public static object Substitute(this HtmlHelper html, MvcCacheCallback cb)
 {
     html.ViewContext.HttpContext.Response.WriteSubstitution(c => HttpUtility.HtmlEncode(cb(new HttpContextWrapper(c))));
     return(null);
 }
예제 #4
0
 public static object Substitute(this HtmlHelper html, MvcCacheCallback cb)
 {
     html.ViewContext.HttpContext.Response.WriteSubstitution(
         c => HttpUtility.HtmlEncode(
             cb(new HttpContextWrapper(c))
         ));
     return null;
 }