注册 登录
编程论坛 ASP.NET技术论坛

[求助]按钮事件不触发是怎么回事?

lanye 发布于 2007-07-30 21:23, 1487 次点击

把其他人做的页面拷贝到自己的项目下,其按钮点击没反应,编译成功但不运行调试!求斑竹给处理一下,
this.Button1.Click+=new System.EventHandler(this.Button1_Click);初始化了事件,

只有本站会员才能查看附件,请 登录

button事件的部分代码!

[此贴子已经被作者于2007-7-30 21:25:27编辑过]

2 回复
#2
sean882007-07-31 11:08
你新添加一个Button,双击后,不要写任何代码,启动单步调试,看有没有激发事件,然后你再拷贝代码到事件里.
#3
lanye2007-07-31 12:19
搞定了,多谢兄弟!
1