List.ascx defined in multiple places ASP.NET

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top