Innova
Innova

Reputation: 4971

adding usercontrol to aspx page

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...???

Upvotes: 4

Views: 8251

Answers (1)

Restuta
Restuta

Reputation: 5903

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

Upvotes: 1

Related Questions