only My site

Wednesday, July 23, 2008

DataRow Null check

DataRow Null checking before cast to the corresponding datatype.

alertRules.Condition = dr.IsNull("Condition") ? "" : dr["Condition"].ToString();

No comments: