Hi All,
How can i change the styles of page dynamically at run time , remember there is Master page. i have written this code but its not working
adding a ref link in master page
<link href="<%=GetStyleSheet()%>" rel="stylesheet" type="text/css"/>
there is a folder in which i have style sheets
in code behind i am calling this
protected void Page_Onload(object sender, EventArgs e)
{
tabEmpMaster p = new tabEmpMaster();
p.GetStyleSheet = "~/Styles/SoftGreyGridView.css";
}
GetStyleSheet is a property which i have set like this
public string GetStyleSheet
{
get
{
return mystyle;
}
set
{
mystyle = value;
}
}
any suggestion , Plz.
Thanks