Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have bit column in the database and bind it with label it displayed true or false I want to be displayed as accepted or not accepted
thanks
Posted
Updated 17-Jan-10 21:45pm
v2

1 solution

How can I do is kind of a useless subject line choice.

You'd do this with code that sets the label text based on the state of the variable, perhaps using the conditional operator, something like <%= ((bool)Eval("myCol")) ? "Accepted" : "Not Accepted"; %>, assuming it's in a template definition for some sort of grid.

This is a pretty basic question, if you are working on something for a class ( there's no level on which I'd accept it as remotely reasonable that you're being paid to code ), then you should have a book to refer to, surely ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900