This is a migrated thread and some comments may be shown as answers.

Second time

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohamed
Top achievements
Rank 1
Mohamed asked on 22 Mar 2008, 04:55 PM
Hi all
i want to build a professionally web site to be international and i bought this library with full items  
Q1- which library that i use  
Rad Controls 'Prometheus' or Rad Controls for ASP.NET 
more information I'm use vs2008 with AJAX supported

Q2- if you recommended the 
Rad Controls 'Prometheus'  for developing how can apply theme in master page and make it dynamically depends on user select

Please advice me to make decision
 

1 Answer, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 23 Mar 2008, 09:38 PM
Hi Mohamed,

I would highly recommend using Prometheus if you're just starting the project - at this point you would need to have a very specific reason to use the classic versions.  There are thousands of reasons to go with Prometheus given the choice between the two.

In regard to setting the theme dynamically, that isn't really related to Telerik as it is a Microsoft ASP.NET framework feature.  What you are trying to do can be easily done, however, in the Page_Init code for your aspx page - a Master page doesn't have a Page_Init method.  It's easy to do:

Page.Theme = "Default" or Page.Theme = "YourThemeName"

I would suggest storing the user's preferred theme in the Profile for that person.  For an example of this check out www.mycal.ca and create an account so you can see the theme selection in action.  This application stores the name of the user's theme in the profile, so in the Page_Init the code looks like this:

Page.Theme = Profile.Theme

There is a RadComboBox in the bottom right of the page with all the Theme options, so the Page_Init also sets the currently selected Theme at the same time:

rcbTheme.SelectedValue = Profile.Theme

The RadComboBox has a SelectedIndexChanged event that fires when the user selects a different theme, and the reloads the current page, which can be done like so:

Profile.Theme = rcbTheme.SelectedValue
Profile.Save
Response.Redirect(Request.Url.ToString)

Hope that helps,

Shaun.
Tags
General Discussions
Asked by
Mohamed
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
Share this question
or