예제 #1
0
        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);
        }
예제 #2
0
        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;
        }