Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Detect Client-side Keyboard Layout

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joris van Lier - 21 Apr 2008 09:16 GMT
Is it possible to detect the client-side keyboard layout of an ASP.NET web
client?
I'm working on an application where users with differing locales are
providing numeric input with decimal separators.

In order to interpret decimal separators I'm relying on the HTTP Header
"Accept-Language" whose values are exposed by HttpWebRequest.UserLanguages.

Preliminary testing revealed that the decimal separator produced by using
the numpad [./del] varies with the keyboard layout chosen by the client, NOT
with the language header sent by the browser.

Is there a (semi-)reliable way to detect the Keyboard layout of the client
in an ASP.NET web application?
(preferably this would not require creating my own browser or Active-X
control to communicate with the OS and transmit the data to the server)

Please suggest other ways of adapting server-side Locale to client-side
input.

Thanks for your help

Joris van Lier
Mark Rae [MVP] - 21 Apr 2008 11:05 GMT
> Is there a (semi-)reliable way to detect the Keyboard layout of the client
> in an ASP.NET web application?
> (preferably this would not require creating my own browser or Active-X
> control to communicate with the OS and transmit the data to the server)

Not natively. As you say, an ActiveX control or a Java applet are pretty
much your only choices...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.