You can put a <noscript></noscript> tag on your page. Whatever HTML you put
between the tags will be shown in any browser that doesn't support
Javascript or Javascript is disabled. I'm not sure if there is a property
on the server-side that you can check for. If anything you could increment
a hidden input that has runat="server" set with Javascript. When a postback
occurs you can check that variable. If it hasn't incremented or been set to
a value via the Javascript then you'll know that it isn't supported.
I've never tried this but maybe you can even put that hidden field in the
<noscript> block and then check for it when you get back to the server, if
it is present then you'll also know that Javascript is enabled and you won't
need to screw around with programatically setting anything. Good luck!
Ken.
I think Juan and Ken's suggestions are reasonable. If we do need to get
whether the client user has manually disabled the cookie or script, we have
to add some addional roundtrip to clientside to detect the settings.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.