DataBinding with Repeaters, etc.

Posted Friday, January 14, 2005 9:38 AM by C-Dog's .NET Tip of the Day
How many times have you typed something like <%# DataBinder.Eval(Container.DataItem, "VehicleType") %>?  Some of you may have already read this, but now you can replace the above with <%# Eval("VehicleType") %>.  This may not be terribly exciting, but it should make your lives easier when trying to remember syntax. 
 
As a side note, the Visual Studio 2005 IDE now has improved Intellisense inside the markup window, so these kinds of methods will actually show up.

Read the complete post at http://www.dotnettipoftheday.com/blog.aspx?id=198