ASP.NETÒ³Ãæ¶ÔÏó – User
»ñÈ¡Óйط¢³öÒ³ÇëÇóµÄÓû§µÄÐÅÏ¢¡£
Ò»¡¢HttpContext Àà
·â×°Óйظö±ð HTTP ÇëÇóµÄËùÓÐ HTTP Ìض¨µÄÐÅÏ¢¡£
HttpContext ÀàÐ͹«¿ªÒÔϳÉÔ±¡£
¹¹Ô캯Êý
Ãû³Æ
˵Ã÷
HttpContext
ÒÑÖØÔØ¡£ ³õʼ»¯ LinePragmaCodeInfo ÀàµÄÒ»¸öÐÂʵÀý¡£
·½·¨
Ãû³Æ
˵Ã÷
AddError
½«Òì³£Ìí¼Óµ½µ±Ç° HTTP ÇëÇóµÄÒì³£¼¯ºÏÖС£
ClearError
Çå³ýµ±Ç° HTTP ÇëÇóµÄËùÓдíÎó¡£
Equals
È·¶¨Ö¸¶¨µÄ Object ÊÇ·ñµÈÓÚµ±Ç°µÄ Object¡£ £¨¼Ì³Ð×Ô Object¡££©
Finalize
ÔÊÐí Object ÔÚ“À¬»ø»ØÊÕ”»ØÊÕ Object ֮ǰ³¢ÊÔÊÍ·Å×ÊÔ´²¢Ö´ÐÐÆäËûÇåÀí²Ù×÷¡£ £¨¼Ì³Ð×Ô Object¡££©
GetAppConfig
Òѹýʱ¡£ Ϊµ±Ç°Ó¦ÓóÌÐò·µ»ØÇëÇóµÄÅäÖÃÐÅÏ¢¡£
GetConfig
Òѹýʱ¡£ Ϊµ±Ç° HTTP ÇëÇó·µ»ØËùÇëÇóµÄÅäÖÃÐÅÏ¢¡£
GetGlobalResourceObject
ÒÑÖØÔØ¡£ »ñÈ¡Ó¦ÓóÌÐò¼¶±ðµÄ×ÊÔ´¡£
GetHashCode
ÓÃ×÷Ìض¨ÀàÐ͵ĹþÏ£º¯Êý¡£ £¨¼Ì³Ð×Ô Object¡££©
GetLocalResourceObject
ÒÑÖØÔØ¡£ »ñÈ¡Ò³¼¶±ðµÄ×ÊÔ´¡£
GetSection
»ñÈ¡µ±Ç°Ó¦ÓóÌÐòµÄĬÈÏÅäÖõÄÖ¸¶¨ÅäÖýڡ£
GetType
»ñÈ¡µ±Ç°ÊµÀýµÄ Type¡£ £¨¼Ì³Ð×Ô Object¡££©
MemberwiseClone
´´½¨µ±Ç° Object µÄdz±í¸±±¾¡£ £¨¼Ì³Ð×Ô Object¡££©
RemapHandler
ÓÃÓÚΪÇëÇóÖ¸¶¨´¦Àí³ÌÐò¡£
RewritePath
ÒÑÖØÔØ¡£ Ö¸¶¨ÄÚ²¿ÖØд·¾¶£¬²¢ÔÊÐíÇëÇóµÄ URL Óë×ÊÔ´µÄÄÚ²¿Â·¾¶²»Í¬¡£RewritePath ÓÃÔÚÎÞ Cookie »á»°×´Ì¬ÖС£
ToString
·µ»Ø±íʾµ±Ç° Object µÄ String¡£ £¨¼Ì³Ð×Ô Object¡££©
ÊôÐÔ
Ãû³Æ
˵Ã÷
AllErrors
»ñÈ¡ÔÚ´¦Àí HTTP ÇëÇóµÄ¹ý³ÌÖÐÀÛ»ýµÄ´íÎóÊý×é¡£
Application
Ϊµ±Ç° HTTP ÇëÇó»ñÈ¡ HttpApplicationState ¶ÔÏó¡£
ApplicationInstance
Ϊµ±Ç° HTTP ÇëÇó»ñÈ¡»òÉèÖà HttpApplication ¶ÔÏó¡£
Cache
»ñÈ¡µ±Ç°Ó¦ÓóÌÐòÓòµÄ Cache ¶ÔÏó¡£
Current
Ϊµ±Ç° HTTP ÇëÇó»ñÈ¡»òÉèÖà HttpContext ¶ÔÏó¡£
CurrentHandler
»ñÈ¡±íʾµ±Ç°ÕýÔÚÖ´ÐеĴ¦Àí³ÌÐòµÄ IHttpHandler ¶ÔÏó¡£
CurrentNotification
»ñÈ¡Ò»¸ö RequestNotification Öµ£¬¸Ãֵָʾµ±Ç°ÕýÔÚ´¦ÀíµÄ HttpApplication ʼþ¡£
Error
»ñÈ¡ÔÚ´¦Àí HTTP ÇëÇóµÄ¹ý³ÌÖÐÀÛ»ýµÄµÚÒ»¸ö´íÎó£¨Èç¹ûÓУ©¡£
Handler
»ñÈ¡»òÉèÖøºÔð´¦Àí HTTP ÇëÇóµÄ IHttpHandler ¶ÔÏó¡£
IsCustomErrorEnabled
»ñÈ¡Ò»¸öÖµ£¬¸ÃֵָʾÊÇ·ñÒÑΪµ±Ç° HTTP ÇëÇóÆôÓÃ×Ô¶¨Òå´íÎó¡£
IsDebuggingEnabled
»ñÈ¡Ò»¸öÖµ£¬¸Ãֵָʾµ±Ç° HTTP ÇëÇóÊÇ·
Ïà¹ØÎĵµ£º
ÔÚweb¿ª·¢Öо³£»áÅöµ½cssÑùʽµÄÔËÓã¬ÎÒ¾ÍÔÚasp.netÖÐÔËÓÃÑùʽ½øÐÐÁË×ܽᣡ
1¡¢Ê¹ÓÃstyleÊôÐÔÉèÖÃÑùʽ
•
nʵÀý
•StyleÊôÐÔÉèÖÃ
<asp:TextBox ID="TextBox1" runat="server"
style="background-color:Red; font-size:15px">
</asp:TextBox>
2¡¢Ê¹ÓÃCssclassÊôÐÔÉèÖà ......
ѧϰJQueryʱ£¬·¢ÏÖJQueryÖ»ÄÜ×öµ¥ÐÐÍÏ·Å£¬ ÓÚÊÇ»¨Ê±¼ä×öÁËÒ»¸ö¶àÐÐÍϷŵÄÀý×Ó£¬ ÒÔ±¸ÒÔºóʹÓá£
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="jquery-1.3.2.js"></scri ......
¼Ç¼һ¸öС·½·¨£¬ÈÃÈκζÔÏó¶¼ÊµÏÖjsonÐòÁкúµÄÀ©Õ¹·½·¨:
using System.Web.Script.Serialization;
...
//
public static string ToJSON(this Object obj) {
return new JavaScriptSerializer().Serialize(obj);
}
... ......