Click here to Skip to main content
15,947,958 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii

i have a code generated from codesmith tool but at running it shows me error 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.
Unknown server tag 'data:ConceptQuestionsDataSource'.

aspx page:
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 ???
Posted
Updated 23-Feb-15 18:56pm
v2

"ConceptQuestionsDataSource" is your DataGrid or DataView or DataReader? if yes then please check whether you have placed the same on Page or not. because it is only related to the control named "ConceptQuestionsDataSource".
 
Share this answer
 
Comments
vatsaldesai 24-Feb-15 1:26am    
its a dataGrid with update & delete.. so what i have to do i didn't uderstand what you have explain in your answer
reply fast
vatsaldesai 24-Feb-15 1:29am    
its a datagrid & what i have to do can you tell me because i didn't understand what you say in your answer.
because you have generated the code using third party tool (code smith) somehow Microsoft .net is unable to understand the datagrid attribute "data:ConceptQuestionsDataSource" here, "data" is completely unrecognised by the .net.

So instead of:
<data:conceptquestionsdatasource id="ConceptQuestionsDataSource" runat="server" xmlns:data="#unknown">

Mention
<asp:gridview id="GridView1" runat="server" xmlns:asp="#unknown">

Kindly try.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900