Suppose I have 2 resources files; one's called HomeEN.resx
and the other one is called HomeFR.resx
. I've looked at online tutorials that show how the selection of the resource file is done automatically, based on the user's setting in his browser.
I want to select the resource file at runtime, something like this:
protected void Page_Load(object sender, EventArgs e)
{
switch (TheLanguage) {
case 1:
// select the English file HomeEN.resx;
break;
case 2:
// select the French file HomeFR.resx;
break;
}
}
How do I write these statements?