Author: saedh | Posted on: 12/12/2008 4:42:53 AM | Views : 345


 I reckon that such issue have been addressed before, but I think I'm a bit lazy to search for. Anyway, my major concern is performance, in particular, with PostBacks. So, two questions:


 


1) What is the common practice when setting asp Controls and their properties: declaratively or programmatically? Consider following example:


OPTION1: Declaratively

Menu.aspx
<asp:Menu
id="myMenu"
runat="server"
Orientation="Vertical"
StaticMenuItemStyle-CssClass="aspMenuItem_Normal"
StaticSelectedStyle-Css ...

Go to the complete details ...