Detect browser javascript on and off in ASP.Net using c#

The value of Request.Browser.JavaScript indicates whether Javascript is enabled in browser.

The above method is depreciated. A better solution is as following (C#):

        bool bJavascript = Request.Browser.JavaScript;
        System.Version version = Request.Browser.EcmaScriptVersion;
        if (version.Major >= 1)
        {
            bJavascript = true;
        }

Comments

Popular posts from this blog

Javascript Hosted on Google Drive Not Working Reliably

Newsmag Theme and External Featured Image

Responsive Web Design