Thursday, March 22, 2012

set meta:resourcekey at runtime

Hi,

how do you set the meta:resourcekey of a dynamically generated control? If I create a new label onInit, how do i set "lblTest.Text" to it?

Thanks

Hello,

You can add the Text property and set its value to:

myLabel.Text = GetLocalResourceObject("Label1.Text");

Does this help?

Regards


Cheers :)

This is one of the methods you can use to do the Localization programmatically!

You also have another method for the Global resources as well!

Regards

0 comments:

Post a Comment