forum

Home / DeveloperSection / Forums / system nullreferenceexception dropdownlist

system nullreferenceexception dropdownlist

Anonymous User 2318 22-Jan-2014
function abc(){
     string Code = (combobox.SelectedItem.Value != null) ? combobox.SelectedItem.Value.ToString() : string.Empty;
     (save function ....)
}

Anyone knows how to I can proceed with save function if the combobox is null value and it pop up error system null reference exception?


c# c# 
Updated on 23-Jan-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By