按钮单击事件不会在选项卡容器内触发 [英] Button click event does not fire inside tab container

查看:69
本文介绍了按钮单击事件不会在选项卡容器内触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经放置了一个按钮,文本框和gridview.Girdview将在点击按钮后显示数据。但是按钮点击不会触发

请帮助...

I have placed a button,textbox and gridview.Girdview will show data after click on the button.But button click does not fire
please help ...

推荐答案

首先尝试调试代码,如果点击按钮控件没有进入按钮事件那么



如果可能,做一件事,创建新按钮并在其事件中编写代码。
first try to debug the code if on click of button control is not coming to button event then

Do one thing if possible, create new button and write your code inside it's event.


如果您在中编写了一些代码if(!IsPostBack),那么这会引起问题。

所以试着删除它,看看会发生什么。

或者把断点看看。



-KR
If you have written some code in if(!IsPostBack), then that would cause problem here.
So try to remove it and see what happens.
Or else put the breakpoint and see.

-KR


这篇关于按钮单击事件不会在选项卡容器内触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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