所选复选框应如何启用和禁用表中的字段 [英] how selected checkbox's should enable and disable feilds in a table

查看:248
本文介绍了所选复选框应如何启用和禁用表中的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,在ASP.NET网页开发环境中,当我选择网页中的复选框数时,则选中的复选框名称将动态地成为数据库(MySQL server 2005)表中的enable列

example,in ASP.NET webpage development environment when i select number of check box''s in the webpage.then selected check box name''s will be enable column''s in database(MySQL server 2005) table dynamically

推荐答案


1.您需要将复选框的autopostback属性设置为true.然后通过双击为复选框创建事件.并且在这种情况下,您可以通过数据库操作来编写代码.



2您可以使用脚本管理器使用javascript + webservice(用于数据库操作).
Hi,
1. You need to make autopostback property as true for the check box. Then create event for the check box by double clicking it. and in that event you can write your code fro detabase operations.

OR

2 you can use javascript+webservice(for database operation) using script manager.


这篇关于所选复选框应如何启用和禁用表中的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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