Answer:
A Global Theme is available to all the Web Sites on your Web Server.
For a File System based web site, follow these steps to create and implement a Global Theme
1)Create a Folder in this path
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\themes
example: create a SkinFile Folder below the themes folder.
2)Create a .skin file in the SkinFile folder.
save the file.
3)specify one skin in the .skin file
example:
<asp:TextBox runat="server" BackColor="LightBlue"/>
4)To attach the SkinFile Folder with a File System based web site:
a)Open a File System based web site:
b)Paste a web server control TextBox on the .aspx page
c)In the Page Directive, add this attribute :
Theme="SkinFile"
5)Run the .aspx page. The BackColor of TextBox will be LightBlue.
Asked In: Many Interviews |
Alert Moderator