Mantorok wrote:
Is there any way, from ASP, ASP.Net or client-side scripting, to determine
whether the browser has client-scripting disabled?
Thanks
Kev
Check the below pasted MSDN code excerpt for finding whether browser
supports JS or not
using System;
using System.Web.UI;
using System.Web.UI.Adapters;
public class CustomControlAdapter : ControlAdapter
{
protected override void Render( HtmlTextWriter writer )
{
// Access Browser details through the Browser property.
Version jScriptVersion = Browser.JScriptVersion;
// Test if the browser supports Javascript.
if (jScriptVersion != null)
{
// Render JavaScript-aware markup.
}
else
{
// Render scriptless markup.
}
}
}
There is one more way to do this, check this article
(
http://www.15seconds.com/issue/030303.htm) which works in .NET 1.1 as well.
Let me know if you need any further clarifications.
-
Vadivel Kumar
http://vadivelk.net