Assign default value to a object is when assign default value to object is when dbnull type value is incoming
//this help you to assign default value to object is when giv en dbnull type objPackingSlip.sent_To = (dr["sent_To"]!=DBNull.Value)? Convert.ToInt32(dr["sent_To"]):0;
No comments:
Post a Comment