I am trying to add an attribute to allow for some client side scripting ability to be executed on a server side control. Here is what I have in page_load.

Code:
this.lbEmailDis.Attributes.Add("onDblclick", "getDescrip(" + lbEmailDis.SelectedItem.Value + ");");
getDescrip is a javascript function. it bombs on lbEmailDis.SelectedItem.Value. The error is: Object reference not set to an instance of an object.