i've been looking at coding in the typical brackets in the webpages (ie. <% %>) compared to using the code-behind method. Sometimes i get different results, using the exact same code.

Is there a difference in where you put it? I really like how the code-behind formats it for me, where in the HTML view, i have to format it... (perhaps i'm just lazy). Or am i just doing something incorrectly?