I want to access a usercontrol by a predifened name, like the DevExpress components can. Something like this:
"<dx:MyUserControl runat="server" ID="My" ClientInstanceName="MyClient"></>"
In my main page I would like to access a client method of my usercontrol. Something like:
MyClient.DoSomething();
In my usercontrol page there would be an object that implements this method:
function myClass{
DoSomething : function(){ var a = 2 + 2;}
}
So, normally I would declare the object like : var MyClient = new myClass();
But now MyClient is dynamic, the ClientInstanceName could be whatever...
So how could I do this?
Maybe JSON or eval?