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

ASP.NETÒ³Ãæ¶ÔÏó

          »ñÈ¡ ASP.NET ÌṩµÄµ±Ç° Session ¶ÔÏó ( HttpSessionState Àà )¡£¸ÃÊôÐÔÌṩÓйص±Ç°ÇëÇóµÄ»á»°µÄÐÅÏ¢¡£Îª´Ó ASP.NET Ó¦ÓóÌÐòÇëÇóÒ³»òÎĵµµÄÿ¸öÓû§Î¬»¤Ò»¸ö Session ¶ÔÏó¡£µ±Óû§ÔÚÓ¦ÓóÌÐòÖдÓÒ»Ò³Òƶ¯µ½Áíһҳʱ£¬´æ´¢ÔÚ Session ¶ÔÏóÖеıäÁ¿²»»á±»·ÅÆú£»Ïà·´£¬Ö»ÒªÓû§ÔÚÓ¦ÓóÌÐòÖзÃÎÊÒ³£¬ÕâЩ±äÁ¿¾Í½«±£³Ö¡£
Ò»¡¢ASP.NET »á»°×´Ì¬¸ÅÊö
      ¿ÉʹÓà ASP.NET »á»°×´Ì¬´æ´¢ºÍ¼ìË÷Óû§µÄÖµ¡£
      µ±Óû§ÔÚ Web Ó¦ÓóÌÐòÖе¼º½ ASP.NET ҳʱ£¬ASP.NET »á»°×´Ì¬Ê¹ÄúÄܹ»´æ´¢ºÍ¼ìË÷Óû§µÄÖµ¡£HTTP ÊÇÒ»ÖÖÎÞ״̬ЭÒé¡£ÕâÒâζ×Å Web ·þÎñÆ÷»á½«Õë¶ÔÒ³ÃæµÄÿ¸ö HTTP ÇëÇó×÷Ϊ¶ÀÁ¢µÄÇëÇó½øÐд¦Àí¡£·þÎñÆ÷²»»á±£ÁôÒÔÇ°µÄÇëÇó¹ý³ÌÖÐËùʹÓõıäÁ¿ÖµµÄÈκÎÐÅÏ¢¡£ASP.NET »á»°×´Ì¬½«À´×ÔÏÞ¶¨Ê±¼ä·¶Î§ÄÚµÄͬһä¯ÀÀÆ÷µÄÇëÇó±êʶΪһ¸ö»á»°£¬²¢ÌṩÓÃÓÚÔڸûỰ³ÖÐøÆÚ¼äÄÚ±£Áô±äÁ¿ÖµµÄ·½·¨¡£Ä¬ÈÏÇé¿öÏ£¬½«ÎªËùÓÐ ASP.NET Ó¦ÓóÌÐòÆôÓà ASP.NET »á»°×´Ì¬¡£
1¡¢»á»°×´Ì¬µÄÌæ´úÏî°üÀ¨£º
Ó¦ÓóÌÐò״̬£¬´æ´¢ ASP.NET Ó¦ÓóÌÐòµÄËùÓÐÓû§¿É·ÃÎʵıäÁ¿¡£
ÅäÖÃÎļþÊôÐÔ£¬½«Óû§Öµ±£ÁôÔÚÊý¾Ý´æ´¢ÇøÖУ¬Ê¹ËüÃDz»»á¹ýÆÚ¡£
ASP.NET »º´æ£¬½«Öµ´æ´¢ÔÚËùÓÐ ASP.NET Ó¦ÓóÌÐò¿ÉÓõÄÄÚ´æÖС£
ÊÓͼ״̬£¬½«Öµ±£ÁôÔÚÒ³ÃæÖС£
Cookie¡£
¿Éͨ¹ý HTML ÇëÇó·ÃÎ浀 HTTP ´°ÌåÉϵIJéѯ×Ö·û´®ºÍ×ֶΡ£
 
2¡¢»á»°±äÁ¿
ÔÚ ASP.NET Ò³ÖУ¬µ±Ç°»á»°±äÁ¿½«Í¨¹ý Page ¶ÔÏóµÄ Session ÊôÐÔ¹«¿ª¡£
»á»°±äÁ¿¼¯ºÏ°´±äÁ¿Ãû³Æ»òÕûÊýË÷ÒýÀ´½øÐÐË÷Òý¡£¿Éͨ¹ý°´ÕÕÃû³ÆÒýÓûỰ±äÁ¿À´´´½¨»á»°±äÁ¿£¬¶øÎÞÐèÉùÃ÷»á»°±äÁ¿»ò½«»á»°±äÁ¿ÏÔʽÌí¼Óµ½¼¯ºÏÖС£ÏÂÃæµÄʾÀýÑÝʾÈçºÎÔÚ ASP.NET Ò³ÉÏ´´½¨·Ö±ð±íʾÓû§µÄÃû×ÖºÍÐÕÊϵĻỰ±äÁ¿£¬²¢½«ËüÃÇÉèÖÃΪ´Ó TextBox ¿Ø¼þ¼ìË÷µ½µÄÖµ¡£
Session["FirstName"] = FirstNameTextBox.Text;
Session["LastName"] = LastNameTextBox.Text;
      »á»°±äÁ¿¿ÉÒÔÊÇÈκÎÓÐЧµÄ .NET Framework ÀàÐÍ¡£ÏÂÃæµÄʾÀý½« ArrayList ¶ÔÏó´æ´¢ÔÚÃûΪ StockPicks µÄ»á»°±äÁ¿ÖС£µ±´Ó SessionStateItemCollection ¼ìË÷ÓÉ StockPicks »á»°±äÁ¿·µ»ØµÄֵʱ£¬±ØÐ뽫´ËֵǿÖÆת»»ÎªÊʵ±µÄÀàÐÍ¡£
// When retrieving an object from session state, cast it to
// the appropriate type.
ArrayList stockPicks = (ArrayList


Ïà¹ØÎĵµ£º

ASP.NET³ÌÐòµÄ¸ºÑ¹²âÊÔ


wuyq11
(ÈËÉúÈçÃÎ)
½øÐÐѹÁ¦²âÊÔ£¬¿ÉʹÓõŤ¾ßºÜ¶à
ÈçLoadrunner£ºÔ¤²âϵͳÐÐΪºÍÐÔÄܵĸºÔزâÊÔ¹¤¾ß
Webload£ºWEBÐÔÄÜѹÁ¦²âÊÔ
ʹÓöàÏß³Ì
MS Web Application Stress Tool
ÑÓÉì------------------------------------------------------------------------------->
¡¶ASP.NET³ÌÐòµÄ¸ºÑ¹²âÊÔ¡·
......

ASP.NETʹÓÃRequest»ñÈ¡À´Ô´ÍøÖ·URL²ÎÊý

Request¶ÔÏó¹¦ÄÜÊÇ´Ó¿Í»§¶ËµÃµ½Êý¾Ý£¬³£ÓõÄÈýÖÖÈ¡µÃÊý¾ÝµÄ·½·¨ÊÇ£ºRequest.Form¡¢Request.QueryString£¬Request¡£ÆäµÚÈýÖÖÊÇÇ°Á½ÖÖµÄÒ»¸öËõд£¬¿ÉÒÔÈ¡´úÇ°Á½ÖÖÇé¿ö¡£¶øÇ°Á½ÖÖÖ÷Òª¶ÔÓ¦µÄFormÌύʱµÄÁ½ÖÖ²»Í¬µÄÌá½»·½·¨£º·Ö±ðÊÇPost·½·¨ºÍGet·½·¨¡£
        Request ¶ÔÏóµÄÊôÐԺͷ½·¨± ......

ASP.NETÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë

 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. ......

ASP.NETºÍSQL SERVERÖÐʹÓÃÊÂÎñʾÀý

1£¬SqlServer´æ´¢¹ý³ÌµÄÊÂÎñ´¦Àí
Ò»ÖֱȽÏͨÓõijö´í´¦ÀíµÄģʽ´ó¸ÅÈçÏ£º
Create procdure prInsertProducts
(
 @intProductId int,
 @chvProductName varchar(30),
 @intProductCount int
)
AS
Declare @intErrorCode int
Select @intErrorCode=@@Error
Begin transaction
 if @intError ......

ASP.NETÒ³Ãæ¶ÔÏó

   »ñÈ¡ÇëÇóµÄÒ³µÄHttpApplicationState ¶ÔÏó¡£
Ò»¡¢HttpApplicationState Àà
      ×÷ÓãºÆôÓà ASP.NET Ó¦ÓóÌÐòÖжà¸ö»á»°ºÍÇëÇóÖ®¼äµÄÈ«¾ÖÐÅÏ¢¹²Ïí¡£
      ASP.NET Ó¦ÓóÌÐòµÄ¸ÅÄÊǵ¥¸ö Web ·þÎñÆ÷ÉϵÄij¸öÐéÄâĿ¼¼°Æä×ÓĿ¼·¶Î§ÄÚµÄËùÓÐÎļþ¡¢Ò³¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ