Nested Repeaters - Jon Galloway

Nested Repeaters

Scott just posted a great article - Nested Repeaters Part 1. Great code samples and explanations of a topic that can be a bit confusing. I like the databinding syntax he's using, too:

You might have noticed that I use a databinding syntax which is a bit different to that used in most documentation, the DataBinder.Eval syntax - e.g., <%# DataBinder.Eval(Container.DataItem, "Price", "{0:c}") %> , instead I tend to use this syntax <%# string.Format("{0:c}",((DataRowView)Container.DataItem)["Price"])%> - I've covered my reasons for this in the past and well, I just prefer it...

The DataBinder.Eval syntax has always kind of bugged me, too, and Scott's previous post about this is pretty persuasive.

Published Sunday, March 21, 2004 2:40 PM by Jon Galloway
Filed under:

Comments

# re: Nested Repeaters

We absolutely love your blog and find the majority of your post's to be what precisely I'm looking for. Would you offer guest writers to write content for yourself? I wouldn't mind composing a post or elaborating on most of the subjects you write related to here. Again, awesome web site!

Thursday, November 01, 2012 9:54 PM by zzdzbiuqa@gmail.com

Leave a Comment

(required) 
(required) 
(optional)
(required)