ASP.NET Theme
ת×Ô£ºhttp://www.cnblogs.com/sunrack/archive/2009/10/16/1584427.html
theme¾ÍÊÇһϵÁÐÊôÐÔÉèÖã¬ÀûÓÃËü¿ÉÒÔ¶¨ÒåÒ³ÃæºÍ¿Õ¼äµÄÍâ¹Û¡£Ëü¿ØÖƵķ¶Î§¿ÉÒÔÊÇijЩÍøÒ³¡¢Õû¸öwebÓ¦ÓóÌÐò£¬ÉõÖÁ¿ÉÒÔÊÇÒ»¸ö·þÎñÆ÷ÉϵÄËùÓÐWebÓ¦Óá£
themeºÍ¿Ø¼þƤ·ô
themeÓÉһϵÁÐÔªËØ×é³É£ºÆ¤·ô¡¢css¡¢Í¼Æ¬ÒÔ¼°ÆäËü×ÊÔ´¡£ËüÖÁÉÙ°üº¬Æ¤·ô¡£themeÔÚweb server»òweb siteµÄÌØÊâĿ¼Öж¨Òå¡£
Ƥ·ô
Ƥ·ôÎļþ¾ßÓÐ.skinµÄÎļþÀ©Õ¹Ãû£¬°üº¬ÖîÈ磺button,label,textbox»òcalenderµÈ¿Õ¼äµÄÊôÐÔÉèÖ᣿ռäƤ·ôÉèÖþÍÏñ¿Õ¼ä×Ô¼ºµÄ»¯×±£¬µ«Ö»°üº¬ÄãÒªÇóÉèÖõÄÄÇЩÊôÐÔµÄÖµ¡£ÏÂÃæÊÇÒ»¸öbuttonµÄƤ·ôÉèÖãº
<asp:button runat="server" BackColor="lightblue" ForeColor="black" />
ÄãÓ¦¸ÃÔÚthemeĿ¼Ï½¨Á¢.skinÎļþ£¬Ò»¸ö.skinÎļþ¿ÉÒÔ°üº¬ÎªÒ»ÖÖ»òÖֿؼþÉèÖõÄÒ»¸ö»ò¶à¸öƤ·ô£¬Äã¿ÉÒÔΪÿ¸ö¿Ø¼þ¶¨ÒåÒ»¸öµ¥¶ÀµÄÎļþ£¬Ò²¿ÉÒÔÖ»¶¨ÒåÒ»¸öÎļþ°üº¬ËùÓпռäƤ·ôµÄÉèÖá£
ÓÐÁ½ÖֿؼþƤ·ôȱʡƤ·ôºÍÃüÃûƤ·ô£º
ÔÚthemeÓ¦Óõ½Ò»¸öÒ³Ãæʱ£¬È±Ê¡Æ¤·ô»á×Ô¶¯Ó¦Óõ½¸ÃÒ³ÃæÉϵÄËùÓÐͬÀàÐ͵Ŀؼþ¡£Ê²Ã´ÑùµÄƤ·ôÊÇȱʡƤ·ôÄØ£¿Åжϵıê×¼¾ÍÊÇËûÊÇ·ñÓÐSkinIDÊôÐÔ£¬Èç¹ûûÓУ¬¾ÍÊÇȱʡƤ·ô¡£¾ÙÀýÀ´Ëµ£¬¼ÙÈçÄãΪÈÕÀú¿Ø¼þ´´½¨ÁËÒ»¸öȱʡƤ·ô£¬Õâ¸öƤ·ô»áÓ¦Óõ½Ê¹ÓÃthemeµÄÒ³ÃæÉϵÄËùÓÐÈÕÀú¿Ø¼þ¡££¨È±Ê¡Æ¤·ôͨ¹ý¿Ø¼þÀàÐÍÆ¥Å䣬ÕâÑù£¬buttonƤ·ô»áÓ¦Óõ½ËùÓеÄbutton£¬µ«²»»áÓ¦Óõ½LinkButtonµÈ¼Ì³ÐbuttonµÄ¿Ø¼þ¶ÔÏ󣩡£
Ò»¸öÃüÃûƤ·ô¾ßÓÐÒ»¸öSkinIDÊôÐÔ¡£ÃüÃûƤ·ô²»»á×Ô¶¯Í¨¹ýÀàÐÍÓ¦Óõ½¿Ø¼þ¡£Äã±ØÐëͨ¹ýÉèÖÿؼþµÄSkinIDÊôÐÔÀ´ÏÔʽµØÓ¦ÓÃÒ»¸öÃüÃûƤ·ô¡£Ê¹ÓÃÃüÃûƤ·ôÔÊÐíÄãΪÏàͬ¿Ø¼þµÄ²»Í¬ÊµÀýÉèÖò»Í¬µÄƤ·ô¡£
²ãµþÑùʽ±í
themeͬÑù¿ÉÒÔ°üº¬²ãµþÑùʽ±í£¨.css£©Îļþ¡£µ±Äã°ÑÒ»¸ö.cssÎļþ·ÅÔÚthemeĿ¼ÏÂʱ£¬ÆäÑùʽ±í»á×Ô¶¯³ÉΪthemeµÄÒ»²¿·Ö¡£Äã¿ÉÒÔͨ¹ýÔÚÓëskinÎļþÏàͬµÄĿ¼Ï´´½¨.cssÎļþÀ´¶¨ÒåÑùʽ±í¡£
ͼƬºÍÆäËü×ÊÔ´
Theme¿ÉÒÔ°üº¬Í¼Æ¬ºÍÆäËü×ÊÔ´£¬Èç½Å±¾Îļþ»òÉùÒôÎļþ¡£ÀýÈ磬ÄãµÄthemeµÄ°üº¬ÁËÒ»¸öTreeView¿Ø¼þµÄƤ·ô£¬Äã¿ÉÒÔ°üº¬Ò»Ð©Í¼Æ¬ÓÃÀ´±íʾÆäÀ©Õ¹»òÊÕÆðµÄ°´Å¥¡£
Ò»°ãÇé¿öÏÂ×ÊÔ´ÎļþÓëskinÎļþÔÚͬһ¸öĿ¼Ï£¬µ«ËûÃÇ¿ÉÒÔÔÚWebÓ¦ÓõÄÈκεط½£¬ÀýÈçÔÚthemeĿ¼µÄÒ»¸ö×ÓĿ¼¡£Èç¹ûÒýÓÃÒ»¸öÔÚthemeĿ¼µÄ×ÓĿ¼ÏµÄ×ÊÔ´Îļþ£¬ÓÃÒ»¸öÀàËÆÏÂÃæImage¿Ø¼þËùʾµÄ·¾¶£º
<asp:Image runat="server" ImageUrl="ThemeSubfolder/filename.ext" />
ÄãÒ²¿ÉÒÔ°ÑÄãµÄ×ÊÔ
Ïà¹ØÎĵµ£º
Microsoft Office ExcelÊÇÒ»¸öºÜºÃµÄµç×Ó±í¸ñÓ¦ÓóÌÐò£¬ÔÚ±¾ÎÄÖУ¬itͬѧ»á½«½Ì¸øÄã¿´µ½ÈçºÎʹÓÃASP.NET´ÓExcelµç×Ó±í¸ñ¶ÁÈ¡²¢ÏÔʾÏÔʾÊý¾Ý¡£
ÎÒÃǵÄASPÒ³Ã潫ÔÚÔ¶³Ì·þÎñÆ÷ÉÏ£¬À´¶ÁÈ¡ÎÒÃǵÄ×ÀÃæExcelÎļþ¡£Ê×ÏÈ£¬ÎÒÃDZØÐë°ÑËüÉÏ´«µ½Ô¶³Ì·þÎñÆ÷£¬È»ºóretriveÊý¾Ý¡£Òò´Ë£¬ÎÒÃÇÊ×ÏÈÉè¼ÆÒ»¸ö±í¸ñ£¬ÉÏ´«µ½·þÎñÆ÷¡£ÎÒÃÇ±Ø ......
http://rzchina.net/node/3210
Web.configÎļþÖпÉÅäÖõÄÉí·ÝÑéÖ¤·½Ê½ÓÐWindows¡¢Forms¡¢PassPort¡¢None¡£
Web.configÎļþÖÐ<authentication>½Úµã£¬Éí·ÝÑéÖ¤·½Ê½È¡¾öÓڸýڵã“mode”ÊôÐÔµÄÉèÖá£
1£®None
None±íʾ²»Ö´ÐÐÉí·ÝÑéÖ¤¡£
2£®Windows
IIS¸ù¾ÝÓ¦ÓóÌÐòµÄÉèÖÃÖ´ÐÐÉí·ÝÑéÖ¤£¬ÆäÖаüº¬ÄäÃûÉí·Ý ......
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
namespace UserControl.UI
{
/// <summary>
/// TreesTable µÄժҪ˵Ã÷¡£
/// </summary>
public class TreesTable
{
public interface iTrees ......