Hi,
I have a button in master page with id "btnPage" with cssstyle "btnsmall" now when i load the contentpage say mycontentpage.aspx inherited from Masterpage.Master
I have to change the btnpage buttons cssstyle to "btnBig" how can i do this
Thanks in advance
How to change the csstyle of a Button in masterpage in contentpage
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dorababu MekaRank #457 · 5.5K reputationPosted Jul 16, 2011, 12:44 AM EDT
protected void Page_LoadComplete(object sender, EventArgs e)
{
button btn= this.Master.FindControl("btnPage");
btn.cssclass="YourrequiredStyle";
}
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 16, 2011, 1:09 AM EDT
if you are adding any masterpage to your web page..you shold define the css file link in master page like:
you can acces the styles from ur web page using CSSClass property......
hope it help you