正在运行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"
答案 0 :(得分:1)
您的页面标记中声明了GridView1_RowUpdated
事件处理程序,但您的代码后面不包含此类函数。