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. Advertisements

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. Ruslan
    Replies:
    3
    Views:
    1,284
    Ruslan
    Jan 13, 2004
  2. Neo Chou
    Replies:
    1
    Views:
    924
  3. Binny

    SqlDataReader and Return Value

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

    DataBind and SqlDataReader

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

    SqlDataReader and 3-tier

    TomislaW, Nov 18, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    970
    Bliss
    Nov 19, 2004
  6. Kurt Krueckeberg
    Replies:
    2
    Views:
    834
    =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?=
    Nov 17, 2004
  7. =?Utf-8?B?RG91ZyBTYWxvbW9u?=

    objectdatasource sqldatareader and conection pooling

    =?Utf-8?B?RG91ZyBTYWxvbW9u?=, Nov 10, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    981
    heinz
    Nov 14, 2006
  8. Ben

    Strings, Strings and Damned Strings

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