<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Recipe: Dynamic Site Layout and Style Personalization with ASP.NET  </title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx</link><description>Problem: You want to enable end-users visiting your web-site to dynamically customize the look and feel of it. Specifically, you want to enable them to choose different content layouts for the site, as well as different style experiences (colors, fonts</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>.NET: ASP.NET: Themes</title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#6708140</link><pubDate>Tue, 28 Oct 2008 11:50:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6708140</guid><dc:creator>.NET:ASP</dc:creator><author>.NET:ASP</author><description>&lt;p&gt;&amp;amp;lt;h4&amp;amp;gt;&amp;amp;lt;em&amp;amp;gt;&amp;amp;lt;strong&amp;amp;gt;Themes&amp;amp;lt;/strong&amp;amp;gt;&amp;amp;lt;/em&amp;amp;gt;&amp;amp;lt;/h4&amp;amp;gt; &amp;amp;lt;p&amp;amp;gt;&amp;amp;lt;em&amp;amp;gt;Themes in ASP.NET (since 2.0) are similar to cascading style sheets (CSS) in that both themes and styl ...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6708140" width="1" height="1"&gt;</description></item><item><title>Links</title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#6460591</link><pubDate>Wed, 30 Jul 2008 14:04:12 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6460591</guid><dc:creator>Syed Akbar Ali</dc:creator><author>Syed Akbar Ali</author><description>&lt;p&gt;Hi, Welcome to my my links page. Here I am keeping web links which i find useful for me and interesting&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6460591" width="1" height="1"&gt;</description></item><item><title>Dynamic Site Layout and Style Personalization with ASP.NET &amp;laquo; Talibkhan&amp;#8217;s Weblog</title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#6186447</link><pubDate>Tue, 13 May 2008 14:02:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6186447</guid><dc:creator>Dynamic Site Layout and Style Personalization with ASP.NET « Talibkhan’s Weblog</dc:creator><author>Dynamic Site Layout and Style Personalization with ASP.NET « Talibkhan’s Weblog</author><description>&lt;p&gt;Pingback from &amp;nbsp;Dynamic Site Layout and Style Personalization with ASP.NET &amp;amp;laquo; Talibkhan&amp;amp;#8217;s Weblog&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6186447" width="1" height="1"&gt;</description></item><item><title>ASP.NET 2.0 Dynamic Themes</title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#3608194</link><pubDate>Fri, 24 Aug 2007 19:40:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3608194</guid><dc:creator>brent's blog</dc:creator><author>brent's blog</author><description>&lt;p&gt;I have tried on several occasions to hook up dynamic themes to user accounts or session variables but&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3608194" width="1" height="1"&gt;</description></item><item><title>re: Recipe: Dynamic Site Layout and Style Personalization with ASP.NET  </title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#1611268</link><pubDate>Sat, 10 Feb 2007 12:41:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1611268</guid><dc:creator>Elsa</dc:creator><author>Elsa</author><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i have almost the same code u have above and i'd like to give the user more options, by allowing him to pick colors from a color palette(containing a huge number of colors). So what i need is to retrieve the value of the colors used in the .css from DB or XML file.&lt;/p&gt;
&lt;p&gt;Can u help?&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1611268" width="1" height="1"&gt;</description></item><item><title>re: Recipe: Dynamic Site Layout and Style Personalization with ASP.NET  </title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#1414925</link><pubDate>Mon, 15 Jan 2007 20:53:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1414925</guid><dc:creator>Thacker</dc:creator><author>Thacker</author><description>&lt;p&gt;Scott-&lt;/p&gt;
&lt;p&gt;Thanks for this tutorial.&lt;/p&gt;
&lt;p&gt;To you or anyone--&lt;/p&gt;
&lt;p&gt;When changing Themes, what is the best method for handling variance in styles for Internet Explorer?&lt;/p&gt;
&lt;p&gt;Currently reference a conditional comment within Master Pages to load IE style sheets. &amp;nbsp;However, when using dynamic style sheet or Theme selection, the loaded IE styles from the conditional comment interfere with the selected&lt;/p&gt;
&lt;p&gt;Theme. What are some viable alternatives for handling styles within Internet Explorer?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1414925" width="1" height="1"&gt;</description></item><item><title>re: Recipe: Dynamic Site Layout and Style Personalization with ASP.NET  </title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#1383121</link><pubDate>Wed, 10 Jan 2007 07:07:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1383121</guid><dc:creator>ScottGu</dc:creator><author>ScottGu</author><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;The redirect is necessary in cases where you are changing the theme -- since the theme can only be applied at the beginning of the request.&lt;/p&gt;
&lt;p&gt;What you could do is to change the Response.Redirect statement to instead be:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Response.Redirect(Request.RawUrl)&lt;/p&gt;
&lt;p&gt;This will redirect you to exact same page that the user is already on - in which case they shouldn't notice that a redirect happened.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1383121" width="1" height="1"&gt;</description></item><item><title>re: Recipe: Dynamic Site Layout and Style Personalization with ASP.NET  </title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#1376179</link><pubDate>Mon, 08 Jan 2007 08:41:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1376179</guid><dc:creator>James</dc:creator><author>James</author><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;I have same question as Jon&lt;/p&gt;
&lt;p&gt;Is there anyway to avoid Response.Redirect(&amp;quot;default.aspx&amp;quot;) statement?&lt;/p&gt;
&lt;p&gt;This always redirects the user to default.aspx page, instead I would like the theme to be applied on current page without redirecting to another page. I can achieve this by removing the response.redirect statement but I will have to press the button twice. &lt;/p&gt;
&lt;p&gt;Another solution will be redirecting &amp;nbsp;to master page(which contains the personalize theme options), if thats allowed. &lt;/p&gt;
&lt;p&gt;As you suggested I've tried using Request.Form inside Page_PreInit() on master page then applying the value by Page.Theme but the result is same. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1376179" width="1" height="1"&gt;</description></item><item><title>re: Recipe: Dynamic Site Layout and Style Personalization with ASP.NET  </title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#1351022</link><pubDate>Tue, 02 Jan 2007 15:08:54 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1351022</guid><dc:creator>ScottGu</dc:creator><author>ScottGu</author><description>&lt;p&gt;Hi todd,&lt;/p&gt;
&lt;p&gt;The default Profile Provider stores information as a blob, but you can use an alternative provider to store the properties as columns in a database. &amp;nbsp;This then allows you to query against them using regular SQL. &lt;/p&gt;
&lt;p&gt;Here are two profile providers you might want to check out that do this:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/scottgu/archive/2006/01/10/435038.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2006/01/10/435038.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/scottgu/archive/2006/10/13/Tip_2F00_Trick_3A00_-Source_2F00_Documentation-for-Simple-ASP.NET-2.0-SQL-Providers-Published.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2006/10/13/Tip_2F00_Trick_3A00_-Source_2F00_Documentation-for-Simple-ASP.NET-2.0-SQL-Providers-Published.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Darren also has a good book on web parts that you might want to check out here: &lt;a rel="nofollow" target="_new" href="http://www.amazon.com/gp/product/193239477X/varioussite07-20"&gt;http://www.amazon.com/gp/product/193239477X/varioussite07-20&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1351022" width="1" height="1"&gt;</description></item><item><title>re: Recipe: Dynamic Site Layout and Style Personalization with ASP.NET  </title><link>http://weblogs.asp.net/scottgu/archive/2006/07/22/Recipe_3A00_-Dynamic-Site-Layout-and-Style-Personalization-with-ASP.NET--.aspx#1343281</link><pubDate>Mon, 01 Jan 2007 02:59:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1343281</guid><dc:creator>todd</dc:creator><author>todd</author><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;Thanks for the feedback. Actually there will be a UI layer between the user and the actual theme (or css) so the user will be not be aware of the implimentation. I guess I wasn't clear on that, but the user will be setting properties on some web form and the app code will programmatically handle the modification and persistance of the theme or css.&lt;/p&gt;
&lt;p&gt;The idea of custom sql provider for the themes had crossed my mind. I was hoping one existed or that someone else had come across this problem and handled it a specific way.&lt;/p&gt;
&lt;p&gt;Since I'm mostly a enterprise server-side guy it's quite possible I'm already going down the garden path on how to manage the UI customization. I've looked at using web parts and it was overkill for what I wanted. Also the personalization provider persists all the presonalization info as a blob so I can't query the data for other application purposes. (For example, how many people are using the xyz property of the navi window?).&lt;/p&gt;
&lt;p&gt;well, thanks for the feedback scott, I appreciate it.&lt;/p&gt;
&lt;p&gt;Todd&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1343281" width="1" height="1"&gt;</description></item></channel></rss>