Adding usercontrol to an aspx page

The base class includes a field 'WebUserControl1', but its type is (common_WebUserControl)incompatible with the type of control(ASP.common_webusercontrol_ascx)

my code is:

<%@ Register Src="~/LoginControl.ascx" TagName="TagLogin" TagPrefix="Login" %>


<Login:TagLogin id="CtrlLoginControl" runat="server"></Login:TagLogin>

wats wrong here. wat should i add more ... ???

+3
source share
1 answer

Try placing your controls in specific namespaces, then asp.net will not try to generate types for them.

+1
source

Source: https://habr.com/ru/post/1751713/


All Articles