IIS 7에서 호스팅되는 웹 응용 프로그램에서 새 Excel 보고서를 생성하는 응용 프로그램을 업데이트하기 위해 파일을 추가하려고 시도했지만 클릭하면 생성되는 오류가 발생합니다 응용 프로그램컴파일러 오류 메시지 : CS1061 : 보고서 버튼을 클릭하면
컴파일 오류
설명 :이 요청을 처리하는 데 필요한 리소스를 컴파일하는 동안 오류가 발생했습니다. 다음 특정 오류 정보를 검토하고 소스 코드를 적절하게 수정하십시오.
컴파일러 오류 메시지 :
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
더 자세히 설명하면 +1 할 수도 있습니다. –
그 외에도 추가 할 수있는 것은 그다지 많지 않습니다. 이벤트 서명이 선언 이름과 일치합니까? 마크 업에서 케이스가 정확합니까? (그럴 것 같지 않습니다.) – andleer
제발 내 코드와 .asp 코드를 보내 드리고 있습니다. – Kingsam