I would like to loop throught all label and button controls of myPage and modifie their text property (in fact I want to translate the text depending on the language of the user).
I tried this :
VB Code:
For Each myControl As Control In Page.Controls Dim test As String = myControl.ID ListBox1.Items.Add(myControl.ID) Next
but this does not give me the list of all controls.
I thought that I could loop through all controls, test for each if it is a control or button and then change the property .text to a new value depending on their old value.
Would to nice if anybody could give me a littel help...
Thank you in advance!
Fabian




Reply With Quote