I’ll re-explain my situation because i think my initial story wasn’t clear enough.
Im programming a webpage in Visual Studio, it’s in C#, but my actual question is about the HTML portion.
I already succesfully implemented localization. Only problem is i can only change language by hardcoding it (for example i can hardcode language=”EN”, and my site will be in english)
now , of course i dont want to hardcode it, i want people to choose there language. So i need a button that can make the same page reload in another language.
I only need one thing after the reload, and that is the string “en” or “nl” (depending on chosen language). So my button sends me to index.aspx, but my fresh page doesn’t know the value of the button i just pressed.
how do I pass variables?
Okay,
They way i would go about this question is to use a to list all the languages that you want to include:
and then do some processing in your aspx file
–EDIT–
if you use method=”get” in the form the variable chosen will be appended to the url in such a way:
in your aspx page you can run some javascript:
If you place the javascript in the head it will run when the page loads. In the processing part access your language files.