Website->AddNewItem->SkinFile
Skin file will be added to the Project.Vs will automatically add that to App_Themes->SkinFiles->skin.skin.
To bring that skin file to our page go to Source view and add
<%@ Page Language="C#" Theme="SkinFile" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> where SkinFile is the name of the skin file you are adding.
Now Lets See the Structure of Skin File
The above Skin is for TextBox... note the Skinid="Browse" so that we can use that ID to get that Particular skin on Textbox
See the aspx page
Now you can see that that particular Skin is applied to text box. Like this can apply any number of Skins to all server controls. We can also write diff SkinId in the same Skin Files.
The Folder Structure is mentioned Below
Do we need explicitly set skin id of a control in aspx page? Mentioning <%@ Page Language="C#" Theme="SkinFile"..., automatically sets the skin id of controls... right?
ReplyDelete1 suggestion.. that marquee kill my eyes! Please remove it if possible..
ReplyDeleteok i will remove that...
ReplyDeletekoolllllllllll
Skin Id is mentioned in the Skin File.. check the Skin file
My qn. is, do we need to set skin id for individual textbox in an aspx page or just mentioning the skin file reference in the source automatically set skin ids of all textboxes?
ReplyDeleteya we need to mention Skin Id. if u want that skin for all text boxes remove skinID from skin file so that it will go to all Text Boxes
ReplyDeleteif u dontwant a particular text box in that case set property of that text box Applytheming="false"
ReplyDeleteok clear
ReplyDeleteThats it.. Thank You Sobin
ReplyDelete