asp.net µ¥Óû§µÇ¼¾µä½â¾ö·½°¸
ÕâÀïÖ¸µÄµ¥µã£¬·ºÖ¸ÔÚWEB·þÎñ¶Ë£¬Ò»¸öÕË»§Í¬Ò»Ê±¿ÌÖ»ÄÜ´æÔÚÒ»¸öƱ¾Ý£¡
´ó¼Ò¿ª·¢ÖпÉÄܶ¼Åöµ½µÄÒ»¸öÎÊÌ⣬Ôõôʹͬһ¸öÓû§£¬ÔÚͬһʱ¼äÄÚÖ»ÔÊÐíµÇ¼һ´Î¡£
ºÜ¶àÈ˶¼»áÏëµ½ÔÚÊý¾Ý¿âÖÐÓÃÒ»¸ö±êʶ×ֶΣ¬µÇ¼½øÈ¥ÖÃ1,Í˳öÖÃ0,µÇ¼ʱÅжÏÕâ¸ö×ֶΣ¬Èç¹ûÊÇ1¾Í˵Ã÷´ËÓû§ÔÚÏߣ¬²»ÔÊÐíµÇ¼£¬Õâ¸ö·½°¸¿´ËÆÓÐЧ£¬µ«ÔÚʵ¼ÊʹÓÃÖз¢ÏÖÎÊÌâºÜ¶à£¬±ÈÈ磬Óû§²»ÊÇͨ¹ý³ÌÐòÖеÄÍ˳ö°´Å¦Í˳ö£¬¶øÊÇÖ±½Ó¹Ø±ÕIE£¬ÕâÑùµÄ»°£¬Ï´εǼʱÊý¾Ý¿âÀï´ËÓû§»¹ÔÚÏßÄØ£¬Õâ¸öÓû§¾ÍÎÞ·¨µÇ¼£¬µ±È»Ò²ÓÐһЩ°ì·¨¿ÉÒÔ½â¾öÕâ¸öÎÊÌ⣺Ôö¼ÓÒ»¸ö¶¨Ê±×÷Òµ£¬¶¨ÆÚ¸´Î»ÄÇЩ³¤Ê±¼äÔÚÏßµÄÓû§£¬ÕâÑùÓÖ»áÔì³ÉһЩÎÊÌ⣬Èç¹ûÕâ¸öÓû§Êµ¼ÊÉϾÍÊÇʹÓÃÁËÕâô³¤Ê±¼ä£¬ÄǾÍÊÇÎóɱ¡£
ͨ¹ý¶à´ÎʵÑ飬·¢ÏÖ.net±¾Éí¿ÉÒÔÌṩÕâÖÖ½â¾ö·½°¸¡£²½ÖèÈçÏ£º
µÚÒ»£º½¨Á¢global.asaxÎļþ£¬ Session_End ʼþÖÐдÈëÈçÏ´úÂ룺
Hashtable h = (Hashtable)Application["online"];
if (h[Session.SessionID] != null)
h.Remove(Session.SessionID);
Application["online"] = h;
µÚ¶þ£ºÐÞ¸Äweb.configÎļþ£¬ÔÚsystem.web ½áµãÀïÃæÔö¼Ó
<sessionState mode="InProc"></sessionState>
Õâ¸öÊÇΪÁËʹÓÃglobal.asaxÖеÄsession_endʼþÉúЧ¡£
µÚÈý£ºÒ³ÃæµÄµÇ¼Ê¼þÖУ¬ÅжϵǼÓû§ÊÇ·ñÔÚ·þÎñ¶ËÈ«¾Ö±äÁ¿ÖдæÔÚ£¬´æÔھͲ»ÔÊÐíµÇ¼£¬²»´æÔھʹ´½¨¡£ÒÔÏÂÊÇʵÏÖ¹ý³Ì£¬µÇ¼°´Å¦µÄʼþÖе÷Óá£
private void isLogin()
{
Hashtable h = (Hashtable)Application["online"];
if (h == null)
{
h = new Hashtable();
}
//ÑéÖ¤Óû§ÊÇ·ñÔÚApplicationÖдæÔÚ(ÊÇ·ñÔÚÏß)
Ïà¹ØÎĵµ£º
1£ºGridviewÖеÄÄÚÈݵ¼³öµ½Excel¡¡
¡¡Asp.net 2.0ÖÐÐÂÔöµÄgridview¿Ø¼þ£¬ÊÇÊ®·ÖÇ¿´óµÄÊý¾Ýչʾ¿Ø¼þ£¬ÔÚÇ°ÃæµÄϵÁÐÎÄÕÂÀ·Ö±ðչʾÁËÆäÖкܶàµÄ»ù±¾Ó÷¨ºÍ¼¼ÇÉ¡£ÔÚ±¾ÎÄÖУ¬½«¼ÌÐø̽ÌÖÓйصļ¼ÇÉ¡£
¡¡¡¡Ò»¡¢GridviewÖеÄÄÚÈݵ¼³öµ½Excel
¡¡¡¡ÔÚÈÕ³£¹¤×÷ÖУ¬¾³£Òª½«gridviewÖеÄÄÚÈݵ¼³öµ½excel±¨±íÖÐÈ¥£¬ÔÚasp.net 2.0Ö ......
Ç°Ãæ½éÉܹýÁËÈçºÎʹÓÃForms·½Ê½½øÐÐÓû§Éí·ÝÑéÖ¤£¬È»¶ø£¬ÔÚ´ó¶àÍøÕ¾Öж¼»áÓÐÒ»¸ö“Í˳ö”¹¦ÄÜ£¬ÈÃÓû§¿ÉÒÔͨ³öµÇ¼¡£ÔÚasp.netÖУ¬Í˳öµÄ·½Ê½ºÜ¼òµ¥£¬Ö»ÒªÔÚÍ˳öÒ³ÃæÖмÓÉÏ´úÂë“FormsAuthentication.SignOut()”¼´¿É¡£
Äã¿ÉÒÔʹÓÃResponse.Redirect()ÔÚÍ˳öÖ® ......
Ò»£¬»ñµÃMircosoft URLRewriter.dll£º
»ñµÃMircosoft URLRewriter.dll¿ÉÒÔµ½http://www.microsoft.com/china/msdn/library/webservices/asp.net/URLRewriting.mspx?mfr=true
ÏÂÔØÍê±Ïºó£¬µ¼È빤³Ì£¬ÎÒÕâÀïûÓжԸù¤³Ì×öÈκÎÐ޸ģ¬±£ÁôÁËÔÀ´µÄÖØд·½Ê½£¬È»ºóÖ±½ÓÔÚVS2005ÀïÃæÉú³É.dllÎļþ¾Í¿ÉÒÔÁË¡£
¶þ£¬Ê¹ÓøÃdl ......
µÚÒ»ÖÖ·½·¨£º
ͨ¹ýURLÁ´½ÓµØÖ·´«µÝ
send.aspx:
protected void Button1_Click(object sender, EventArgs e)
{
Request.Redirect("Default2.aspx?username=honge");
&n ......
Ò»¡¢¸ÅÊö
Marquee£ºHtmlÖйöÆÁ¿Ø¼þ£¬¿ÉÒÔʹ°üº¬Ôڴ˱ê¼ÇÖеÄÄÚÈݽøÐи÷¸ö·½Ïò£¬¸÷ÖÖËٶȵĹö¶¯£¬Òò´ËÔÚ²»¿¼ÂÇʹÓõÚÈý·½¿Ø¼þµÄÇ°ÌáÏ£¬¿¼ÂÇʹÓÃMarquee+xmlhttpÀ´ÊµÏÖ¶¨´Î¸üÐÂÒ³ÃæÖеĹö¶¯ÄÚÈÝ£¬´ËʵÏÖÔÚIE6.0¼°ÒÔÉÏ°æ±¾²âÊÔͨ¹ý£¬ÆäËûä¯ÀÀÆ÷ÔÝʱδ²âÊÔ¹ý¡£
MarqueeÖеÄonfinishʼþ£ºÔÚ¸øMarqueeÊôÐÔloop¸ ......