I would like to change a Theme in an ASP.NET web application, depending on the login credentials. So, if user1 logs in, then the Theme will automatically be set to say User1Theme. And if user2 logs in, then the theme will automatically be set to User2Theme. Otherwise, I would like the theme to be set to DefaultTheme.
Any help would be greatly appreciated . . .
follow the step you will get the answer:
You can see here how to achieve this
You may have to define PreInit
protected void Page_PreInit(object sender, EventArgs e)
Page.Theme = "BlueTheme";
Page.Theme = "PinkTheme";
Can you tell me if I want to apply the theme to Master Page then what to do?