Author: cogzill | Posted on: 3/5/2010 12:14:27 PM | Views : 551

Hi,
I have a page with some bound DropDownLists (DDLs) for a Call Logging system.  The Calls are categorised on three levels for example:
Call: 3069, Category 1: Incident, Category 2: Microsoft Application, Category 3: Word
...would be used to organise calls for problems with Microsoft Word.


On testing the system, I noticed that there was no handling for opening a call if the category had been deleted - say for reorganisation/systems no longer supported whatever.  So I set about trying to make the program behave in the following manner:
Check category ID exists in DDL before bindingIt doesn't: set the displayed text of the DDL to Category Name + "(Deleted)"Disable the control to prevent user changingMove on to next control
Seemed simple enough, however no matter which way I try and do it I always get the messase

ddl_Cat1 has a SelectedValue which is invali ...

Go to the complete details ...