When the page is refreshed I want to check the dropdownlist value, then set some panels as visible or not depending on the dropdownlist value... Sometimes when I refresh the page in firefox the dropdownlist value is completely random... It seems so simple but it just doesn't seem to work what ever I have tried :(
the dropdownlist contains 5 values which are: "", "Incident Date", "Client Reference", "Surname" & "Registration Number" + its ID is "Criteriaddl"
Below is the code im using on page load... it just results in no panels showing, even though the dropdownlist might have a value :(... I use the exact same code on the Criteriaddl_SelectedIndexChanged which works fine
If Criteriaddl.SelectedItem.Text = "Incident Date" Then
IncidentDatePanel.Visible = True
ClientRefPanel.Visible = False
&n ...
Go to the complete details ...