if(drNameShow["Time"] != System.DBNull.Value) { string mystring4= drNameShow["Time"].ToString(); } else { string mystring4 = "NULL"; }