Bit field and ASP.NET

B

bmayer

There is a bit field in a sql server database. I am trying to pull a
single row of this bit field out.

I can get the database to tell the management console that yes the
field is indeed 1/0 or true/false. I am using a stored procedure for
that. I have also been able to get the VB.Net code to call this and
other stored procedures. That appears to be working OK.

I think that the problem comes in when I try to populate a gridview
using a SqlDataSource. What is returned is an empty string no matter
what the bit value is. The data only needs to go into a local Boolean
variable, but I am unsure about how to get the result of a stored
procedure directly into a Boolean.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top