Formating depending on DB value ?

G

Guest

Hi
I have an DataList item where i use DataBinder.Eval(Container.DataItem,
"sent") to fetch data and display it and it works fine.
But depending on wheter a value in the datatable that is the datasource to
the DataList is either "public" or "private" i would likte to add HTML to the
page in form of an extra cell in a table.

The problem is how to determin what the value in the DB is and then insert
the right HTML snippet ?

Maby its a simple solution but I havent figured it out YET.

Thanks in advace.../Johan
 

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

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top