Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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" />
ÄãÒ²¿ÉÒÔ°ÑÄãµÄ×ÊÔ


Ïà¹ØÎĵµ£º

ASP.NETµÄformsÉí·ÝÑéÖ¤

Asp.netµÄÉí·ÝÑéÖ¤ÓÐÓÐÈýÖÖ£¬·Ö±ðÊÇ"Windows | Forms | Passport"£¬ÆäÖÐÓÖÒÔFormsÑéÖ¤ÓõÄ×î¶à£¬Ò²×îÁé»î¡£
Forms ÑéÖ¤·½Ê½¶Ô»ùÓÚÓû§µÄÑéÖ¤ÊÚȨÌṩÁ˺ܺõÄÖ§³Ö£¬¿ÉÒÔͨ¹ýÒ»¸öµÇ¼ҳÃæÑéÖ¤Óû§µÄÉí·Ý£¬½«´ËÓû§µÄÉí·Ý·¢»Øµ½¿Í»§¶ËµÄCookie£¬Ö®ºó´ËÓû§ÔÙ·ÃÎÊÕâ¸öwebÓ¦ÓþͻáÁ¬Í¬Õâ¸öÉí·ÝCookieÒ»Æð·¢Ë͵½·þÎñ¶ ......

ASP.NETÖÐʹÓÃweb.configÅäÖÃÊý¾Ý¿âÁ¬½Ó

ASP.NETÖÐʹÓÃweb.configÅäÖÃÊý¾Ý¿âÁ¬½Ó 
 ÔÚweb.configÎļþÖб£´æÊý¾Ý¿âÁ¬½ÓÅäÖÃÐÅÏ¢,¿ÉÒÔÈÃÄãÎÞÐëÖØбàÒëÓ¦ÓóÌÐò¼´¿É¸üÐÂÓ¦ÓóÌÐòµÄijЩÊôÐÔ¡£µ±ÄãÏë°ÑÊý¾Ý¿âǨÒƵ½ÁíÒ»¸ö²»Í¬µÄ·þÎñÆ÷£¬ÄãÖ»ÐèÒªÐÞ¸Äweb.configÎļþÖеÄÊý¾Ý¿âÁ¬½ÓÅäÖÃÐÅÏ¢¶øÒÑ£¬²¢²»ÐèÒªÖØбàÒëºÍÖØв¿ÊðÕâ¸öÓ¦ÓóÌÐòÒÔÊÊӦеķþÎñÆ÷µÄÒ ......

ASP.NET¶ÁÈ¡ASPÉèÖõÄCookie

    ÕâÀàÎÊÌâͨ³£ÔÚÕûºÏ»ò¶þ´Î¿ª·¢ASPÍøվʱÓöµ½¡£°´³£ÀíÀ´Ëµ£¬ä¯ÀÀÆ÷µÄCookie´æ·ÅÔÚ¿Í»§¶Ë£¬Êµ¼ÊÉÏÓë·þÎñ¶ËʹÓÃʲôÓïÑÔÎ޹أ¬µ«ÎÒÃÇÔÚʵ¼Ê²Ù×÷¹ý³ÌÖУ¬×Ü»áÓöµ½Ò»Ð©ÒâÏë²»µ½µÄÎÊÌâ¡£
    1. µ±ASPдµÄCookieµÄKeyÖдøÓÐÏ»®Ïߣ¬ÀýÈçÎÒÃÇÔÚASPÖÐÕâÑùÉèÖÃCookie:
     ......

ASP.NET postback£¨»Ø·¢£©ºóÈçºÎ±£³ÖÍøÒ³µÄλÖÃ

ͨ³£Çé¿öÏ£¬ASP.Net Ò³Ãæ PostBack£¨»Ø·¢£©ºó£¬Ò³ÃæÒ»°ã¶¨Î»ÔÚÕû¸öÍøÒ³µÄ¶¥²¿!µ«ÎÒÃÇÔÚʵ¼ÊÏîÄ¿Öо­³£ÐèÒª£¬»Ø·¢ºóÄܶ¨Î»µ½×Ô¼º¸Õ¸Õµã»÷Ìá½»°´Å¥Î»Öã¬ÄÇÕâÖÖÇé¿öÈçºÎʵÏÖÄØ£¬ÏÂÃæ½éÉÜÈýÖÖʵÏÖЩ¹¦Äܵķ½·¨
 
Ò»¡¢Ó¦ÓóÌÐò¼¶ÉèÖãºÔÚweb.configÖÐÔö¼ÓÒ»¸öpages½Úµã
      <pages main ......

ASP.NETµÄWeb.configÎļþÖпÉÅäÖÃÄÄЩÉí·ÝÑéÖ¤·½Ê½

http://rzchina.net/node/3210
Web.configÎļþÖпÉÅäÖõÄÉí·ÝÑéÖ¤·½Ê½ÓÐWindows¡¢Forms¡¢PassPort¡¢None¡£
Web.configÎļþÖÐ<authentication>½Úµã£¬Éí·ÝÑéÖ¤·½Ê½È¡¾öÓڸýڵã“mode”ÊôÐÔµÄÉèÖá£
1£®None
None±íʾ²»Ö´ÐÐÉí·ÝÑéÖ¤¡£
2£®Windows
IIS¸ù¾ÝÓ¦ÓóÌÐòµÄÉèÖÃÖ´ÐÐÉí·ÝÑéÖ¤£¬ÆäÖаüº¬ÄäÃûÉí·Ý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ