Last post Aug 18, 2011 08:47 AM by aspsak
Aug 22, 2007 01:49 PM|dilip12|LINK
I have created A.skin (skin file). In my code behind i am dynamically creating text boxs (say 10 text box).
Now i want to use my skin file in my code behind file.
what are the steps that i have do to refer my .skin file to C# code
Can you please let me know how to use from my C# code to refer method in the Skin file
Thanks in advance
Aug 22, 2007 02:02 PM|asfak.ur.rahman|LINK
It can be your solution.
Aug 22, 2007 02:15 PM|d4dennis@inspir3|LINK
It is really depend on your TextBox skin is global or id base?
Global TextBox Skin:
<asp:TextBox runat="server" style="background-color:#C0C0C0"></asp:TextBox>
This is apply to all textbox in your webpage, you do not need to do anything in code-behind as all TextBox will have same skin
SkinID TextBox Skin:
<asp:TextBox skinid="BoldText" runat="server" style="font-weight:bold"></asp:TextBox>
This will apply to the textbox where skinid is define, Code behind set skinID
Hope this is help!
Aug 22, 2007 02:29 PM|dilip12|LINK
my skin file is under root path as follows (App_Themes/SkinFile/SkinFile.skin). i wrote a code in my skinfile as
In my code behind i created text box as
There is not change of the back ground color to my text boxs
Please let me know do i have to refer any in my ASPX or C# in my directives @Page
Aug 22, 2007 11:28 PM|d4dennis@inspir3|LINK
Yes, You need to set your theme in Page Directive:
Theme = Set the name that corresponding to your theme name ( i.e. folder name )
Hope t helps!
Aug 11, 2011 06:50 AM|aspsak|LINK
I think this is not code behind!
any solution .........i need this kind of logic
Aug 18, 2011 08:47 AM|aspsak|LINK
I am waiting for reply of above question
please any one give answer
thanks in advance