I have a page where this dropdownlist is hidden ddlDepartamento
but elsewhere in the code asks for this combo as follows
If ddlDepartamento.SelectedItem.Value.Equals("%") Then
therefore I have this error:
Object reference not set to an instance of an object.
as I can ask for a dropdownlist that is not visible in the html