P
Progman
to read the ressources, I execute the following code from my screen files.
Is there another shorter way of doing this? Similar to
"ressource("language1.ressource").key("GuestBook.asax.LabelTitle.Text").Value
txs for your answers in advance
Dim rr As ResourceReader
rr = New ResourceReader(Server.MapPath("~") + Path.DirectorySeparatorChar +
"Common/Resources" + Path.DirectorySeparatorChar + "CommonStrings" +
Trim(Str(Application("Language"))) + ".resources")
Dim de As IDictionaryEnumerator = rr.GetEnumerator()
While de.MoveNext()
Me.LabelTitle.Text = IIf(de.Key.ToString() =
"GuestBook.asax.LabelTitle.Text", de.Value.ToString(), Me.LabelTitle.Text)
End While
rr.Close()
Is there another shorter way of doing this? Similar to
"ressource("language1.ressource").key("GuestBook.asax.LabelTitle.Text").Value
txs for your answers in advance
Dim rr As ResourceReader
rr = New ResourceReader(Server.MapPath("~") + Path.DirectorySeparatorChar +
"Common/Resources" + Path.DirectorySeparatorChar + "CommonStrings" +
Trim(Str(Application("Language"))) + ".resources")
Dim de As IDictionaryEnumerator = rr.GetEnumerator()
While de.MoveNext()
Me.LabelTitle.Text = IIf(de.Key.ToString() =
"GuestBook.asax.LabelTitle.Text", de.Value.ToString(), Me.LabelTitle.Text)
End While
rr.Close()