I am using C# first, and developing database system with SQL Server. But when I lookup data from database into listview then some fields are of null value and it generated error code.
What function should i use to check null field from database in C#(2003)?
Thank for your reply.
Good luck!
____________________________
ly buntha
08-08-2006 at 01:14 AM
|
TJ_01 Level: VB Lord Registered: 24-08-2005 Posts: 320
Re: Check field Null from Database
Try this one:
try {
if (DS.Equals(System.DBNull.Value)) {
//Condition goes here;
}