从数据库中检索数据时如何隐藏下拉列表
问题描述:
我已在数据库中插入表(员工).
字段是名称移动工作类型电子邮件等.
现在我想更新数据列表中的员工表,当我将数据绑定到数据列表时,我想隐藏作业类型(下拉列表).
我怎么能藏起来..
在此先感谢
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.