在代码中包含nreakpoint时,Asp Button未触发 [英] Asp Button is not firing while having the nreakpoint in code behind

查看:55
本文介绍了在代码中包含nreakpoint时,Asp Button未触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用asp:button
我这样编码

hi all,

i am using asp:button
i code like this

<asp:Button ID="btnFinish" runat="server" Text="Finish" Width="100px" OnClick="btnFinish_Click" />


我在其中放置断点的地方看不到代码中此按钮的功能

注意:

当我新创建asp:button
像这样


i cannot see the functionality for this button in code behind while i put the breakpoint there

Note:

when i newly create the asp:button
like this

<asp:Button ID="btnFinish" runat="server" Text="Finish" Width="100px"/>


我仍然没有为此添加点击事件
然后我尝试在属性窗口中添加点击事件"
实际上,它想自动编码更改,例如


still i didnt add the click event for this
and then i tried to add "click event" in property window
Actually it want to automatically code change like

<asp:Button ID="btnFinish" runat="server" Text="Finish" Width="100px" OnClick="btnFinish_Click" />


却不会那样改变

它仍然保留在


but it doesn''t change like that

it still remains in

<asp:Button ID="btnFinish" runat="server" Text="Finish" Width="100px"/>


我认为这是无法点火的问题


谁能帮我吗

在此先感谢

M.S.K. Saravana Kumar


i think this was the problem not firing


can anyone please help for me

thanks in advance

M.S.K.Saravana Kumar

推荐答案

M.S.K.Saravana Kumar,

关闭应用程序,然后再次打开它,并确保您的代码成功构建它,否则您可能会忘记写一些东西

肯定会正常工作
Hi M.S.K.Saravana Kumar,

close the application and open it ones again and be assure ur code build it sucessfully or not may be u forget to write something

its an normal issue definatly it will work


M.S.K.Saravana Kumar,

以事件处理程序的形式在某些函数中编写代码,并将其名称命名为asp按钮的"OnClick"事件.我希望它能正常工作.
Hi M.S.K.Saravana Kumar,

Write your code in some function in the form of eventhandler, and give its name to ''OnClick'' event of asp button. I hope it will work.


只需重置Visual Studio设置,然后重新开始...
转到工具>>导入&导出设置>>重置设置...
just reset visual studio settings and start again...
go to tools>>import & export setting>>reset settings...


这篇关于在代码中包含nreakpoint时,Asp Button未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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