我不是精英电视剧在线:vb.net dropdownlist.selectedValue的问题

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 09:10:11
将dropdownlist.selectedValue赋值给一变量并做判断,如果满足条件,则linkbutton控件的Visible=false,为什么会实现不了?但是可以将该值赋给label并显示出来,用textbox的text属性做判断,就可以实现隐藏某控件的功能,为什么dropdownlist的selectvalue就不行呢?

把AutoPostBack的属性设成true就行了。