G
gv
Ok,
Hi all, new to asp.net. Simple question
with web forms
I have a Dropdownlist and a listbox, I want to click on and item in the
dropdownlist and show items in listbox. that simple
I have this: I have two items in Dropdownlist. The Reportlist doesn't show
the items ?
I tried to set the Autopostback to true. This does work but, the page
flickers
Private Sub Databaselist_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Databaselist.SelectedIndexChanged
If Databaselist.SelectedValue = "Test1" Then
ReportList.Items.Clear()
ReportList.Items.Add("Test1Totals by Date Range")
ReportList.Items.Add("Test1Totals by name and Date Range")
ElseIf Databaselist.SelectedValue = "Test2" Then
ReportList.Items.Clear()
ReportList.Items.Add("Test2Totals by Date Range")
ReportList.Items.Add("Test2 Totals by name and Date Range")
End If
End Sub
Hi all, new to asp.net. Simple question
with web forms
I have a Dropdownlist and a listbox, I want to click on and item in the
dropdownlist and show items in listbox. that simple
I have this: I have two items in Dropdownlist. The Reportlist doesn't show
the items ?
I tried to set the Autopostback to true. This does work but, the page
flickers
Private Sub Databaselist_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Databaselist.SelectedIndexChanged
If Databaselist.SelectedValue = "Test1" Then
ReportList.Items.Clear()
ReportList.Items.Add("Test1Totals by Date Range")
ReportList.Items.Add("Test1Totals by name and Date Range")
ElseIf Databaselist.SelectedValue = "Test2" Then
ReportList.Items.Clear()
ReportList.Items.Add("Test2Totals by Date Range")
ReportList.Items.Add("Test2 Totals by name and Date Range")
End If
End Sub