DataList control

P

Paul

I don't understand how to test values inside a datalist control.

Example, where you're writing the value
<%# DataBinder.Eval(Container.DataItem, "AdminLevel") %>

Ideally, I'd like to alter output based on value this, i.e.
AdminLevel = 0 show this
AdminLevel = 1 show this

Does anyone have any ideas about how this can be acheived?

Thanks for your time,

Paul
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top