Apparently no item is selected, thus raising the NullRefernceException.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Chris Kettenbach" <> wrote in message
news:0oadnX_31aH6T87eRVn-...
> Good Morning All,
> How can i get a handle on this drop down list?
> public void myDropDown_OnDataBinding(object sender, EventArgs e)
> {
> DropDownList myDropDown = (DropDownList)sender;
> Debug.Write(myDropDown.SelectedItem.Value);
> }
>
> gives me an Exception Details: System.NullReferenceException: Object
> reference not set to an instance of an object.
>
>
> Any ideas?
>
> Thanks,
> Chris
>
>
>
>
>
>