jeni
jeni

Reputation: 983

compile time error in asp.net

Am running asp.net application.I try to build sample site using gridview.I got compilation error as below,

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" 

Upvotes: 0

Views: 302

Answers (1)

Fr&#233;d&#233;ric Hamidi
Fr&#233;d&#233;ric Hamidi

Reputation: 262919

You have an GridView1_RowUpdated event handler declared in your page markup, but your code behind does not contain such a function.

Upvotes: 1

Related Questions