Back to previous

DataBinder.Eval: 'System.Data.DataRow' does not contain a property

For some reason, DataBinder.Eval(Container.DataItem, "id") will not work in li tag within the item template of a repeater. I had to use this:

((System.Data.DataRow)Container.DataItem)["id"].ToString()

ShareThis

If you think this post is useful, please recommend me at the bottom of the page. ;)

Discussion