ファイルを追加してアプリケーションを更新し、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