In my last post I mentioned the use of C style casting when databinding in ASP.NET. That got me thinking about the performance differences between the two main ways to bind data in controls with custom templates (GridView, DataList, Repeater, etc). In my example I'm using a DataList and by default...
I've run into a couple of situations where I need more than simple databinding in ASP.NET. Sometimes I need some to bind a thing conditionally . Ok, so let's say you have a collection of addresses that you want to bind to a DataList. The markup might look something like this: < asp : DataList...