A
anna_parkins7
Hi
Quick question, that will point me in the right direction. I have 2
user controls on a page, both called List.ascx but obviously in 2
different namespaces and 2 different tags.. however I get the error:
Compiler Error Message: CS1595: 'ASP.List_ascx' is defined in multiple
places; using definition from
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\wms\14c775ea\f2e196aa\rkmoy7hl.dll'
Now the question is can I have 2 usercontrols with the same name in a
page? If not why the namespace?
Any help appreciated.
Many thanks
Richard
A sample of the HTML is as follows:
<%@ Page language="c#" Codebehind="View.aspx.cs"
AutoEventWireup="false"
Inherits="TouchScreenData.Web.Private.Admin.Customer.View" %>
<%@ Register TagPrefix="uc1" TagName="List"
Src="../../../Controls/Customer/Notes/List.ascx" %>
<%@ Register TagPrefix="uc2" TagName="List"
Src="../../../Controls/Customer/Address/List.ascx" %>
<%@ Register TagPrefix="tsd" Namespace="TouchScreenData.MasterPages"
Assembly="TouchScreenDataMasterPages" %>
<tsd:masterpage id="MPContainer" PageCss="public.css"
masterpagefile="AdminTemplate.ascx" runat="server">
<H4>View Client Details</H4>Notes (click <A
href="<%# AddNoteNavigation%>">here</A> to add note)
<uc1:List id="List1" runat="server"></uc1:List>
(click <A
href="<%# AddAddressNavigation%>">here</A> to add address)
<uc2:List id="List2" runat="server"></uc2:List></tsd:masterpage>
Quick question, that will point me in the right direction. I have 2
user controls on a page, both called List.ascx but obviously in 2
different namespaces and 2 different tags.. however I get the error:
Compiler Error Message: CS1595: 'ASP.List_ascx' is defined in multiple
places; using definition from
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\wms\14c775ea\f2e196aa\rkmoy7hl.dll'
Now the question is can I have 2 usercontrols with the same name in a
page? If not why the namespace?
Any help appreciated.
Many thanks
Richard
A sample of the HTML is as follows:
<%@ Page language="c#" Codebehind="View.aspx.cs"
AutoEventWireup="false"
Inherits="TouchScreenData.Web.Private.Admin.Customer.View" %>
<%@ Register TagPrefix="uc1" TagName="List"
Src="../../../Controls/Customer/Notes/List.ascx" %>
<%@ Register TagPrefix="uc2" TagName="List"
Src="../../../Controls/Customer/Address/List.ascx" %>
<%@ Register TagPrefix="tsd" Namespace="TouchScreenData.MasterPages"
Assembly="TouchScreenDataMasterPages" %>
<tsd:masterpage id="MPContainer" PageCss="public.css"
masterpagefile="AdminTemplate.ascx" runat="server">
<H4>View Client Details</H4>Notes (click <A
href="<%# AddNoteNavigation%>">here</A> to add note)
<uc1:List id="List1" runat="server"></uc1:List>
(click <A
href="<%# AddAddressNavigation%>">here</A> to add address)
<uc2:List id="List2" runat="server"></uc2:List></tsd:masterpage>