SqlDataReader and strings

Discussion in 'ASP .Net Web Controls' started by anied, Oct 28, 2004.

  1. anied

    anied Guest

    I'm using a SqlDataReader to get data. I have a 2 byte char field that has a
    default value of ''. When I retrieve the data in ASP.NET, I end up with a
    string that has one blank space, even when the field is empty in the
    database. I've tried retrieving both as a string and as a SqlString, with
    the same results.
    anied, Oct 28, 2004
    #1
    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. Neo Chou
    Replies:
    1
    Views:
    774
  2. Binny

    SqlDataReader and Return Value

    Binny, Dec 14, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    7,380
    Binny
    Dec 15, 2003
  3. Gawel

    DataBind and SqlDataReader

    Gawel, May 21, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    382
    Gawel
    May 22, 2004
  4. TomislaW

    SqlDataReader and 3-tier

    TomislaW, Nov 18, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    848
    Bliss
    Nov 19, 2004
  5. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    757
    Malcolm
    Jun 24, 2006
Loading...

Share This Page