嗨...我面对这个错误,我该如何解决..帮助我

问题描述:

CS1061: 'ASP.coaching_class_studentregistration_aspx' does not contain a definition for 'lnkbtnComment_Click' and no extension method 'lnkbtnComment_Click' accepting a first argument of type 'ASP.coaching_class_studentregistration_aspx' could be found (are you missing a using directive or an assembly reference?)













<asp:LinkButton ID="lnkbtnComment" runat="server" Font-Bold="True"

Line                                                                       <pre><pre lang="c#">

onclick =" lnkbtnComment_Click>添加注释</asp:LinkBut​​ton>

onclick="lnkbtnComment_Click">Add Comment</asp:LinkButton>

hi,


在您的应用程序中缺少"lnkbtnComment_Click"事件.您在aspx页面中提到过,但是编译器在.cs页面中找不到



in your application "lnkbtnComment_Click" event is missing. you have mentioned in the aspx page but compiler couldn''t finding in .cs page