I am using Microsof Visual Basic .Net 2008 and Dot Net framework 3.5.
I'm using the following code.
Dim ScriptCntrl as New MSScriptControl.ScriptControlClass
Dim ObjTexbox as new TextBox
ObjTexbox.Name = "txtFirstName"
when I m executing the above code I'm getting following error
"Specified Cast is Not Valid"
What is the solution?