本文介绍了DDL没有开火的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户选择元素时,如何触发Dropdownlist?我的
代码是:
Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object,ByVal
$ b $ as As System.EventArgs)处理DropDownList1。 SelectedIndexChanged
Dim selectedItem = DropDownList1.SelectedValue
Me.Label1.Text ="" + selectedItem +""
End Sub
How do I get a Dropdownlist to fire when the user selects an element? My
code is:
Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
Dim selectedItem = DropDownList1.SelectedValue
Me.Label1.Text = "" + selectedItem + ""
End Sub
推荐答案
这篇关于DDL没有开火的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!