Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display from datalist

Status
Not open for further replies.

rac55

Programmer
Jul 1, 2003
62
AU
I have a datalist with the following items:

a.
b.
c.

I need to be able to pull b in an if statement. What property can I set to make
that happen? I have been trying datalistname.items.value but this isn't allowed in a datalistitemcollection.

any ideas?

Thanks
 
Thanks but that doesn't seem to work...it keeps returning System.Web.UI.WebControls.DataListItem.

All I really wnat to do is compare an item in the datalist to another item

thanks
 
well currently trying to using an if statement;

<% If (#DataBinder.Eval(Container.DataItem, "SupervisorID" = "13876") Then %>

it doesn't like the databinder so tried dataitemname.items etc

any help would really be appreciated

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top