在按钮上单击运行时创建的控件未找到 [英] On button click runtime created control not found

查看:65
本文介绍了在按钮上单击运行时创建的控件未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已经创建了ajax的运行时tabpanel



内部的选项卡面板我已生成gridview运行时并在该gridview中我已动态生成复选框。



现在我想在提交按钮上执行此操作单击我想要gridview和复选框的所有数据但是

i得到了null引用的错误。



我想按下按钮点击所有控制权但不幸的是我无法获得。





如果您有任何想法,请帮助或指导。





非常感谢您提前阅读文章。

Hello,
I have created runtime tabpanel of ajax

Inner that tab panel i have generate the gridview runtime and in that gridview i have generate the checkbox dynamically.

Now i want to do that on submit button click i want that all data of gridview and checkbox but
i got error of null reference.

I want to do on button click all that control back but unfortunetly that i can't get.


Please help or guide me if you have any idea.


Thanks a lot in advance for read the article.

推荐答案

从jQuery 1.7开始,你应该使用jQuery.fn.on

As of jQuery 1.7 you should use jQuery.fn.on


(staticAncestors).on(eventName,dynamicChild, function (){

// 提交逻辑在这里

});
(staticAncestors).on(eventName, dynamicChild, function() { // Submit logic goes here });


这篇关于在按钮上单击运行时创建的控件未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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