未知的服务器标签'data:ConceptQuestionsDataSource'。 [英] Unknown server tag 'data:ConceptQuestionsDataSource'.

查看:47
本文介绍了未知的服务器标签'data:ConceptQuestionsDataSource'。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii



i有一个代码生成的代码,但在运行时它显示错误说明:解析服务此请求所需的资源时出错。请查看以下特定的解析错误详细信息并相应地修改源文件。

未知服务器标签'数据:ConceptQuestionsDataSource'。



aspx页面:

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:

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

推荐答案

ConceptQuestionsDataSource是你的DataGrid或DataView还是DataReader?如果是,那么请检查您是否在页面上放置了相同的内容。因为它只与名为ConceptQuestionsDataSource的控件有关。
"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".


因为你使用第三方工具(代码smith)生成代码,所以Microsoft .net无法理解datagrid属性数据:ConceptQuestionsDataSourcehere数据完全无法识别.net。



所以代替:

< data:conceptquestionsdatasource id =ConceptQuestionsDataSourcerunat =serverxmlns:data =#unknown>



提及

< asp:gridview id =GridView1runat =serverxmlns:asp =#unknown>



请试试。
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.


这篇关于未知的服务器标签'data:ConceptQuestionsDataSource'。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆