Hi,
I get the following error when compling. Please help. Thanks.
Error:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'ASP.management_genres_aspx' does not contain a definition for 'GridView1_SelectedIndexChanged' and no extension method 'GridView1_SelectedIndexChanged' accepting a first argument of type 'ASP.management_genres_aspx' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 4: </asp:Content>
Line 5: <asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
Line 6: <asp:GridView ID="GridView1" runat="server" AllowPaging="True"
Line 7: AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="Id"
Line 8: DataSourceID="SqlDataSource1"
Source File: e:\BegASPNET\Site\Management\Genres.aspx Line: 6
Code
Code:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="Id"
DataSourceID="SqlDataSource1"
EmptyDataText="There are no data records to display." CellPadding="4"
ForeColor="#333333" GridLines="None"
onselectedindexchanged="GridView1_SelectedIndexChanged"
onrowdatabound="GridView1_RowDataBound">