Apr 03, 2008 03:03 PM|vivek_iit|LINK
Is there any way to search all the label in the form and replace it with the selected language from the library while the form load ? Is it a proper way on using asp.net localization? or ??
If you want to do a manual search, then you can parse all the controls inside the form using foreach loop and assign strings manually, like:
foreach (Control c in this.controls)
if (typeof(c) is Label) //then do stuff...
Another way would be to use the SAME resource key for all the controls who have the same localized text. This would be good ONLY if you want to use the same text for all the lables.