Can ASP.NET themes be used per user session ? Ex : For one user,User theme called “Green” and for another user Use the theme called “Red”. Or themes are for the enire web app ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Themes are defined for entire web application but usage of theme is defined per request. You can set theme used for current request in PreInit event handler of the Page instance. If you want to allow users to switch theme you should use Profile instead of Session because profile is persisted so the user will have the same theme next time he visits the site.