ASP.NETÒ³Ãæ¶ÔÏó
»ñÈ¡ÇëÇóµÄÒ³µÄHttpApplicationState ¶ÔÏó¡£
Ò»¡¢HttpApplicationState Àà
×÷ÓãºÆôÓà ASP.NET Ó¦ÓóÌÐòÖжà¸ö»á»°ºÍÇëÇóÖ®¼äµÄÈ«¾ÖÐÅÏ¢¹²Ïí¡£
ASP.NET Ó¦ÓóÌÐòµÄ¸ÅÄÊǵ¥¸ö Web ·þÎñÆ÷ÉϵÄij¸öÐéÄâĿ¼¼°Æä×ÓĿ¼·¶Î§ÄÚµÄËùÓÐÎļþ¡¢Ò³¡¢´¦Àí³ÌÐò¡¢Ä£¿éºÍ´úÂëµÄ×ܺ͡£
HttpApplicationState ÀàµÄµ¥¸öʵÀýÔÚ¿Í»§¶ËµÚÒ»´Î´Óij¸öÌض¨µÄ ASP.NET Ó¦ÓóÌÐòÐéÄâĿ¼ÖÐÇëÇóÈκΠURL ×ÊԴʱ´´½¨¡£¶ÔÓÚ Web ·þÎñÆ÷ÉϵÄÿ¸ö ASP.NET Ó¦ÓóÌÐò¶¼Òª´´½¨Ò»¸öµ¥¶ÀµÄʵÀý¡£È»ºóͨ¹ýÄÚ²¿ Application ¶ÔÏ󹫿ª¶Ôÿ¸öʵÀýµÄÒýÓá£
Application¶ÔÏóÊÇHttpApplicationStateÀàµÄÒ»¸öʵÀý£¬Ëü¿ÉÒÔ²úÉúÒ»¸öËùÓÐWebÓ¦ÓóÌÐò¶¼¿ÉÒÔ´æÈ¡µÄ±äÁ¿£¬Õâ¸ö±äÁ¿µÄ¿ÉÒÔ´æÈ¡·¶Î§º¸ÇÈ«²¿Ê¹ÓÃÕߣ¬Ò²¾ÍÊÇ˵ֻҪÕýÔÚʹÓÃÕâ¸öÍøÒ³µÄ³ÌÐò¶¼¿ÉÒÔ´æÈ¡Õâ¸ö±äÁ¿¡£
Ó¦ÓóÌÐò״̬²»ÔÚÍøÂ糡£¨Ó¦ÓóÌÐò±»¶ą̀·þÎñÆ÷³ÐÔØ£©»òÍøÂçÔ°£¨Ó¦ÓóÌÐò±»Í¬Ò»Ì¨¼ÆËã»úÉϵĶà¸ö½ø³Ì³ÐÔØ£©Öй²Ïí¡£
¶þ¡¢HttpApplicationState ³ÉÔ±
HttpApplicationState ÀàÐ͹«¿ªÒÔϳÉÔ±¡£
·½·¨
Ãû³Æ
˵Ã÷
Add
½«ÐµĶÔÏóÌí¼Óµ½ HttpApplicationState ¼¯ºÏÖС£
BaseAdd
½«¾ßÓÐÖ¸¶¨¼üºÍÖµµÄÏîÌí¼Óµ½ NameObjectCollectionBase ʵÀýÖС£ £¨¼Ì³Ð×Ô NameObjectCollectionBase¡££©
BaseClear
ÒƳý NameObjectCollectionBase ʵÀýÖеÄËùÓÐÏî¡£ £¨¼Ì³Ð×Ô NameObjectCollectionBase¡££©
BaseGet
ÒÑÖØÔØ¡£
BaseGetAllKeys
·µ»Ø String Êý×飬¸ÃÊý×é°üº¬ NameObjectCollectionBase ʵÀýÖеÄËùÓмü¡£ £¨¼Ì³Ð×Ô NameObjectCollectionBase¡££©
BaseGetAllValues
ÒÑÖØÔØ¡£
BaseGetKey
»ñÈ¡ NameObjectCollectionBase ʵÀýµÄÖ¸¶¨Ë÷Òý´¦µÄÏî¼ü¡£ £¨¼Ì³Ð×Ô NameObjectCollectionBase¡££©
BaseHasKeys
»ñÈ¡Ò»¸öÖµ£¬Í¨¹ý¸Ãֵָʾ NameObjectCollectionBase ʵÀýÊÇ·ñ°üº¬¼ü²»Îª nullNothingnullptrnull ÒýÓã¨ÔÚ Visual Basic ÖÐΪ Nothing£© µÄÏî¡£ £¨¼Ì³Ð×Ô NameObjectCollectionBase¡££©
BaseRemove
ÒƳý NameObjectCollectionBase ʵÀýÖоßÓÐÖ¸¶¨¼üµÄÏî¡£ £¨¼Ì³Ð×Ô NameObjectCollectionBase¡££©
BaseRemoveAt
ÒƳý NameObjectCollectionBase ʵÀýµÄÖ¸¶¨Ë÷Òý´¦µÄÏî¡£ £¨¼Ì³Ð×Ô NameObjectCollectionBase¡££©
BaseSet
ÒÑÖØÔØ¡£
Clear
´Ó HttpApplicationState ¼¯ºÏÖÐÒƳýËùÓÐ
Ïà¹ØÎĵµ£º
Membership
Ìṩ³£¹æ³ÉÔ±×ʸñ¹¦ÄÜ¡£
´´½¨Ò»¸öÐÂÓû§¡£
ɾ³ýÒ»¸öÓû§¡£
ÓÃÐÂÐÅÏ¢À´¸üÐÂÓû§¡£
·µ»ØÓû§ÁÐ±í¡£
ͨ¹ýÃû³Æ»òµç×ÓÓʼþÀ´²éÕÒÓû§¡£
ÑéÖ¤£¨Éí·ÝÑéÖ¤£©Óû§¡£
»ñÈ¡Áª»úÓû§µÄÈËÊý¡£
ͨ¹ýÓû§Ãû»òµç×ÓÓʼþµØÖ·À´ËÑË÷Óû§¡£
MembershipUser
ÌṩÓйØÌض¨Óû§µÄÐÅÏ¢¡£
»ñÈ¡ÃÜÂëºÍÃÜÂëÎÊÌâ¡£
¸ü¸ÄÃÜÂë ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("£¼script£¾window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')£¼/script£¾")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes. ......
FCKeditor½éÉÜ
¡¡¡¡FCKeditorÊÇÒ»¸ö¹¦ÄÜÇ¿´óÖ§³ÖËù¼û¼´ËùµÃ¹¦ÄܵÄÎı¾±à¼Æ÷£¬¿ÉÒÔΪÓû§Ìṩ΢ÈíofficeÈí¼þÒ»ÑùµÄÔÚÏßÎĵµ±à¼·þÎñ¡£Ëü²»ÐèÒª°²×°ÈκÎÐÎʽµÄ¿Í»§¶Ë£¬¼æÈݾø´ó¶àÊýÖ÷Á÷ä¯ÀÀÆ÷£¬Ö§³ÖASP.Net¡¢ASP¡¢ColdFusion ¡¢PHP¡¢Java¡¢Active-FoxPro¡¢Lasso¡¢Perl¡¢ython µÈ±à³Ì»·¾³¡£
¡¡¡¡¹Ù·½ÍøÕ¾http://www.fckedit ......
ÏÖÔÚÄ£ÄâÔÚA·þÎñÆ÷ÉÏ·ÃÎÊB·þÎñÆ÷DÅÌϵÄÒ»¸öÎļþ test.txt
1 ÔÚA·þÎñÆ÷ web.config µÄ<system.web>ϼÓÈë<identity impersonate="true" userName="duzhe123.com" password="boosou.com"/>
2 Á½Ì¨·þÎñÆ÷É϶¼½¨Á¢Ò»¸öÕʺŠduzhe123.com£¬ÃÜÂëΪ boosou.com ¡£ºÇºÇ£¬ÕÊºÅºÍ ......
Ò»¡¢Page Àà
Page ÀàÓëÀ©Õ¹ÃûΪ .aspx µÄÎļþÏà¹ØÁª£»ÕâЩÎļþÔÚÔËÐÐʱ±»±àÒëΪ Page ¶ÔÏ󣬲¢±»»º´æÔÚ·þÎñÆ÷ÄÚ´æÖС£Èç¹ûÊÇʹÓôúÂëÒþ²Ø¼¼Êõ´´½¨ Web ´°ÌåÒ³£¬Çë´Ó¸ÃÀàÅÉÉú¡£
Àý£º£¨public partial class _Default : System.Web.UI.Page£©
Page ¶ ......