显示编译错误 [英] compilation error shown

查看:80
本文介绍了显示编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到此错误,请尝试解决但未成功

i have this error pls solve it i try but not succeeded

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

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

Source Error:



Line 285:                                <asp:Panel ID="Panel3" runat="server">
Line 286:                                    &nbsp;
Line 287:                                    <asp:Button ID="btnSave" runat="server" CssClass="FormStyleButtonAct" OnClick="btnSave_Click"
Line 288:                                        AccessKey="s" Text="Save" />
Line 289:                                    &nbsp;&nbsp;

推荐答案

好像后面的代码中没有btnSave_Click方法.

祝你好运!
Looks like there is no btnSave_Click method in your code behind.

Good luck!


<asp:button id="btnSave" runat="server" cssclass="FormStyleButtonAct" onclick="btnSave_Click" xmlns:asp="#unknown">
</asp:button>


从aspx页面中删除btnSave_Click事件.


Remove the btnSave_Click event from the aspx page.


您尚未在"btnSave_Click"
You have not implemented the event at code behind "btnSave_Click"


这篇关于显示编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆