我有一个基本问题,似乎无法使用 Google 解决(或者我使用了错误的关键字组合)。
我有一个可以访问母版页和 ASPX 的应用程序。我无权访问背后的代码;在该应用程序中,我有一个主题文件夹和一个我创建的皮肤。
我尝试对 Treeview 进行外观,并将以下内容添加到 aspx 文档 SkinId="trview"(不带扩展名的外观文件的名称)上的控件中。
仅此一点并不会影响最终的输出。我似乎记得有一行代码应该添加到母版页中以告诉应用程序使用主题,但我似乎找不到它是什么。
任何建议将不胜感激。
I have a basic question that I can't seem to resolve using Google (Or I'm using the wrong combination of keywords).
I Have an application of which I have access to the Masterpages and the ASPX. I don't have access to the code behind; Within that application I have a theme folder and a skin that I have created.
I have attempted to skin a Treeview and have added the following to the control on the aspx document SkinId="trview" (the name of the skin file without the extension).
This alone is not affecting the resulting output. I seem to remember that there is a line of code that should be added to the masterpage to tell the application to use the theme but I can't seem to find what it is.
Any advice would be appreciated.
发布评论
评论(2)
您无法在母版页中设置主题,但可以在应用程序的 web.config 中
或使用母版页的页面的页面指令中设置主题
You cannot set the theme in the masterpage, but in the web.config of the application
or in the page directive of your page using the masterpage
对于所有 Web 表单,请转到 web.config,然后编辑>标签
记住:主题不是皮肤文件,皮肤文件包含在主题中
For all webforms, go to web.config, and edit the
<pages
> tagRemember: Theme is not skin file, skin files are contained in themes