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

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


Ïà¹ØÎĵµ£º

ʹÓÃASP.Net FormsģʽʵÏÖWebServiceÉí·ÝÑéÖ¤

ʹÓÃASP.Net FormsģʽʵÏÖWebServiceÉí·ÝÑéÖ¤
    ÔÚ°²È«ÐÔÒªÇó²»ÊǺܸߵÄASP.Net³ÌÐòÖУ¬»ùÓÚFormsµÄÉí·ÝÑéÖ¤ÊǾ­³£Ê¹ÓõÄÒ»ÖÖ·½Ê½£¬¶øÈç¹ûÐèÒª¶ÔWebService½øÐÐÉí·ÝÑéÖ¤£¬×î³£ÓõĿÉÄÜÊÇ»ùÓÚSoap ±êÍ·µÄ×Ô¶¨ÒåÉí·ÝÑéÖ¤·½Ê½¡£Èç¹û¶ÔÁ½Õß×öһϱȽϵĻ°£¬ÏÔÈ»£¬»ùÓÚFormsµÄÑéÖ¤·½Ê½¸ü¼Ó·½±ãÒ×Óã¬ÄÜ·ñ½«F ......

ASP.NETÍøÕ¾½¨ÉèÖ®´úÂë·ÖÀë

ÔÚÎÒÃÇ´«Í³µÄÍøÕ¾½¨ÉèÖÐͨ³£ÊÇÏÈÉè¼ÆÍøÕ¾Ò³Ã棬ÔÙÀûÓÿª·¢¹¤¾ß£¬ÔÚÍøÕ¾µÄ¿ò¼ÜÄÚ½øÐй¦ÄÜÉè¼Æ¡£ÕâÑùµÄÍøÕ¾½¨Éè´æÔںܶà±×¶Ë£¬ÆäÖÐ×îÍ»³öµÄȱµãÊDz»ÀûÓÚС×鹲ͬ¿ª·¢£¬¸÷»·½ÚÖ®¼äÒÀÀµÐÔÌ«Ç¿¡£
ÔÚASP.NETÖÐÎÒÃÇ¿ÉÒÔÀûÓúǫ́±àÂ룬°ÑHTMLÓû§½çÃæÉè¼Æ£¨ÑÕÉ«¡¢ÃÀѧµÈ£©ÓëÒ³Ãæ´úÂëÇø·Ö¿ªÀ´¡£ÕâÑù¾Í¿ÉÒÔ½â¾öÎÒÃÇС×éµÄ²¢Ðпª·¢ÎÊ ......

[ASP.net]ѧϰasp.netµÄÍêÕûÁ÷³Ì

±¾ÌùÀ´×ÔZDNetChinaÖÐÎÄÉçÇø http://bbs.zdnet.com.cn/
±¾ÌùµØÖ·£ºhttp://bbs.zdnet.com.cn/viewthread.php?tid=108315
 
Èç¹ûÄãÒѾ­Óн϶àµÄÃæÏò¶ÔÏ󿪷¢¾­Ñ飬Ìø¹ýÒÔÏÂÕâÁ½²½£º
¡¡¡¡µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó(OO)ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇ ......

ASP.Net 2.0&UP ViewState¶ªÊ§ÎÊÌâ

    Ã»ÓÐ×ÐϸÑо¿¹ýViewState£¬×î½ü³öÏÖµÄÎÊÌâÈÃÈËÍ·Í´²»ÒÑ¡£
    ViewState»áÔÚijЩÌض¨Çé¿öÏÂÏûʧ£¬ÇÒºÜÄѲ¶×½µ½¡£²éÁËһЩ¼¼ÊõÎÄÕ£¬¶¼ÊÇ˵ViewStateµÄ»úÖÆÊǽ«ÐÅÏ¢´æÔÚÒ³ÃæµÄhidden inputÀïÃ棬Ëƺõ²»¿ÉÄÜ´æÔÚÕâЩÎÊÌ⣬¸ø³öµÄÀíÓÉÎÞ·ÇÊÇÔÚij¸öµØ·½±»Ä³¸ö²»Ð¡ÐĵijÌÐòÔ±¸ø½ûµô»òÇå³ýµôÁ ......

Asp.Net ¼òµ¥¿¼Ìâ¹ÜÀíϵͳ


default.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ