May 2010 Entries

Binding with Container.DataItem

The other day at work I was binding a list of items to a DataList. Usually with the data bound controls such as a GridView you can either use the BoundField column or you can style your own columns using TemplateFields. In this case I had a user control inside of the item template of the DataList and needed to set a property on the control to the item being bound. Since I started out using Asp.Net 2.0 the syntax I use to bind to properties on objects is either the Eval or Bind tags. These tags are great when...

posted @ Thursday, May 20, 2010 10:49 PM | Feedback (0)