Our ad department pumps out Html code that they constantly change (and totally manage themselves). They have no knowledge of JavaScript, let alone C# etc. beyond a purely designer's point of view. Anything in their realm will be purely HTML and CSS (just like InDesign is to PostScript printing). All of this is really as it should be (truly separated concerns).
So, within MS MVC views, it looks like the norm is to lace html with C# code using <%= %>. Of course, if I do this, it will be removed next update. With JavaScript, we simply locate what we need with JQuery then add the appropriate code.
One very important thought as Phil Haack noted somewhere in his blog (forgive me if I state this incorrectly) is to include what data you need on the first visit within the first visit's html. (Again I apologize if I state this incorrectly) this is because heavy traffic websites cause a delay when loading the data separately which is not desirable.
So is there a way to pseudo separate your html markup from the C# code on the server rather than load data separately with JQuery client side? I can have them break up the HTML as necessary, like we do with partial pages. I can even have them add placeholders with HTML tags as necessary since this is more XML than programming, e.g.,
<productName>
Apple </productName>
Any ideas?