Saturday, September 12, 2009

Asp .Net Themes and Skins

Asp .Net Themes can be used for getting a consistent look and feel for Asp .Net Controls.

Add a skin file the existing project by selecting Skin from the Add New Item Dialog.



By default themes are added to Asp .Net folder called App_Thmes.



Inside a skin file you can specify the way in which Asp .Net control should render by specifying the properties as attributes to Asp .Net Control tags.



For applying a theme to web page go to document's Theme property and select the theme which you have defined.



Since I have specified properties for TextBox and Label the TextBoxes and Labels will inherit those properties.

No comments:

Post a Comment