borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Storetprocedure)Next Topic (Popup Menu in VS2005) New Topic New Poll Post Reply
AndreaVB Forum : C# : Check field Null from Database
Poster Message
lbuntha
Level: Scholar

Registered: 05-05-2006
Posts: 39

icon Check field Null from Database

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
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: Check field Null from Database

Try this one:

try {
if (DS.Equals(System.DBNull.Value)) {
//Condition goes here;
}




____________________________
Im JAMES  

08-03-2007 at 04:38 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : C# : Check field Null from Database
Previous Topic (Storetprocedure)Next Topic (Popup Menu in VS2005) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder