setting Style property of a WebControl From Code Behind

JCuda

New Member
recently I found in one of my older projects (\[code\]asp.net 4.0\[/code\])that I've been using this codeto set \[code\]display\[/code\] Style-property To \[code\]none\[/code\]\[code\]DDL_ChosenEmpl.Attributes.Add("style", "display:none");\[/code\]lately I was using\[code\]DDL_ChosenEmpl.Style.Add("display", "none");\[/code\]i would like to know[*]in any case such as - property already exist whether it's with different value or not , will any of them should be avoided ?[*]what are the main differences between both methods ?
 
Back
Top