Last post Sep 27, 2010 10:27 PM by SGWellens
Sep 26, 2010 05:00 PM|mhouldsworth|LINK
I'm trying to capture in my vb code behind the value of a dropdown list on a page load and I'm getting the following error:
Object reference not set to an instance of an object.
Here's my code
facName = DropDownList5.SelectedItem.Text
Fails on trying to retrieve facName
Thanks in advance for your help.
Sep 26, 2010 08:43 PM|SGWellens|LINK
Probably there is no SelectedItem.
Sep 27, 2010 09:31 PM|mhouldsworth|LINK
Ok, so then next question. I do have a dropdown list on the page that shows up with data if I don't have this PageLoad Sub.
How do I capture the value that shows up in this dropdown in the vb.net code behind?
Thanks alot for reviewing.
Sep 27, 2010 10:27 PM|SGWellens|LINK
If you have a new question, please start a new thread.