从数据库中检索数据时如何隐藏下拉列表 [英] how to hide dropdownlist while retrieving data from database

查看:130
本文介绍了从数据库中检索数据时如何隐藏下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在数据库中插入表(员工).
字段是名称移动工作类型电子邮件等.

现在我想更新数据列表中的员工表,当我将数据绑定到数据列表时,我想隐藏作业类型(下拉列表).
我怎么能藏起来..

在此先感谢

I have inserted table(employee) in database.
fields are Name Mobile job type email etc.

now i want to update employee table in datalist,when i binding data to datalist i want to hide job type(dropdownlist).
how can i hide ..

Thanks in advance

推荐答案

希望此链接会有所帮助:
http://stackoverflow.com/questions/1663050/asp-net-c-sharp-removing-a-column-from-a-datalist [
Hope this link will help:
http://stackoverflow.com/questions/1663050/asp-net-c-sharp-removing-a-column-from-a-datalist[^]

Thanks.


我会通过javascript使用可见性样式.


I would use the visibility style through javascript.


document.getElementById('client-side id of element').style.visibility = "hiddden";



触发请求时,将其设置为隐藏",完成后将其设置为可见".

希望对您有所帮助.



When you fire the request, you set it to "hidden", when it''s done to "visible".

hope this helps.


这篇关于从数据库中检索数据时如何隐藏下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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