动态创建表格中的复选框 [英] Dynamic creation of checkboxes in a table

查看:79
本文介绍了动态创建表格中的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在单击按钮时动态创建复选框.但是由于回发,我无法保持先前创建的复选框的状态,例如其ID,值等.所以我该怎么做.如果可能,请发送相关代码.

感谢

Hi every one,

I want to dynamically create checkboxes on click of the button. But because of postback i could not maintain the state of previously created checkbox like its Id, value, etc. So how can i do this. if possible send the relative code.

thanks

推荐答案

您需要使用复选框,以使viewstate起作用.代替创建它们,而是使它们可见.
You need the checkboxes to be there, for viewstate to work. Instead of creating them, make them visible.


使用以下链接..会帮助您

此处

问候
Use the following links.. will helps you

Here

regards


这篇关于动态创建表格中的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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