Click here to Skip to main content
15,920,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can skins remove the local html designs if not how to remove it through vb.net code
Posted
Comments
Deviprasad Das 16-Jan-14 2:34am    
Can you be more specific?
JoCodes 16-Jan-14 4:38am    
Not Clear...
Member 10476757 22-Jan-14 4:26am    
suppose iam already having css class(which is written in style tag of that particular page) for button control and appended it, now from c# code if i apply skin theme to button will css or skin theme(stored in app_themes) executes?

1 solution

MSDN says

To Start with

Quote:
Themes are made up of a set of elements: skins, cascading style sheets (CSS), images, and other resources. At a minimum, a theme will contain skins


The below will override the individual styles

Quote:
If you set a page's Theme property, control settings in the theme and the page are merged to form the final settings for the control.If a control setting is defined in both the control and the theme, the control settings from the theme override any page settings on the control. This strategy enables the theme to create a consistent look across pages, even if controls on the pages already have individual property settings. For example, it allows you to apply a theme to a page you created in an earlier version of ASP.NET.


The below way it wont override

Quote:
Alternatively, you can apply a theme as a style sheet theme by setting the page's StyleSheetTheme property. In this case, local page settings take precedence over those defined in the theme when the setting is defined in both places. This is the model used by cascading style sheets. You might apply a theme as a style sheet theme if you want to be able to set the properties of individual controls on the page while still applying a theme for an overall look.


How to use Theme property

http://msdn.microsoft.com/en-us/library/tx35bd89(v=vs.85).aspx[^]

Hope this helps to clear your doubt.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900