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

ת:ASP.NETÒ³Ãæ´«ÖµµÄ¼¸ÖÖ·½Ê½

Ò». ʹÓÃQueryString±äÁ¿
¡¡¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥Ò²ÊÇʹÓñȽ϶àµÄÒ»ÖÖ´«Öµ·½Ê½£¬µ«ÊÇËü½«´«µÝµÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖÐ,Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£
         Response.Redirect( "target.aspx?param1=hello&param2=hi ")
        ½ÓÊÕÒ³Ã棺   string   str   =   Request.QueryString["param1"];
                               string   str1   = Request.QueryString["param2];
¶þ.ʹÓÃCookie¶ÔÏó±äÁ¿(CookieÊÇ´æ·ÅÔÚ¿Í»§¶ËµÄ)
¡¡      ÉèÖÃCookie:   HttpCookie cookie_name = new HttpCookie("name");
                         cookie_name.Value = Label1.Text;
                         Reponse.AppendCookie(cookie_name);
   
          »ñÈ¡Cookie:
                       string name= Request.Cookie["name"].Value.ToString();
Èý. ʹÓÃSession±äÁ¿(sessionÊÇ´æ·ÅÔÚ·þÎñÆ÷¶ËµÄ)
¡¡¡¡ÉèÖÃSession:¡¡     Session["name"] ="hello";
        »ñÈ¡Session:        string name = Session["name"].ToString();
ËÄ.ʹÓÃApplication ¶ÔÏó±äÁ¿
¡¡¡¡Application¶ÔÏóµÄ×÷Ó÷¶Î§ÊÇÕû¸öÈ«¾Ö£¬Ò²¾ÍÊÇ˵¶ÔËùÓÐÓû§¶¼ÓÐЧ¡£´ËÖÖ·½·¨²»³£Ê¹Óã¬ÒòΪApplicationÔÚÒ»¸öÓ¦ÓóÌÐòÓò·¶Î§¹²Ïí£¬ËùÓÐÓû§¿ÉÒԸı估ÉèÖÃÆäÖµ£¬¹ÊÖ»Ó¦ÓüÆÊýÆ÷µÈÐèҪȫ¾Ö±äÁ¿µÄµØ·½¡£
  &n


Ïà¹ØÎĵµ£º

ASP.NET ¿çÒ³´«µÝ

Ò»¡¢ÏìÓ¦Öض¨Ïò·½·¨
ÏìÓ¦Öض¨Ïò·½·¨ÊÇĿǰΪֹ½«Ò»¸öÍøÒ³Öض¨Ïòµ½ÁíÒ»¸öÍøÒ³µÄ×î¼òµ¥µÄ·½·¨µÄ×î¼òµ¥µÄ·½·¨¡£µ±Web·þÎñÆ÷½Óµ½Ò»¸öÖض¨ÏòÇëÇóºó£¬Ëü»á½«Ò»¸öÏìӦͷË͸ø¿Í»§¶Ë£¬Õ⽫µ¼Ö¿ͻ§¶Ë·¢ËÍÒ»¸öеÄÇëÇóµ½·þÎñÆ÷¡£°´¾ä»°Ëµ£¬Ò»¸öÖض¨ÏòÇëÇóʵ¼ÊÉÏÊÇÁ½¸öÇëÇóÏìÓ¦£ºÒ»¸öÊÇ×î³õµÄÇëÇóÏìÓ¦£¬ÁíÒ»¸öÊÇеÄÖض¨ÏòÇëÇóÏìÓ¦¡ ......

Asp.NetÖÐSession

Session¼´»á»°£¬ÊÇÖ¸Ò»¸öÓû§ÔÚÒ»¶Îʱ¼äÄÚ¶Ôijһ¸öÕ¾µãµÄÒ»´Î·ÃÎÊ¡£ 
Session¶ÔÏóÔÚ.NETÖжÔÓ¦HttpSessionStateÀ࣬±íʾ“»á»°×´Ì¬”£¬¿ÉÒÔ±£´æÓ뵱ǰÓû§»á»°Ïà¹ØµÄÐÅÏ¢¡£
Session¶ÔÏóÓÃÓÚ´æ´¢´ÓÒ»¸öÓû§¿ªÊ¼·ÃÎÊij¸öÌض¨µÄaspxµÄÒ³ÃæÆ𣬵½Óû§À뿪Ϊֹ£¬Ìض¨µÄÓû§»á»°ËùÐèÒªµÄÐÅÏ¢¡£Óû§ÔÚÓ¦ÓóÌÐòµ ......

ASP.NETÒ³Ãæˢз½·¨×ܽá

µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script&g ......

ASP.NET MVC ϵÁÐÎÄÕÂ

http://www.cnblogs.com/chsword/archive/2008/03/10/dotnetmvcframework.html
ÒÔÏÂÎÄÕÂÊôÓÚASP.NET MVC 1.0 Õýʽ°æ
ASP.NET MVCµñ³æС¼¼ 1-2
ASP.NET MVC Öصã½Ì³ÌÒ»ÖÜÄê°æ µÚʮһ»Ø ĸ°æÒ³¡¢Óû§×Ô¶¨Òå¿Ø¼þ¼°ÎļþÉÏ´«
ASP.NET MVC Öصã½Ì³ÌÒ»ÖÜÄê°æ µÚÊ®»Ø ÇëÇóController
ASP.NET MVC Öصã½Ì³ÌÒ»ÖÜÄê°æ µÚ¾Å»Ø H ......

dz̸Asp.NetÄÚ²¿»úÖÆ

dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Ò»)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(¶þ)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Èý)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(ËÄ)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Îå)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Áù)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Æß)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(°Ë) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ