S
Stu
Hi,
I have a web form that uses simple binding to bind properties to the
controls on the page. However, if I try and bind a value to a dd list using:
SelectedValue="<%# MyProperty %>"
If the value doesn't exist it throws and error: Object reference not set to
an instance of an object.
Is there any way to test if a value exists in a DD list (preferably without
looping through each item individually)?
Thanks in advance,
Stu
I have a web form that uses simple binding to bind properties to the
controls on the page. However, if I try and bind a value to a dd list using:
SelectedValue="<%# MyProperty %>"
If the value doesn't exist it throws and error: Object reference not set to
an instance of an object.
Is there any way to test if a value exists in a DD list (preferably without
looping through each item individually)?
Thanks in advance,
Stu