Hi folks, i have a number of pages which will all have two div sections which have the CSS code toggled in the oode-behind thus:
DivCalcStatus.Attributes["class"] = "redTextResults";
divPhysical.Attributes["class"] = "leftTextResults";
Now this is replicated through about 30 similar pages so i wanted to pull this code out and have it in one centralised location and pass in a generic object which i know will have those properties which in my VB6 days would be easy...
public void styleResults(Object thisPage)
{
thisPage.DivCalcStatus.Attributes["class"] = "redTextResults";
thisPage.divPhysical.Attributes["class"] = "leftTextResults";
}
However, this does not work in .NET so how do you do the equivalent?
Go to the complete details ...