Hi all
i try to change the keyboard layout and languge in multilanguages (English and another Dutch-dir=ltr- or Hebrew-dir=rtl-) web pages, its usually changed by Alt+Shift ,KeySend method can control applications but can be usefull but about web page i have no idea i could not find anything can help me, i wish someone can help me here or adivise me how can i do it, a chinish web programmer has a solution in java but did not work for me and i take a look at MSDN :

' Clicking Button1 causes a message box to appear. 
Private Sub Button1_Click(ByVal sender As System.Object, _ 
    ByVal e As System.EventArgs) Handles Button1.Click 
    MessageBox.Show("Click here!") 
End Sub 

' Use the SendKeys.Send method to trigger the Button1 click event 
' and display the message box. 
Private Sub Form1_DoubleClick(ByVal sender As Object, _ 
    ByVal e As System.EventArgs) Handles MyBase.DoubleClick 

    ' Send the enter key; since the tab stop of Button1 is 0, this 
    ' will trigger the click event. 
    SendKeys.Send("{ENTER}") ' or % for alt and... as can find out in its table 
End Sub 

but it can control win base applications and advised in web app. i read in a forum some one tried to manipulate the codes
to use it in web application .net i mean asp.net but...nothing
any sugesstion , idea, advive can help me

Edited by pyTony: fixed formating

11 Years
Discussion Span
Last Post by f1 fan

As you can see its a stop point,i try find a solution,Let me explain more, t
here are many Localized/Globalized or multilanguage sites,in such sites you
can choose the language of the site depend on which Language is family to yo
u, eg i can underestand english language but as i do not know any Germany, i
n a bilangual English/Germany site i change it to English then i can read it
easier,but most of these sites have not any filling part such as registrati
on page in both language but some of them the Registration Page change to la
nguages thats supproted by such sites,i try change my site to a multi langua
ge supported site, i wish there is some can help me.


If you want to just use the default culture of the user then you can get it from the Request. Then set the thread culture to that culture. Doesnt give the users the choice though.

Thread.CurrentThread.CurrentUICulture = 
new CultureInfo(Request.UserLanguages[0].ToString());

Edited by diafol: fixed formatting

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.