I am binding a listview control using linqdatasource. Listview contains two cascading dropdown controls. Category and sub category. The "sub category" dropdown can be optional as some categories do not have subcategories. So when inserting record that does not have a subcategory the subcategory is set to zero in the database.
How can I check when binding the subcategory dropdown if it is zero then either set a default option or disable the second dropdown.
It is being bound to the data source like this
SelectedValue='<%# Bind("itemSubCategory") %>'