G
googlegroups
Hi All.
I have a datalist which pulls back a list of categories from a
database. In the returned table are the CategoryID, the CategoryName
and the IsActive Field.
CategoryID is an integer, CategoryName is a VarChar(250) and IsActive
is bit.
When the data comes back and I try to display it on the webpage,
everything works but rows with an IsActive field set to 1 (true) are
displayed as "1", and IsActive fields set to 0 are displayed as "0"
(false)
I would like to know how to change this to "Active" if a 1 is returned
or "Draft" if 0 is returned.
Thanks in advance
I have a datalist which pulls back a list of categories from a
database. In the returned table are the CategoryID, the CategoryName
and the IsActive Field.
CategoryID is an integer, CategoryName is a VarChar(250) and IsActive
is bit.
When the data comes back and I try to display it on the webpage,
everything works but rows with an IsActive field set to 1 (true) are
displayed as "1", and IsActive fields set to 0 are displayed as "0"
(false)
I would like to know how to change this to "Active" if a 1 is returned
or "Draft" if 0 is returned.
Thanks in advance