having null reference exception. its a update code i am passing values from combobox to a local variable and then pass it into method.
pro_business sb = new pro_business(); //business layer class
string name = up_name.Text;
sb.Ppro_name = name;
string type= type_combobox.SelectedItem.ToString(); //Having problem here!!)
string unit = unit_combobox.SelectedItem.ToString(); //Having problem here!!)
sb.Ppro_unit = unit;
string message1 = sb.UpdateProductDetails(name, type, unit);