[thelist] (ASP.NET) Custom Classes

Tab Alleman talleman at Lumpsum.com
Wed Feb 15 13:10:41 CST 2006


Not specifically, I'm assuming Visual Studio.NET does that for me when I re-build the project?

> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Robert Vreeland
> Sent: Wednesday, February 15, 2006 1:14 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] (ASP.NET) Custom Classes
> 
> 
> Did you put a copy of the compiled .dll file in the web 
> application bin
> directory? 
> Robert Vreeland 
> 
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Tab Alleman
> Sent: Wednesday, February 15, 2006 9:59 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] (ASP.NET) Custom Classes
> 
> I've created a custom class in VB.NET that inherits the
> WebControl.DropDownList.  I am using Visual Studio.NET, so I 
> believe it
> automatically compiles this into an assembly which is 
> [MyProjectName].dll.
> I put the class in a NameSpace called "CustomControls" 
> because I'm original
> like that.  I named the class "cls_ddlPhoneType".
> 
> I include this line in my ASP page:
> 
> <%@ Register TagPrefix="TAB" Namespace="CustomControls"
> Assembly="[MyProjectName]" %>
> 
> 
> And then in the page, I instantiate my class thus:
> 
> <TAB:cls_ddlPhoneType id="ucPhoneType"
> runat="server"></CustomClasses:cls_ddlPhoneType>
> 
> 
> When I execute the page, I get this:
> 
> Parser Error Message: Could not load type 
> CustomControls.cls_ddlPhoneType
> from assembly [MyProjectName], Version=1.0.2229.18465, 
> Culture=neutral,
> PublicKeyToken=null.
> 
> --any ideas?
> 
> 
> PS:  in this email, I've replaced the actual project name 
> with the token
> [MyProjectName]; it doesn't really say that.
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip 
> Harvester and archives
> of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! 
> 
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 
> 



More information about the thelist mailing list