Hi
I am very new to this and have been following a training document. I hade my asp net web form working ok and displaying data ok
After a close down and open again I am now getting this problem below when I try and run it, Line 12 is highlighted in red. I cannot find out what is causing this, I have checked all the settings but cant seem to find the problem, could someone advise (in simple terms) how I can fix this please. Thanks
Server Error in '/' Application.
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.default_aspx' does not contain a definition for 'GridView1_SelectedIndexChanged' and no extension method 'GridView1_SelectedIndexChanged' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 10: Date:<asp:TextBox ID="textDate" runat="server" Height="29px" Width="259px"></asp:TextBox>
Line 11: <asp:Button ID="Submit" runat="server" Text="Submit" />
Line 12: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
Line 13: DataSourceID="CRMSQL" Width="1234px" AllowPaging="True"
Line 14: AllowSorting="True" BackColor="White" BorderColor="#999999" BorderStyle="None"
Source File: c:\SSIS\web\CRMweb\Default.aspx Line: 12
I am very new to this and have been following a training document. I hade my asp net web form working ok and displaying data ok
After a close down and open again I am now getting this problem below when I try and run it, Line 12 is highlighted in red. I cannot find out what is causing this, I have checked all the settings but cant seem to find the problem, could someone advise (in simple terms) how I can fix this please. Thanks
Server Error in '/' Application.
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.default_aspx' does not contain a definition for 'GridView1_SelectedIndexChanged' and no extension method 'GridView1_SelectedIndexChanged' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 10: Date:<asp:TextBox ID="textDate" runat="server" Height="29px" Width="259px"></asp:TextBox>
Line 11: <asp:Button ID="Submit" runat="server" Text="Submit" />
Line 12: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
Line 13: DataSourceID="CRMSQL" Width="1234px" AllowPaging="True"
Line 14: AllowSorting="True" BackColor="White" BorderColor="#999999" BorderStyle="None"
Source File: c:\SSIS\web\CRMweb\Default.aspx Line: 12