Is there a way to not put the project name in the Inherits attribute?
I am working with vb and I have multiple projects, that have multiple web pages.
In each of these projects I create controls that are reused in the web pages.
Each control I have is declared like this:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="MenuBarControl.ascx.vb" Inherits="**projectName**.MenuBarControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
When I want to copy the control into another project I have to change the **projectName**.
Having to change the project name for each project makes the code not reusable. Changes made to specific projects each time is not reusable.
I want to be able to omit the project name in the Inherits attribute.
When I do that now I get an error
Parser Error
Parser Error Message: Could not load type 'MenuBarControl'.
Just create a new project that includes all the controls, reference that from the web projects.