Duplicate custom controls
- From: "Tumurbaatar S." <spam_tumur@xxxxxxxxxxx>
- Date: Fri, 10 Feb 2006 20:36:17 +0800
Hi!
I created some user control (ASCX) and it works fine.
The control is created one of subfolders of my project, so
its namespace looks like:
namespace myproject.subfolder1
{
public class route : System.Web.UI.UserControl
....
In another subfolder I also created second control, but
I used the 1st control as origin. Just copied the 1st control files
to the 2nd subfolder. After changed the 2nd control's namespace as:
namespace myproject.subfolder2
{
public class route : System.Web.UI.UserControl
....
Compilation works ok, but at run-time when I visit a page that contains
both of my controls, the server raises error:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS1595: 'ASP.route_ascx' is defined in multiple
places; using definition from
'd:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\myproject\4b10f33a\12f97037\2bgwzy1u.dll'
.
- Prev by Date: List files in a directory, modify name.
- Next by Date: Display Role After Login
- Previous by thread: List files in a directory, modify name.
- Next by thread: Re: Duplicate custom controls
- Index(es):
Relevant Pages
|