|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
change web.config programmaticallyhi,
i already created an app_theme folder in the project and configured the pagesection of we.config to assign my desired theme. but my problem is how can i change the value of styleSheetTheme in the pagesection of web.config everytime the user select a theme from the dropdown control in a page so that it applies to the whole project not just in a one page. hope you can help me. thank you! It sounds like to me that you want to dynamically change the Theme for the
user? If this is what you want to do, check out the Page_PreInit event -- this event is for dynamically assigning the Theme for the Page being requested. So you can allow the user to choose their Theme preference and store that in a database or in the Profile, and the load it in Page_PreInit. -Brock http://staff.develop.com/ballen Show quoteHide quote > hi, i already created an app_theme folder in the project and > configured the pagesection of we.config to assign my desired theme. > but my problem is how can i change the value of styleSheetTheme in the > pagesection of web.config everytime the user select a theme from the > dropdown control in a page so that it applies to the whole project not > just in a one page. hope you can help me. thank you! > thank you so much for the immediate reply.
Show quoteHide quote "Brock Allen" wrote: > It sounds like to me that you want to dynamically change the Theme for the > user? If this is what you want to do, check out the Page_PreInit event -- > this event is for dynamically assigning the Theme for the Page being requested. > So you can allow the user to choose their Theme preference and store that > in a database or in the Profile, and the load it in Page_PreInit. > > -Brock > http://staff.develop.com/ballen > > > > hi, i already created an app_theme folder in the project and > > configured the pagesection of we.config to assign my desired theme. > > but my problem is how can i change the value of styleSheetTheme in the > > pagesection of web.config everytime the user select a theme from the > > dropdown control in a page so that it applies to the whole project not > > just in a one page. hope you can help me. thank you! > > > > > i test the project using your suggestion but it doen't work. i first add the
script in the global.asax and add the pageevent.cs and the ddl and then run. but i encountered an error that says, " the type or namespace name 'PageEventArgs' could not be foune". hope we can fix it. thank you Show quoteHide quote "Brock Allen" wrote: > It sounds like to me that you want to dynamically change the Theme for the > user? If this is what you want to do, check out the Page_PreInit event -- > this event is for dynamically assigning the Theme for the Page being requested. > So you can allow the user to choose their Theme preference and store that > in a database or in the Profile, and the load it in Page_PreInit. > > -Brock > http://staff.develop.com/ballen > > > > hi, i already created an app_theme folder in the project and > > configured the pagesection of we.config to assign my desired theme. > > but my problem is how can i change the value of styleSheetTheme in the > > pagesection of web.config everytime the user select a theme from the > > dropdown control in a page so that it applies to the whole project not > > just in a one page. hope you can help me. thank you! > > > > > i fixed the error. but i have a configuration errr in the httmodules section
in the web.config. in addition, do you s sample code where can i change the value of the theme that i assign in the global asax? thank you. Show quoteHide quote "arlene" wrote: > i test the project using your suggestion but it doen't work. i first add the > script in the global.asax and add the pageevent.cs and the ddl and then run. > but i encountered an error that says, " the type or namespace name > 'PageEventArgs' could not be foune". hope we can fix it. thank you > > "Brock Allen" wrote: > > > It sounds like to me that you want to dynamically change the Theme for the > > user? If this is what you want to do, check out the Page_PreInit event -- > > this event is for dynamically assigning the Theme for the Page being requested. > > So you can allow the user to choose their Theme preference and store that > > in a database or in the Profile, and the load it in Page_PreInit. > > > > -Brock > > http://staff.develop.com/ballen > > > > > > > hi, i already created an app_theme folder in the project and > > > configured the pagesection of we.config to assign my desired theme. > > > but my problem is how can i change the value of styleSheetTheme in the > > > pagesection of web.config everytime the user select a theme from the > > > dropdown control in a page so that it applies to the whole project not > > > just in a one page. hope you can help me. thank you! > > > > > > > > >
DropDownList problem
DropDownList - Is it Possible to get the TextField Contents Gridview and Filtering problem Need to keep source window open after Hyperlink is activated Hyperlink control NavigationUrl problem Postback problem with usercontrol in usercontrol Threading in ASP.NET 2.0 web parts Gridview insert/update how to execute the DeleteCommand in code-behind? drop down list |
|||||||||||||||||||||||