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.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Mar 18, 2012, 9:10 PM EDT
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.
I suggest you to go through these urls:
http://msdn.microsoft.com/en-us/library/0yy5hxdk(v=vs.80).aspx
http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 19, 2012, 12:04 AM EDT
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.