branching based on a datagrid/datalist DataBinder?

B

BH

Is there a way to display different message based on the value of a
particualr column bound to a datagrid or datalist. For example, I have the
following column from the bound DataTable:

<%# DataBinder.Eval(Container.DataItem, "hasValue") %>

"hasValue" takes the true or false value. What I would like to display to
the user is if the value is true, display a hardcoded hyperlink, otherwise
leave the datagrid column (or datalist item) empty. Is there a way to do
this in the aspx or the code behind class?

Thanks a lot
Bob
 

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,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top