0
Answer

Accessing User Controls from code in ASP.NET 2.0

aquaboltar

aquaboltar

20y
1.7k
1
In ASP.NET 1.x I could create a web user control, for example with a classname of TestControl_ascx, whose type could be accessed from any codebehind page. I could even access the type from a class file like testclass.vb, with something like: Dim testX as TestControl_ascx (or C# equivalent) In ASP.NET 2.0 I can't do this. It gives me a type not found error. The only place I can access the type of a web user control is on a page where the control is actually placed. Does anyone know how to access the type of a web user control in ASP.NET 2.0? Thanks, aqua