N
Nathan Sokalski
I am writing a piece of code for an ASP.NET function that generates an
onKeyPress JavaScript eventhandler that uses the event.keyCode / event.which
properties. I have two situations that I would appreciate any advice on:
1. I know that IE uses event.keyCode to get the key pressed. I have,
however, seen sites that some versions of Netscape use event.which and some
versions use event.keyCode. Does anyone know of a site that lists which one
all the versions of as many of the existing browsers as possible use?
2. I need to write server-side ASP.NET code in VB.NET to determine which
browser is requesting the page. I know that this is done using the
Page.Request.Browser object, but because this is the first time I have
needed to worry about the browser all the way down to the specific version,
I want to know the best, simplest, most efficient way to do this.
Thank you to everyone in advance.
onKeyPress JavaScript eventhandler that uses the event.keyCode / event.which
properties. I have two situations that I would appreciate any advice on:
1. I know that IE uses event.keyCode to get the key pressed. I have,
however, seen sites that some versions of Netscape use event.which and some
versions use event.keyCode. Does anyone know of a site that lists which one
all the versions of as many of the existing browsers as possible use?
2. I need to write server-side ASP.NET code in VB.NET to determine which
browser is requesting the page. I know that this is done using the
Page.Request.Browser object, but because this is the first time I have
needed to worry about the browser all the way down to the specific version,
I want to know the best, simplest, most efficient way to do this.
Thank you to everyone in advance.