To check for IsDBNUll when assigning a value from dataset or data table
lbl.Text = IIf(IsDBNull(dsAgent.Tables(0).Rows(0)("Name")), "", dsAgent.Tables(0).Rows(0)("Name"))
lbl.Text = IIf(IsDBNull(dsAgent.Tables(0).Rows(0)("Name")), "", dsAgent.Tables(0).Rows(0)("Name"))
No comments:
Post a Comment