I don’t know much about skins. I want to apply a common format for text boxes, labels or grid-view in my project.
Is it possible by applying a Skin to a project? Or there is any other way to apply same functionality with jquery.
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.
In the skin file, write the Skins for your controls.
ex.
Define the SkinID property – It allows you to apply the skin only on the needed controls later. If the skin should apply on all the controls in your project don’t define it.
In your
@Pagedirective there are two options to add the skin, depending on your design:Add
Theme="your_skin_name", if you want the defined skin in your *.skin file to override the already existing style that the controls have. For example if the control already has some css defined, with Theme=”your_skin_name” they won’t be taken into account anymore.Add
StylesheetTheme="your_skin_name"if you want to keep your already defined styles, and add from the skin only the ones that are missing.<asp:TextBox ID="TextBox1"runat="server"
SkinID="textbox_skin">
</asp:TextBox>
note: if you define the SkinID on a control skin in the *.skin file, than in the *.aspx you have to define it also, on the corresponding controls that the skin should apply to.