N
newsgroups.jd
I have a chain of drop down lists that populate based on the selection
from the previous drop down list. The 3rd and 4th drop down list, plus
a calendar - I would only like visible if certain choices are made in
the first and second drop down list.
I did using with similar to ....
Public Sub _OnSelectedIndexChanged1(ByVal Sender As Object, ByVal e As
EventArgs)
If DropDownList1.SelectedValue = "Choose a Report Category"
Then
DropDownList2.Visible = False
DropDownList3.Visible = False
masterCalendar.Visible = False
Else : DropDownList2.Visible = True
End If
End Sub
Public Sub _OnSelectedIndexChanged2(ByVal Sender As Object, ByVal e As
EventArgs)
If DropDownList2.SelectedValue = "Daily Reports" Then
masterCalendar.Visible = True
Else : masterCalendar.Visible = False
End If
End Sub
The questions I have is this.
1. Is this the best way to accomplish this?
2. How does changing the visibility properties affect multiple users,
using the site at the same time?
Thanks ahead of time... new to asp.net.
JD
from the previous drop down list. The 3rd and 4th drop down list, plus
a calendar - I would only like visible if certain choices are made in
the first and second drop down list.
I did using with similar to ....
Public Sub _OnSelectedIndexChanged1(ByVal Sender As Object, ByVal e As
EventArgs)
If DropDownList1.SelectedValue = "Choose a Report Category"
Then
DropDownList2.Visible = False
DropDownList3.Visible = False
masterCalendar.Visible = False
Else : DropDownList2.Visible = True
End If
End Sub
Public Sub _OnSelectedIndexChanged2(ByVal Sender As Object, ByVal e As
EventArgs)
If DropDownList2.SelectedValue = "Daily Reports" Then
masterCalendar.Visible = True
Else : masterCalendar.Visible = False
End If
End Sub
The questions I have is this.
1. Is this the best way to accomplish this?
2. How does changing the visibility properties affect multiple users,
using the site at the same time?
Thanks ahead of time... new to asp.net.
JD