I'm writing a "simple" web app for web enabled phones. I'm using ObjectList to show a list of service orders, and need to allow certain commands to be fired on those. All is fine, more or less, with the layout and everything... but in the ItemCommand event the MobileListItem in the command argument does not have it's Value or Text property set. I can't find the Text or Value in the Items array of the ObjectList either. I've got no idea how to get the actual value...
The ObjectList is being bound in codebehind, but I don't see a place to set the DataTextField or DataValueField like I would in a normal ASP.NET page so I'm a little confused.
How do I get the value of a selected item?
EDIT: For now I've hooked into the ItemDataBind event and am manually setting the Text/Value fields using reflection (since it's a Linq anonymous type.) Seems like there should be a better way to do this though right?