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

¹ØÓÚasp.net c#ÖжÔcookieµÄ²Ù×÷


ÏÂÃæÊÇдcookie
1 HttpCookie cookie = new HttpCookie("Info");//¶¨Òåcookie¶ÔÏóÒÔ¼°ÃûΪInfoµÄÏî
2 DateTime dt = DateTime.Now;//¶¨Òåʱ¼ä¶ÔÏó
3 TimeSpan ts=new TimeSpan(1,0,0,0);//cookieÓÐЧ×÷ÓÃʱ¼ä£¬¾ßÌå²émsdn
4 cookie.Expires = dt.Add(ts);//Ìí¼Ó×÷ÓÃʱ¼ä
5 cookie.Values.Add("user","cxbkkk");//Ôö¼ÓÊôÐÔ
6 cookie.Values.Add("userid","1203");
7 Response.AppendCookie(cookie);//È·¶¨Ð´ÈëcookieÖР       ¶ÁÈ¡cookie
 1 if(Request.Cookies["Info"]!=null)
 2 {
 3     string temp=Convert.ToString(Request.Cookies["Info"].Values["user"])+"  "+Convert.ToString(Request.Cookies["Info"].Values["userid"]);
 4     //¶ÁÈ«²¿¾ÍÓÃRequest.Cookies["Info"].Value)
 5     if(temp=="")
 6     {
 7         Response.Write("¿Õ");
 8     }
 9     else
10         Response.Write(temp);
11 }
12 else
13 {
14     Response.Write("error");
15 }        ÐÞ¸Äcookie
1 Response.Cookies["Info"]["user"] = "2";
2 Response.Cookies["Info"].Expires = DateTime.Now.AddDays(1);        ɾ³ýcookieϵÄÊôÐÔ
1 HttpCookie acookie=Request.Cookies["Info"];
2 acookie.Values.Remove("userid");
3 acookie.Expires = DateTime.Now.AddDays(1);
4 Response.Cookies.Add(acookie);        ɾ³ýËùÓÐcookie£¬¾ÍÊÇÉèÖùýÆÚʱ¼äΪÏÖÔÚ¾ÍÐÐÁË
1 int limit=Request.Cookies.Count - 1;
2 for(int i=0;i<limit;i++)
3 {
4     acookie = Request.Cookies(i)
5     acookie.Expires = DateTime.Now.AddDays(-1)
6     Response.Cookies.Add(acookie)
7 } 


Ïà¹ØÎĵµ£º

ÎÞˢв¨ÐÎŤÇúasp.netÑéÖ¤Âë

 ÎÞˢУºÒ²¾ÍÊÇÒ»°ãÍøÕ¾¶¼Óеē¿´²»Ç壬µã»÷¸ü»»”¡¢“¸ü»»ÑéÖ¤Â딵ÄÄÇÖÖ¹¦ÄÜ£¬Ò»¶Îjs½Å±¾¸ã¶¨£¡
 ²¨ÐÎŤÇú£ºÀàËÆgoogleÑéÖ¤Â룬Õâ¸öÄܸüÓÐЧµÄ·ÀÖ¹ÑéÖ¤Âë±»»úÆ÷È˹¥ÆÆ£¬¾ßÌåµÄŤÇú³Ì¶È¿ÉÒÔ×ÔÐÐÉèÖã¨ÕýÏÒÇúÏßWaveŤÇúͼƬ²úÉú²¨ÐÎÂ˾µÐ§¹û£©£¬¼Ó¼Ó²ÎÊýÒ²¿ÉÒԸijÉmsnµÄÄÇÖÖ°¡£¬×Ô¼º¾ÙÒ»· ......

Asp.NetÈÏÖ¤ºÍÊÚȨÀ©Õ¹

Ô­À´µÄMembership
    ÎÒÃÇÖªµÀÔÚAsp.Net 2.0ÖÐ΢Èí¾ÍΪÎÒÃÇÌṩÁËÇ¿´óµÄȨÏÞ¹ÜÀí¹¦ÄÜÀ´°ïÖúÎÒÃǹÜÀíAsp.NetÏàÓ¦µÄȨÏÞ£¬ÆäʵËüÊǶÔÎÒÃǵÄÉí·ÝÈÏÖ¤ºÍȨÏÞ¹ÜÀíµÄÒ»ÖÖ³éÏó¡£ÕâÀï¼òµ¥µÄÁ˽âÒ»ÏÂMembership£º
ÎÒÃÇÓ¦¸ÃÖªµÀ΢Èí¹ØÓÚÈÏÖ¤·½Ãæ¸øÎÒÃÇÌṩÁËÈýÖÖÈÏÖ¤·½Ê½windows ¡¢Forms¡¢Passport,ÎÒÏëÊìϤAsp.Net ......

ASP.NET¡¾DataGridView¡¿72¼Æ

DataGridView 72¼Æ
±¾ÎĽ«½éÉÜASP.NETÖÐDataGridViewµÄÓ÷¨,DataGridViewÔÚAsp.netÖÐÊdz£ÓõĿؼþÖ®Ò»£¬ÕÆÎÕºÃDataGridViewµÄÌصãºÍÓ÷¨¡£½«¶Ô³ÌÐòµÄÐÔÄÜÓдó´óµÄÌá¸ß£¬Í¬Ê±Ò²ÄܼӿìÎÒÃÇÏîÄ¿µÄ¿ª·¢ÖÜÆÚ£¡
¿ìËÙÔ¤ÀÀ£º
GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò
GridViewÑ¡ÖУ¬±à¼­£¬È¡Ïû£¬É¾³ý
GridViewÕý·´Ë«ÏòÅÅÐò
GridViewºÍÏÂÀ­²Ëµ¥ ......

asp.netÇå³ýhtml±ê¼Ç

#region Çå³ýÎı¾Ñùʽ  Ö÷ÒªÓ¦ÓÃÓÚ´ÓÍøÂçÕ³Ìù½øÀ´µÄÎı¾
        [WebMethod]
        public static string ClearStyle(string yourStr)//Çå³ýÑùʽ
        {
      & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ