Sub Page_Load(sender As Object, e As EventArgs)
If Not IsPostBack Then
DropDown2.DataSource=loadData
DropDown2.DataBind
end if'在这里加上一句
end sub
Sub Button1_Click(sender As Object, e As EventArgs)
Label1.Text = "您选择了:" + DropDown2.SelectedItem.Text
End Sub你最好去查一下SUB语句的用法
If Not IsPostBack Then
DropDown2.DataSource=loadData
DropDown2.DataBind
end if'在这里加上一句
end sub
Sub Button1_Click(sender As Object, e As EventArgs)
Label1.Text = "您选择了:" + DropDown2.SelectedItem.Text
End Sub你最好去查一下SUB语句的用法
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货