Thread: aspx pages
View Single Post
  #9 (permalink)  
Old 09-29-2005, 03:40 PM
DMC_34 DMC_34 is offline
WebProWorld Veteran
 
Join Date: Jan 2005
Location: Texas
Posts: 991
DMC_34 RepRank 0
Default

I would offer this advice:

1. Disable page viewstate when unnecessary.
2. Do not include runat server forms when postbacks or binding are not necessary. If they are put the forms as low as possible on the page.
3. Stay away from .net webcontrols and opt for runat server html controls instead.
4. I know this goes against the grain but dont use labels. Especially labels with control formatting. The rendered code looks like crap with a slew of span tag etc. Use css and I prefer to use render blocks on pages I really want indexed well. For example The Christmas Gift Baskets page in my sig is actually a dynamic page using a datagrid but the code is pretty much clean for a .Net page. Every catalog page on my site may look static but they are not. From the products and marketing text the logo text it is all dynamic. Each page is named differently but inherits from the same class.

DMC
__________________
Quality Christmas Gift Baskets for the holiday at TGBP.
Reply With Quote