Working with DataBound Values in DataList Control

jimp

New Member
I'm trying to do a couple things with the data bound values in a DataList control and can't seem to figure them out. First I'm trying to divide a value by a static number. For example something like : <%# DataBinder.Eval(Container.DataItem, "hits_Traffic", "{0} / 1300") %>. Also how can I store these values from the Container.DataItem for use later in the ItemTemplate section? Like say I have an if...then statement testing the value to see if it is larger than a particular value to display another item in a drop down list. When I attempt to do this I get an error message saying Container is undefined. Any assistance that anyone can give would be appreciated.<BR><BR>Thanks<BR>-Mark
 
Back
Top