Home > Net >  Base class including field "Modules1", but its type (ModuleMenu) and control (ASP) control
Base class including field "Modules1", but its type (ModuleMenu) and control (ASP) control

Time:10-07

Registration:
<% @ Register Src="https://bbs.csdn.net/topics/~/Controls/ModuleMenu.ascx" TagName="ModuleMenu TagPrefix"="as" % & gt;

Control:
<% @ Control Language="c #" AutoEventWireup="true" CodeFile="ModuleMenu..ascx. Cs" Inherits="ModuleMenu % & gt;"
Background:
Public partial class ModuleMenu: System. Web. UI. UserControl
{}

Scour online, also did not find problems, analyzes the generated DLL, did find this control exists in multiple DLLS, how to deal with?

CodePudding user response:

If you delete the control or modify the control, but the corresponding aspx without modification

CodePudding user response:

reference 1st floor caozhy response:
did you delete the control or modify the control, but there is no change corresponding aspx


No, just released this is on the server

CodePudding user response:

You most is the definition of conflict, bring namespace a try,

CodePudding user response:

quoted Mr Monkey big baby reply: 3/f
most is your definition of conflict, try to bring namespace

Tried, I can't

CodePudding user response:

CodeFile this check,

What specific error,

CodePudding user response:

reference 5 floor XBodhi. Response:
CodeFile this check,

What specific errors,


Is the error in the title, this is the WEB project, adding controls, is CODEFILE, not CODEBEHIND

CodePudding user response:

Global searching solutions to find the name of the class directly, should be repeated

CodePudding user response:

reference 7 floor XBodhi. Response:
direct global searching solutions to find the name of the class, should be repeated


No repetitive, problem is actually is to use the template page, lead to compile later became two DLLS, one is the ASPX, one is custom controls, points to is actually a, but because it is two DLLS, run the conflict

CodePudding user response:

Impossible, it must be with the same name, otherwise can't appear this kind of mistake,

CodePudding user response:

references 9 f XBodhi. Response:
, must have the same name, otherwise can't appear this kind of mistake,


Convenient, you can remote my computer debug view

CodePudding user response:

Before writing the webform always with user controls, not encountered this problem,
  • Related