@solution1
I’m not that familiar with .Net, only JSP and PHP. The main guidelines I have when developing for server-side scripting of the generated HTML:
1) complete the UI design before enhancing the HTML/CSS/JS with scriptlets
2) if you plan to populate a long list, then in the design reserve space for the list.
– Put the list on a panel, enable the panel’s Vertical Scrollbar and make the panel’s Content Area Height very large to hold the maximum anticipated size of list items.
3) when HTML code is generated I typically have to rename the file’s extension from .html to that of my scripting language, e.g., .php, .jsp… We are adding new property in upcoming release for user to specify file extension to generate.
4) avoid adding new html content in ad hoc manner. The HTML is designed to represent the UI layouts as close as possible. Much of the interesting layout and component sizing is in CSS. Thus, ad hoc HTML additions may not render as one might expect without fully understanding of the CSS.
These are the main practices I follow. I would be interested in the practices of others.