how to handle null values

Discussion in 'ASP .Net' started by psycho, Oct 17, 2006.

  1. psycho

    psycho Guest

    how should i hanle null values returned by the datareader
    i am using OleDbDataReader for accessing access database.
     
    psycho, Oct 17, 2006
    #1
    1. Advertising

  2. Typically you would first check if the value is null with IsDbNull method.
    If it is not, you can get the value with one of the GetXxx methods

    --
    Eliyahu Goldin,
    Software Developer & Consultant
    Microsoft MVP [ASP.NET]


    "psycho" <> wrote in message
    news:...
    > how should i hanle null values returned by the datareader
    > i am using OleDbDataReader for accessing access database.
    >
     
    Eliyahu Goldin, Oct 17, 2006
    #2
    1. Advertising

  3. use IsDBNull.value
    Patrick

    "psycho" <> wrote in message
    news:...
    > how should i hanle null values returned by the datareader
    > i am using OleDbDataReader for accessing access database.
    >
     
    Patrick.O.Ige, Oct 17, 2006
    #3
  4. Karl Seguin [MVP], Oct 17, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dietrich
    Replies:
    1
    Views:
    649
    Joe Smith
    Jul 22, 2004
  2. =?Utf-8?B?ZWRkeSBkZSBib2Vy?=

    How to handle null values in DataBinder.Eval()

    =?Utf-8?B?ZWRkeSBkZSBib2Vy?=, Oct 23, 2005, in forum: ASP .Net
    Replies:
    12
    Views:
    22,788
    adamsolomon
    Oct 23, 2009
  3. Replies:
    5
    Views:
    26,706
    Mike Schilling
    Mar 29, 2006
  4. Leon
    Replies:
    2
    Views:
    536
  5. =?ISO-8859-1?Q?KLEIN_St=E9phane?=
    Replies:
    3
    Views:
    454
    hanumizzle
    Oct 6, 2006
Loading...

Share This Page