DataList control

Discussion in 'ASP .Net' started by Paul, Jul 1, 2003.

  1. Paul

    Paul Guest

    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, Jul 1, 2003
    1. Advertisements

    1. Advertisements

  2. Paul

    Paul Guest

    Paul, Jul 1, 2003
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.