Tuesday, August 6, 2013

how to Check IsDBNUll when assigning a value from dataset or data table

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"))

No comments:

Post a Comment