Apparently "Mr. Dot Net" should change his name to
"Dr. Don't Have A Clue Yet" ;-) because all the BrowserCapabilities
class can tell us is if the user agent (the browser) *can* support
JavaScript not *if* JavaScript has been enabled or disabled.
Google" "javascript enabled"+"asp.net" and you'll see at least
two articles on the first page of results...
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL
http://www.metromilwaukee.com/clintongallagher/
"WJ" <Jo*******@HotMail.Com> wrote in message
news:#a**************@TK2MSFTNGP10.phx.gbl...
"Mr. Dot Net" <Do@Not.Spam> wrote in message
news:OW**************@TK2MSFTNGP11.phx.gbl... there is a browsercapabilities class embeded in the httprequest class as a
'browser' attribute..
You can query that class for the client browser.
Thanks for your reply. No it does not work. I went into my MS/IE 6.1 Sp1 and
disabled all Java scripts and applets, I also disabled Cookies. Applied the
changes. Get out of MS/IE and got backin to check the browser if these
settings are indeed persisted and they are. But my Asp.Net application still
sees they are set to "true" as indicated by the code below (unless I am
doing somethings wrong):
private void LinkButton1_Click(object sender, System.EventArgs e)
{
Label1.Text=Request.Browser.JavaScript.ToString()+ ":::"+Request.Browser.Java
Applets.ToString()+":::"+Request.Browser.Cookies.T oString();
}
John