如何在asp.net的同一网页中使用多个主题 [英] How to use multiple themes in same web page in asp.net

查看:90
本文介绍了如何在asp.net的同一网页中使用多个主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我正在使用asp.net Web应用程序.我需要在页面顶部的下拉菜单中显示两个主题,并且应该根据所选主题来更改页面.对于单个主题,我这样做了,但是对于多个主题,它却无效.如何在单个页面中使用多个主题... plz很快解释

Hi...
Im using asp.net web application. I need to show two themes in dropdown at the top of the page and depending on selected theme,the page should be changed. For a single theme,i did that,but for multiple themes its not working. How to use multiple themes in a single page...plz explain soon

推荐答案


您可以将主题应用于页面,网站或全局.在网站级别上设置主题会为网站中的所有页面和控件应用样式和外观,除非您为单个页面覆盖了主题.在页面级别设置主题将样式和外观应用于该页面及其所有控件.
参考:
MSDN:ASP.NET主题和外观 [ MSDN:如何:应用ASP.NET主题 [此处 [此处 [ 祝一切顺利.
--Amit
Hi,
You can apply themes to a page, a Web site, or globally. Setting a theme at the Web site level applies styles and skins to all the pages and controls in the site unless you override a theme for an individual page. Setting a theme at the page level applies styles and skins to that page and all its controls.
Refer:
MSDN : ASP.NET Themes and Skins[^]
MSDN : How to: Apply ASP.NET Themes[^]

Here[^] you can have a look on small article.

Here[^] is an article which will demonstrate you "How the set themes from database".
All the best.
--Amit


这篇关于如何在asp.net的同一网页中使用多个主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆