B
Beegee
Hi
Happy 2006
I want to load the user control dynamically. I want to change to different
usercontrol page to the same place holder accordingly.
If there is no way to do so anyone please suggest me how to evaluate a
string of expression.
I have used the same in VBscript and javascript.
e.g.
stringvariable1 = "TemplateTopUserControl";
stringvariable2 = "\"TemplateTop.ascx\"";
"this." + stringvariable1 + " = (" + stringvariable1 + ")this.LoadControl("
+ stringvariable2 +")"
I want this to be executed as
this.TemplateTopUserControl = (TemplateTopUserControl)
this.LoadControl("TemplateTop.ascx");
I know that we can use eval function available in javascript so I want to
know the equivalent in C#.
Thanks very much
BG
Happy 2006
I want to load the user control dynamically. I want to change to different
usercontrol page to the same place holder accordingly.
If there is no way to do so anyone please suggest me how to evaluate a
string of expression.
I have used the same in VBscript and javascript.
e.g.
stringvariable1 = "TemplateTopUserControl";
stringvariable2 = "\"TemplateTop.ascx\"";
"this." + stringvariable1 + " = (" + stringvariable1 + ")this.LoadControl("
+ stringvariable2 +")"
I want this to be executed as
this.TemplateTopUserControl = (TemplateTopUserControl)
this.LoadControl("TemplateTop.ascx");
I know that we can use eval function available in javascript so I want to
know the equivalent in C#.
Thanks very much
BG