186 Points
470 Posts
a few seconds ago|LINK
in a search page in my asp.net+vb web page. iam using a code as under but when the field is balnk it gives error.
statustxt.Text = dt.Tables("PERS").Rows(0).Item("OutDetails")
Then i tried this code also
If dt.Tables("PERS").Rows(0).Item("Courser") Is System.DBNull.Value <> True Then statustxt.Text = dt.Tables("PERS").Rows(0).Item("OutDetails") Else statustxt.Text = "" End If
but it also gives error as
Hi Baijuep,
Please be care full you are checking for "Courser" field and accessing value of "OutDetails" field, checking and access should be of same variable.
Thanks and Regards,
Rk_Hirpara
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.