为什么在页面加载后第一次将GridView放入UpdatePanel内时,不会引发RowCommand事件? [英] Why doesn't RowCommand event fire when GridView is inside the UpdatePanel for the first time after pageload ?

查看:119
本文介绍了为什么在页面加载后第一次将GridView放入UpdatePanel内时,不会引发RowCommand事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么在页面加载后第一次将GridView放在UpdatePanel中时,RowCommand事件不会触发?

回发后效果很好.

Why doesn''t RowCommand event fire when GridView is inside the UpdatePanel for the first time after pageload ?

It works good after postback.

推荐答案

检查是否在页面加载中添加了任何内容
检查您在updatepanel内是否只有gridview,并使用触发器进行异步回发.

谢谢与问候,
Prady
Chek if anything wronly added in page load
Check that you are having only gridview inside the updatepanel,and use the trigger for asynchronouspostback.

Thanks & Regards,
Prady


可以显示代码块吗?听起来您应该使用触发器.让我知道
can you show the code block. sounds like you should use the trigger. let me know


See your gridview may be within an updatepanel and within the gridview there are two same name controls or same name bound field...

Biswajeet Samal


这篇关于为什么在页面加载后第一次将GridView放入UpdatePanel内时,不会引发RowCommand事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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