D
Don
I have 2 web user controls (.ascx) with the same name that are in in
different namespaces.
When I try to put both controls on the same page I get the following
runtime error:
BC30560: 'searchCriteria_ascx' is ambiguous in the namespace 'ASP'.
The register tag on the page shows that both controls have the same
tagName but different tagPrefixes.
-------------
Detailed Info:
My application has two types of employees, permanent and temporary. My
control allows the user to pick the search criteria for an employee so
I have a class called searchCriteria in the namespace
Employee.Permanent and another class called searchCriteria in the
namespace Employee.Temporary. They both implement a common Interface
put also have differnces in how they work.
This is the declaration of my code behind class:
Namespace Employee.Permanent
Public Class searchCriteria
Inherits System.Web.UI.UserControl
Implements Interfaces.searchCriteria
...
This is the control line in the ascx file:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="searchCriteria.ascx.vb"
Inherits="HumanResourceManager.Employee.Permanent.searchCriteria"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
These are the register tags on the page:
<%@ Register TagPrefix="uc2" TagName="searchCriteria"
Src="../../Employee/Permanent/searchCriteria.ascx" %>
<%@ Register TagPrefix="uc1" TagName="searchCriteria"
Src="../../Employee/Temporary/searchCriteria.ascx" %>
Thanks,
Don
different namespaces.
When I try to put both controls on the same page I get the following
runtime error:
BC30560: 'searchCriteria_ascx' is ambiguous in the namespace 'ASP'.
The register tag on the page shows that both controls have the same
tagName but different tagPrefixes.
-------------
Detailed Info:
My application has two types of employees, permanent and temporary. My
control allows the user to pick the search criteria for an employee so
I have a class called searchCriteria in the namespace
Employee.Permanent and another class called searchCriteria in the
namespace Employee.Temporary. They both implement a common Interface
put also have differnces in how they work.
This is the declaration of my code behind class:
Namespace Employee.Permanent
Public Class searchCriteria
Inherits System.Web.UI.UserControl
Implements Interfaces.searchCriteria
...
This is the control line in the ascx file:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="searchCriteria.ascx.vb"
Inherits="HumanResourceManager.Employee.Permanent.searchCriteria"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
These are the register tags on the page:
<%@ Register TagPrefix="uc2" TagName="searchCriteria"
Src="../../Employee/Permanent/searchCriteria.ascx" %>
<%@ Register TagPrefix="uc1" TagName="searchCriteria"
Src="../../Employee/Temporary/searchCriteria.ascx" %>
Thanks,
Don