ASP.NET - Unknown server tag uc1:buttoninside user control

Asked By Youssef g on 03-Feb-16 07:59 AM
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'uc0:buttoninside'.

Source Error:

Line 46:         <div class="notscrolling" id="questionlist">
Line 47:         <h4 style="MARGIN-LEFT: 15px">
Line 48:         <div style="height:35px;"><uc0:buttoninside Width="190" IsVisible="true" whatText="Logout" CommandName="Logout" ID="btn_LogOut" runat="server"  CausesValidation="false"/></div>
Line 49:         </h4>
Line 50:             
Robbe Morris replied to Youssef g on 03-Feb-16 08:00 AM
You've defined  custom user control to be used in your page but didn't declare it at the top of the .aspx page. 

Something like this would go above your server side Page tag:

<%
@Register tagprefix="uc0" Tagname="buttoninside" src="~/MyFolder/ButtonInside.ascx" %>