我使用此代码来改变应用主题主题不设置
protected void Page_PreInit(object sender, EventArgs e)
{
MasterPage m = Master;
string theme = Session["theme"].ToString();
Page.Theme = theme;
}
的主题,那就是在会议的主题是水族,但主题越来越复位使用到standard.I'm用的DevExpress的DevExpress的主题控制
而且这是设置为主题的好办法,是有办法ü可以广泛设置你的主题程序由
页面做页面
如果我想改变它,只是用上面的代码来做? – 2012-07-06 11:02:59
检查您的页面是否有AutoEventWireUp = true。 如果您想在后面的代码中设置主题,请将其设置在gobal.asax中。 – Narendra 2012-07-06 11:31:18
即使主题是在web.config中声明的,也可以在页面指令中重写。 – Narendra 2012-07-06 11:37:18