I've been looking for blogs, documentation, patterns, and/or your comments
regarding how to design and use static methods of a "helper" class to change
properties of controls in the page, especially controls such as multiple
LinkButtons and Panels which may be located in a MasterPage or loaded into
the Master using a Content Page.
Noting I've tried public properties, FindControl and what not with no
results. Here's what I've got, I'm missing something fundamental when
thinging what is needed for an appropriate implementation. Please comment
and fill in the blanks...
// helper class signature
public class UIObjectPropert yManager // is inheritence needed here?
{ ... } //
System.Web.UI.P age?
// method implementation
public static void SetEnableProper tyFalse( string objective )
{
if(objective == "displayThemePa nel")
{
LinkButton1.Ena bled = false;
LinkButton2.Ena bled = false;
}
}
// method call
UIObjectPropert yManager.SetEna blePropertyFals e( displayThemePan el );
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://www.metromilwaukee.com/clintongallagher/