Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: RE: Dealing with bit datatype..


Message #1 by "Mitesh" <mitesh_bilimoria@y...> on Mon, 8 Jul 2002 20:06:10
Use Convert.ToByte(dr["Name"].ToString());
This will return you byte
Mitesh

> Miss Ruby,

	Have you tried to use the bool datatype?

Minh.

-----Original Message-----
From: miss ruby [mailto:unix_box@y...] 
Sent: Wednesday, May 29, 2002 7:44 PM
To: aspx_beginners
Subject: [aspx_beginners] Dealing with bit datatype..


hello guys...


1'm using SQL 2000 Server database.. And we always do
like this to retrieve data..



string myName=dr["Name"].ToString();
int myID=(int)dr["UserID"];


What about bit datatype???? how can i do???



thanks..



=====
miss ruby
malaysia

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



  Return to Index