Hi:
I've got a Dictionary object.
I've also got a bunch of System.Web.UI.WebControls.
Most of the keys in the Dictionary are the same as the variable names for some of the Web controls.
I want to get the Web control object from the DictEntry.Key.
You can do this in Javascript using eval.
I'd like to do something like:
Code:
DictionaryEntry myDE;
System.Collections.IEnumerator MyEnum = MyDict.GetEnumerator();
while (myEnum.MoveNext())
{
myDE = (DictionaryEntry) myEnumerator.Current;
myCtrl = eval(myDE.Key); //<<-- get the object from the key.
myCtrl.Text = myDE.Value;
}
Is anything like this feasable?