背景: 我有一个双赢论坛,即根据所提供的信息,在数据库中登记用户,自动生成随机密码和用户名称,并电子邮件用户链接,根据选定的营销公司接收申请。
Problem:
- When the user selects the lbCarrier(s), the Bundles don t show up in the listbox b/c the lostfocus feature doesn t work for asp.net. What code can I use to auto-populate the Bundles listbox based on what is selected in lbCarrier listbox for ASP.NET.
Code from default.aspx.vb:
Private Sub lbCarriers_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles lbCarriers.LostFocus
Dim splt() As String
Dim ac1 As Array
bundles.Items.Clear()
For Each item In lbCarriers.Items
splt = Split(item.text, "|")
ac1 = proxy.GetContractingBundles("test", "test", Trim(splt(0)))
For Each Pitem In ac1
bundles.Items.Add(Trim(splt(2)) & " | " & Pitem.FormBundleName)
Next
Next
End Sub
Protected Sub lbCarriers_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles lbCarriers.SelectedIndexChanged
End Sub