Themes
How to apply globally themes in asp.net application. i want to apply single themes to all my asp.net pages in the top of the my page.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 19, 2012, 4:04 AM
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in a Web application, across an entire Web application, or across all Web applications on a server.
Theme can be applied all two way which is describe by Senthilkumar
but you can also applied in page init event.
protected void Page_PreInit(object sender, EventArgs e)
{
// Applying theme to a particular page
Page.Theme = "myTheme";
}
please refer
http://www.dotnetfunda.com/articles/article402-working-with-themes-in-aspnet.aspx
is good article on Theme.
hope this help.
SenthilkumarPosted Mar 19, 2012, 1:10 AM
If you are looking for assign the single theme to all the asp.net pages then typically across application. Then you can set it in the web.config file.