views:

27

answers:

1

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

my code:

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

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

wats wrong over here. wat i need to add any more...???

A: 

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

Restuta