public static noJs HasJavascript(HttpContext context) { var noJs = new noJs(); if (context.Request.QueryString.HasValue && context.Request.QueryString.Value.Contains("nojs") || context.Request.Cookies.ContainsKey("nojs")) { if (!context.Request.Cookies.ContainsKey("nojs")) { context.Response.Cookies.Append("nojs", ""); } else { noJs.Cooki = true; } noJs.Meta = true; } return(noJs); }
public static noJs HasJavascript( HttpContext context) { var noJs = new noJs(); if (context.Request.QueryString.HasValue && context.Request.QueryString.Value.Contains("nojs") || context.Request.Cookies.ContainsKey("nojs")) { if (!context.Request.Cookies.ContainsKey("nojs")) { context.Response.Cookies.Append("nojs", ""); } else { noJs.Cooki = true; } noJs.Meta = true; } return noJs; }