我想在一页中使用两个主题..根据用户 [英] i want to use two themes in one page..according to user
本文介绍了我想在一页中使用两个主题..根据用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在两个不同的主题之间切换...在页面中如何执行...
i want to switch bethween two different theme...in a page how to do that...
推荐答案
在母版页代码背后使用此代码
Use this code in masterpage codebehind
protected void Page_Init(object sender, EventArgs e)
{
if (User="Balaji")
{
this.Page.Theme = "MyNewTheme";
}
}
这篇关于我想在一页中使用两个主题..根据用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文