我尝试添加文件以更新应用程序以在托管在 IIS 7 上的 Web 应用程序上生成新的 excel 报告,但是当我单击在应用程序上生成时出现以下错误
编译错误
描述:在编译服务此请求所需的资源期间发生错误。请查看以下特定错误详细信息并适当修改您的源代码。
编译器错误消息:
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?)
源错误:
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