tags:

views:

23

answers:

2

Are there any differences between coding row-specific stuff inline within the repeater's template and doing so in the codebehind file in ItemDataBound?

EDIT: Re: differences - I think we're all agreed it makes for markup that's nasty to read/maintain :) I was thinking of performance benefits.

A: 

there are some things you just can't do inline, like binding an inner repeater.

y34h
I'm not sure thats entirely correct.
5arx
+2  A: 

I usually try to strike a balance between inline code and code-behind code. Any simple processing (1 liners), I put them in the ASPX page. Usually this consists of simple formatting stuff. Anything that requires logic goes in my code-behind.

md1337