当我查看网格时出现错误,请帮助我 [英] when i grid view the error ocurs help me
本文介绍了当我查看网格时出现错误,请帮助我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Asp.Net中使用GridView设计应用程序,当我出现以下运行错误时;
GridView1的DataSourceID必须是IDataSource类型的控件的ID.找不到ID为"SqlDataSource1"的控件.
问题是什么.
解决方案
声明一个ID为"SqlDataSource1"的控件,并将其设置为runat ="server",或将其名称更改为确实存在的控件! /blockquote>
i design the application using GridView in Asp.Net.when i run error occurs as follows;
The DataSourceID of ''GridView1'' must be the ID of a control of type IDataSource. A control with ID ''SqlDataSource1'' could not be found.
what is the problem. help me.解决方案Declare a control with the ID "SqlDataSource1" and make it runat="server", or change the name to a control that does exist!
这篇关于当我查看网格时出现错误,请帮助我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文