asp.net中的编译时错误

asp.net中的编译时错误,asp.net,Asp.net,我正在运行asp.net应用程序。我尝试使用gridview构建示例站点。我得到编译错误,如下所示 CS1061: 'ASP.gridedit_aspx' does not contain a definition for 'GridView1_RowUpdated' and no extension method 'GridView1_RowUpdated' accepting a first argument of type 'ASP.gridedit_aspx' could be foun

我正在运行asp.net应用程序。我尝试使用gridview构建示例站点。我得到编译错误,如下所示

CS1061: 'ASP.gridedit_aspx' does not contain a definition for 'GridView1_RowUpdated' and no extension method 'GridView1_RowUpdated' accepting a first argument of type 'ASP.gridedit_aspx' could be found (are you missing a using directive or an assembly reference?)

Line 13:         <asp:GridView ID="GridView1" runat="server" DataKeyNames="ID" 
Line 14:               AutoGenerateColumns="False" 
Line 15:               DataSourceID="SqlDataSource1" 
CS1061:'ASP.gridedit\u aspx'不包含'GridView1\u RowUpdated'的定义,并且找不到接受类型为'ASP.gridedit\u aspx'的第一个参数的扩展方法'GridView1\u RowUpdated'(是否缺少using指令或程序集引用?)

第13行:您的页面标记中声明了一个
GridView1\u RowUpdate
事件处理程序,但是您的代码背后不包含这样的函数。

您好,frederick,非常感谢您解决了这个问题。.我现在得到了另一个异常,描述为:在执行当前web请求期间发生了一个未处理的异常。请查看堆栈跟踪以了解有关错误的更多信息以及错误在代码中的起源。异常详细信息:System.ArgumentException:关键字不受支持:“提供程序”。@jeni,我们需要更多信息来理解该错误。你能发布代码的相关部分和完整的异常回溯(可能在另一个问题中)吗?嗨,fredrick,谢谢你的回复。我解决了问题。我在数据库中犯了一些基本错误。无论如何,我会在下一个问题中发布一些错误。。