Skip to content

Unknown server tag 'data:ConceptQuestionsDataSource'.

Vatsal Desai

Vatsal Desai

Asked Feb 23, 2015, 7:43 PM EST1 answer
Share
LinkedInX
Hii

i have a code generated from codesmith tool but at running it shows me error Unknown server tag 'data:ConceptQuestionsDataSource'.
 
HTML / XML
<asp:Button runat="server" ID="btnConceptQuestions" OnClientClick="javascript:location.href='ConceptQuestionsEdit.aspx'; return false;" Text="Add New"></asp:Button>         
<data:ConceptQuestionsDataSource ID="ConceptQuestionsDataSource" runat="server"             
SelectMethod="GetPaged"            
 EnablePaging="True"           
  EnableSorting="True"             
EnableDeepLoad="True"           
  >             
<DeepLoadProperties Method="IncludeChildren" Recursive="False">                
 <Types>                   
  <data:ConceptQuestionsProperty Name="Concepts"/>                    
 <data:ConceptQuestionsProperty Name="Questions"/>                 </Types>             </DeepLoadProperties>             
<Parameters>                
 <data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />                 
<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />                 <
asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />                
 <asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />                
 <data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />             </Parameters>      
   </data:ConceptQuestionsDataSource>   
</asp:Content>



why its give me error???? and what is solution ???

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Your code must be missing some user control like..


    <%@ Register Src="SomeMissingUsercontrol.ascx" TagName="ConceptQuestionsDataSource" TagPrefix="data" %>
    0