I tried adding files to update the application to create new excel reports in my web application hosted on IIS 7, but I get the error below when I click to create in the application
Compilation error
Description: An error occurred while compiling the resource required to service this request. Review the specific error data below and modify the source code accordingly.
Compiler Error Message:
CS1061:
'ASP.reportmonthlyreturns_aspx' does not contain a definition for 'btnGenerator_Click' and no extension method 'btnGenerator_Click' accepting a first argument of type 'ASP.reportmonthlyreturns_aspx' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 36: SelectCommand="SELECT distinct year(departure_berth) as year FROM va_voyage_master_tb"> Line 37: </asp:SqlDataSource> Line 38: <asp:Button ID="btnGenerator" runat="server" Text="Generate Report" Line 39: class="button round blue image-right ic-right-arrow" onclick="btnGenerator_Click" Line 40: /> Source File: c:\inetpub\wwwroot\VoyageApplication\ReportMonthlyReturns.aspx Line: 38
source share