Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
List.ascx defined in multiple places ASP.NET
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="anna_parkins7, post: 527648"] 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> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
List.ascx defined in multiple places ASP.NET
Top