This is caused by changes in the ASP.NET 2.0 compilation model. The new dynamic compilation for pages and user controls has the side-effect of making their types more difficult to reference. The best solution is to create a base class for your control which
exposes the functionality you need, and reference that instead. Have a look at
this article for more info. HTH
booler
Star
14342 Points
2205 Posts
Re: Using the class of a user control in code-behind
May 22, 2009 11:21 AM|LINK
This is caused by changes in the ASP.NET 2.0 compilation model. The new dynamic compilation for pages and user controls has the side-effect of making their types more difficult to reference. The best solution is to create a base class for your control which exposes the functionality you need, and reference that instead. Have a look at this article for more info. HTH