ASP.NET 2.0 ÖÐµÄ Theme ¹¦ÄÜ
ASP.NET 2.0 ÖÐÐÂÔö¼ÓÁË Theme µÄ¹¦ÄÜ£¬ËüµÄ³öÏÖÄÜÈÃÍøվʵÏÖ»»·ô¸ü¼ÓÈÝÒס£
Theme µÄʵÏÖ°üÀ¨£ºCSS¡¢Skin¡¢MasterPage¡£
CSS ÊÇÓÃÓÚ¿ØÖÆËùÓÐ HTML ±ê¼ÇµÄÍâ¹Û¡£
Skin ÊÇÓÃÓÚ¿ØÖÆËùÓÐ ASP.NET ·þÎñÆ÷µ÷ÕûµÄÍâ¹Û£¬²¢ÇÒ¿ÉÒÔͨ¹ýÊôÐÔ cssClass ¶¨ÒåËüµÄ CSS Ñùʽ¡£
MasterPage ÊÇ *.aspx Ò³ÃæÄ£°æ£¬²»¹ýËüûÓỶ¨Òåµ½ Theme ÖС£
·´´½¨ Theme µÄÀý×Ó£º
1¡¢ÔÚ Web ÏîÄ¿Öд´½¨ App_Themes Ŀ¼¡£ËüÊÇÔ¤¶¨ÒåµÄĿ¼£¬ASP.NET 2.0 »á×Ô¶¯Ê¶±ðÆäĿ¼Ï嵀 Theme ¡£
2¡¢ÔÚ App_Themes Ŀ¼´´½¨ orangeTheme¡¢BlueTheme Á½¸ö×ÓĿ¼¡£
3¡¢Îª App_Themes ϵÄÿ¸ö×ÓĿ¼Ìí¼Ó Skin Îļþ£¬Èç Control.Skin ¡£ASP.NET 2.0 »á×Ô¶¯·ÖÎöÿһ¸ö Skin Îļþ£¬ÔÚÕâÀïµÄÃüÃûÖ»ÐèҪΪÁË¿ª·¢Ê±·½±ã·ÖÀà¡£
4¡¢Ò²¿ÉÒÔΪ App_Themes ϵÄÿ¸ö×ÓĿ¼Ìí¼Ó CSS Îļþ¡£ASP.NET 2.0 Ò²»á×Ô¶¯½«Ã¿Ò»¸ö CSS ÎļþÌí¼Óµ½Ã¿Ò»¸öʹÓôËÑùʽµÄÒ³ÃæÖÐÈ¥¡£
·¶¨ÒåÒ³ÃæÄÚÈÝÓë Theme Ñùʽ
1¡¢default.aspx Ò³Ã涨ÒåÈçÏ£º
<%@ Page Theme="OrangeTheme" %>
<html>
<head runat="server">
<title>Orange Page</title>
</head>
<body>
<form id="form1" runat="server">
Enter your name:<br />
<asp:TextBox ID="txtName" Runat="Server" />
<br /><br />
<asp:Button ID="btnSubmit" Text="Submit Name" Runat="Server"/>
</form>
</body>
</html>
2¡¢ÔÚ OrangeTheme Ö÷Ò³µÄ Control.Skin ÎļþÖж¨ÒåÈçÏ£º
×¢Ò⣺ֻÄÜÖ¸¶¨Íâ¹ÛÊôÐÔ£¬²»ÄÜÖ¸¶¨Èç AutoPastback µÈÊôÐÔ¡£
ĬÈÏδÃüÃûµÄ Skin ½«»áΪËùÓÐ TextBox ÀàÐͶ¨ÒåÍâ¹Û¡£
<asp:TextBox BackColor="Orange" ForeColor="DarkGreen" Runat="Server" />
<asp:Button BackColor="Orange" ForeColor="DarkGreen" Font-Bold="True" Runat="Server" />
ÒѾÃüÃû SkinID µÄ½«¿ÉÒÔΪָ¶¨ TextBox ÀàÐͶ¨ÒåÍâ¹Û¡£
<asp:TextBox SkinID="Title" BackColor="Orange" ForeColor="DarkGreen" Runat="Server" />
·ÔÚÒ³ÃæÖÐʹÓà Theme
1¡¢ÔÚ Aspx Îļþ¶¥²¿ <%@ Page %> ÖÐÌí¼Ó Theme="Default" ÊôÐÔ¡£ÕâÑùËü¾Í¿ÉÒÔʹÓà Default Ö÷ÌâÁË¡£
2¡¢Èç¹ûÏëµ½ÔÚÕû¸öÍøÕ¾Ó¦ÓÃij¸ö Theme ¾ÍÐèÒªÔÚ Web.Config ¶¨Òå¡£
<configuration>
<syste
Ïà¹ØÎĵµ£º
ÔÚc# / ASP.netÖÐÎÒÃÇ¿ÉÒÔͨ¹ýʹÓÃDataTimeÕâ¸öÀàÀ´»ñÈ¡µ±Ç°µÄʱ¼ä¡£Í¨¹ýµ÷ÓÃÀàÖеĸ÷ÖÖ·½·¨ÎÒÃÇ¿ÉÒÔ»ñÈ¡²»Í¬µÄʱ¼ä£ºÈ磺ÈÕÆÚ£¨2008-09-04£©¡¢Ê±¼ä£¨12£º12£º12£©¡¢ÈÕÆÚ+ʱ¼ä£¨2008-09-04 12£º11£º10£©µÈ¡£
//»ñÈ¡ÈÕÆÚ+ʱ¼ä
DateTime.Now.ToString(); // 2008- ......
Ê×ÏÈÉêÃ÷ ´¿Êô¸öÈËÁ·Ï°Ö®×÷ ÇëÎðÓÃÓÚÉÌҵĿµÄ..........ÎÞÓï
¼ÍÄîÒ»ÏÂÎÒÒÔÇ°µÄÒ»¸ö×÷Æ·<¿ú>,ÒÔºó¾ÍÓÃËüµ±ÎÒµÄLOGOÁË
½ñÌìÊÇÊ×·¢,ÕâƪÎÄÕÂÎÒ»á³ÖÐø¸üÐÂ,ÎÒ²ÎÕÕÁËÔ°ÇøÀïÇ°±²µÄ¾Ñé,ÃþË÷×ÅȥʵÏÖ,Ä¿Ç°´óÌåµÄ»¹Î´ÍêÉÆ,ÏÈ·¢ÕÅͼÉÏÀ´...
......
Õû¸öSQLºÍAsp.net(vb.net)Ò»Æð´ò°üµÄÈ«¹ý³ÌдһÏ¡£
Ò».×¼±¸±ØÒªµÄÎļþ
1. SQL½Å±¾Îļþ£¬Éú³ÉÒÔºó°²×°¹ý³ÌÖÐÐèÒªµÄ±íºÍ´æ´¢¹ý³ÌµÈµÈ£»
Éú³ÉÖ®ºó£¬¾ÍÔÝʱ°ÑËüÃüÃûΪdb.sql(×¢Òâ´óСд)
2.LisenceFile.rtfµÄ°²×°Îļþ£¬ÒòΪÎÒµÄϵͳÊǸöÈ˵ģ¬¶øÇÒfreeµÄ£¬ËùÒÔ¾ÍûÓÐ×ö¡£Õâ¸öÒÔºóÒ²ÊÇÒªÓõ½µÄ¡£
¶þ.ÔÚ×Ô¼ºÏÖÓеÄÏîÄ¿Àïà ......
ÔÚweb¿ª·¢ÖÐ,¾³£ÒªÓõ½¿Ø¼þµÄOnClientClickÓëOnClickʼþ.
Èç¹ûʹÓò»µ±,¾³£»áÓöµ½Ò»Ð©ÒâÁÏÖ®ÍâµÄÊÂÇé·¢Éú,ÈÃÈËÃþ²»×ÅÍ·ÄÔ.ÏÂÃæ¾Í½«ÎÒµÄһЩСС×ܽáµÀÀ´:
Ê×ÏÈÎÒÃÇÒªÁ˽âÕâÁ½¸öʼþ:
OnClientClickÊÇ¿Í»§¶Ëʼþ·½·¨.Ò»°ã²ÉÓÃJavaScriptÀ´½øÐд¦Àí.Ò²¾ÍÊÇÖ±½ÓÔÚIE¶ËÔËÐÐ.Ò»µã»÷¾ÍÔËÐÐ.
OnClickʼþÊÇ·þÎñÆ÷¶Ëʼþ´¦Àí ......
asp.net¿ª·¢ÖУ¬Í¨³£ÐèÒª×öһЩ¿Í»§¶ËÑéÖ¤¡£µ±ÎÒÃÇĬÈÏÔÚÒ»¸öÒ³ÃæÖмӸöbutton¿Ø¼þʱ£¬Õâ¸öButton±»asp.net Êä³öΪһ¸öSubmit°´Å¥¡£ asp:Button ID=Button1 runat=server Text=Button on click=Button1_Click /
ÔÚ_doPostBack·½·¨ÄÚ£¬Í¨¹ýtheForm.submit()À´Ê¹Êý¾ÝÌá½»µ½·þÎñÆ÷¡£
ÕâÑùºÜÈÝÒ׿´³ö£¬Èç ¹ûÎÒÃÇÏëÒªÔÚÊý¾ÝÌá½ ......