L
luqman
How can I check if dv recordcount isNull ?
Best Regards,
Luqman
Function showRecords(byVal ItemID as Int16) as String
Dim SqlArg as New DataSourceSelectArguments
Dim dv As New System.Data.DataView
dv=sqlDatasource.Select(SqlArg)
If dv.Item(0).Rows.Count.Equals(System.DBNull.Value) then Exit Function
Dim drRow asSystem.Data.DataRow=dv.Item(0).Row <---- Null Exception Error
in this Line
if drRow(0)>0 then
showRecords="yes"
End If
End Function
Best Regards,
Luqman
Function showRecords(byVal ItemID as Int16) as String
Dim SqlArg as New DataSourceSelectArguments
Dim dv As New System.Data.DataView
dv=sqlDatasource.Select(SqlArg)
If dv.Item(0).Rows.Count.Equals(System.DBNull.Value) then Exit Function
Dim drRow asSystem.Data.DataRow=dv.Item(0).Row <---- Null Exception Error
in this Line
if drRow(0)>0 then
showRecords="yes"
End If
End Function