Last post Jan 08, 2008 08:40 PM by Nai-Dong Jin - MSFT
Jan 03, 2008 01:13 PM|rfurdzik|LINK
I would like to develop something allowing user to select from predefined themes or create his own based on his settings (font, background color). The theme could be stored to the database allowing other users to use it later. Is there any example how to
do this? Does any of the starter kits have this build in we could use?
I did find this:
But looking for more comprehensive, ready to use solution with the existing Web application.
Jan 03, 2008 02:58 PM|DisturbedBuddha|LINK
Jan 03, 2008 03:13 PM|rfurdzik|LINK
HI, I know about asp.net themes already. What I asked is different. I use themes on my main site mysiste.com already.
Now I want the user to be able to select his own prefernces like: background, font etc... Now I want to save his preferences and show his website username.mysite.com using his prefernces.
Using ASp.Net themes makes the global predefined settings for the whole site. What I am talking about is something user can choose and customize on his own. Please check the link I gave before.
Jan 07, 2008 09:38 PM|Nai-Dong Jin - MSFT|LINK
From your description, you want to enable your user to change the theme of your website, right?
Based on my knowledge, different themes can be created by different css files. And in each css file, you can specify different backgrounds,font size,colors, and even images.
All these css files can be stored in each Theme folder in App_Theme directory, which stands for each pre-defined theme.
And then, in your code behind, you can use Paeg.StyleSheetTheme property to assign the specific theme which the current user likes. As for codes, I do suggest you to refer some materials on Theme and CSS styles
Jan 08, 2008 05:31 AM|rfurdzik|LINK
I do not want the user to choose predefined. He will be creating his style of the page... It is different than choosing predefined theme...
Jan 08, 2008 08:40 PM|Nai-Dong Jin - MSFT|LINK
1. I suggest that you should use Profile mechanism in ASP.NET to achieve that.
2. Another way is create the UI for users to modify the backgrounds, font colors and etc, and create the css files dynmaically which belongs to the specific user.