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
Post a Comment