I'm create default webpart and creat default user control, drug and drop control to designer on web part and it generate code:
<%@ Register Src="~/_controltemplates/15/InfoTable-SP2013WebPart/UserControl1.ascx" TagPrefix="uc1" TagName="UserControl1" %>
...
<uc1:UserControl1 runat="server" id="UserControl1"></uc1:UserControl1>
But i have warning - "UserControl not know element" and IDE can't generate InitializeControl()
If i change it to:
<%@ Register Namespace="InfoTable_SP2013WebPart.ControlTemplates.InfoTable_SP2013WebPart.UserControl1"
Assembly="$SharePoint.Project.AssemblyFullName$"
Src="~/_controltemplates/15/InfoTable-SP2013WebPart/UserControl1.ascx" TagPrefix="uc1" TagName="UserControl1" %>
<uc1:UserControl1 runat="server" id="UserControl1"></uc1:UserControl1>
Compiler say
"Unrecognized tag prefix 'uc1'"
What i should do right?