大家好,我添加了Gridview来显示一些表数据,但当我运行页面它给我这个消息
问题描述:
大家好,我添加了gridview来显示一些表格数据
,但是当我运行页面时它会给我这个消息
无法确定MetaTable。无法确定数据源'SqlDataSource1'的MetaTable,并且无法从请求URL推断出MetaTable。确保表已映射到dats源,或者数据源配置了有效的上下文类型和表名,或者请求是已注册的DynamicDataRoute的一部分。
hi for all i added gridview to show some table data
,but when I run the page it give me this message
Could not determine a MetaTable. A MetaTable could not be determined for the data source 'SqlDataSource1' and one could not be inferred from the request URL. Make sure that the table is mapped to the dats source, or that the data source is configured with a valid context type and table name, or that the request is part of a registered DynamicDataRoute.
答
你的问题我不清楚。根据我的理解,您似乎正在使用SqlDataSource,它可能会错过分配其数据源。如果不是这种情况,请提供更多信息以及可能的代码。
谢谢
You question is not clear to me. As per my understanding it seems you are using SqlDataSource and it might miss to assign its data source. If this is not the case please provide more information and if possible code as well.
Thanks