ASP.NETÒ³Ãæˢз½·¨×ܽá
ASP.NETÒ³Ãæˢз½·¨×ܽá
ÏÈ¿´¿´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>" ); } µÚÈý£º
private void Button3_Click( object sender, System.EventArgs e ) { Response.AddHeader( "Refresh","0" ); } µÚËÄ£º
private void Button6_Click( object sender, System.EventArgs e ) { //ºÃÏñÓÐЩ²»¶Ô£¿ //Response.Write( " < script language=javascript>window.location.reload( ); < /script>" ); } µÚÎ壺
< script>< !-- var limit="3:00" if ( document.images ) { var parselimit=limit.split( ":" )parselimit=parselimit[0]*60+parselimit[1]*1 } function beginrefresh( ) { if ( !document.images )returnif ( parselimit==1 )window.location.reload( )else { parselimit-=1curmin=Math.floor( parselimit/60 )cursec=parselimit%60if ( curmin!=0 )curtime=curmin+"·Ö"+cursec+"ÃëºóÖØË¢±¾Ò³£¡"elsecurtime=cursec+"ÃëºóÖØË¢±¾Ò³£¡"window.status=curtimesetTimeout( "beginrefresh( )",1000 ) } } window.onload=beginrefresh//--> < /script>< DIV style="Z-INDEX: 102; LEFT: 408px; POSITION: absolute; TOP: 232px" ms_positioning="text2D"> < P>< FONT size="3">×Ô¶¯Ë¢ÐÂÒ³Ãæ< /FONT>< /P> < /DIV> µÚÁù£º
< meta http-equiv="refresh" content="300; url=target.html"> ÓÃwindow.location.hrefʵÏÖË¢ÐÂÁí¸ö¿ò¼ÜÒ³Ãæ
ÔÚдasp.net³ÌÐòµÄʱºò£¬ÎÒÃǾ³£Óöµ½ÌøתҳÃæµÄÎÊÌ⣬ÎÒÃǾ³£Ê¹ÓÃResponse.Redirect £¬Èç¹û¿Í»§ÒªÔÚÌøתµÄʱºòʹÓÃÌáʾ£¬Õâ¸ö¾Í²»Áé¹âÁË£¬È磺
Response.Write("< script>alert('¹§Ï²Äú£¬×¢²á³É¹¦£¡'); < /script>"); Response.Redirect("main.html"); ÕâʱºòÎÒÃǵÄÌáʾÄÚÈÝûÓгöÀ´¾ÍÌøתÁË£¬ºÍResponse.Redirect("main.html"); ûÓÐÈκÎÇø±ð¡£
ÕâʱÎÒÃDzÉÓÃÏÂÃæ´úÂëÊÔÑéÒ»ÏÂASP.NETÒ³ÃæˢУº
Response.Write("< script language=javascript>alert('¹§Ï²Äú£¬×¢²á³É¹¦£¡')< /sc
Ïà¹ØÎĵµ£º
³ö´¦£ºÌ켫Íø ×÷ÕߣºÖìÏÈÖÒ±àÒë ʱ¼ä£º2006-9-25 9:26:00
Ò»¡¢¼ò½é
Èç½ñ£¬µç×ÓÓʼþÒѾ³ÉΪһÖÖÎÞËù²»ÔÚ¡¢Ò첽֪ͨºÍ·Ö²¼Ê½µÄÏûϢϵͳ¡£´æÔÚÐí¶àweb¿ª·¢³¡Ëù£»ÆäÖУ¬·þÎñÆ÷¶Ë´úÂ붼ÐèÒªÉú³ÉÒ»¸öµç×ÓÓʼþ²¢ÇÒ°ÑËü·¢Ë͸øÖ¸¶¨µÄ½ÓÊÕÕß¡£¸Ãµç×ÓÓʼþ¿ÉÒÔ±»·¢Ë͸øÍøµãÖеÄһЩÓû§£¬Í¨ÖªËûÃÇÓйØÓÚË ......
¼¸ºõ Menu ¿Ø¼þÍâ¹ÛµÄ¸÷¸ö·½Ã涼¿ÉÒÔʹÓà Menu ¿Ø¼þµÄÊôÐÔ»ò¼¶ÁªÑùʽ±í (CSS) À´¹ÜÀí¡£Í¨¹ýÁ˽âÄÄЩÊôÐÔ¿ØÖƳÊÏÖµÄÄÄЩ·½Ã棬¿ÉÒÔ¶¨ÖƲ˵¥µÄÍâ¹Û¡£±¾Ö÷Ìâ½éÉÜÓÉ Menu ¿Ø¼þ¹«¿ªµÄÑùʽÀàÐÍ£¬²¢½¨ÒéһЩʹÓà Menu ¿Ø¼þÉèÖÃÑùʽµÄ×î¼Ñ×ö·¨¡£
¿ÉÒÔÖ±½ÓÔÚ±ê¼ÇÖÐÉèÖø÷ÖÖÑùʽµÄÊôÐÔ»òʹÓÃÑùʽ±í ......
±¾ÑÝÁ·²ûÊÍÈçºÎÔÚÍøÒ³ÉÏ·ÅÖúÍÅäÖà ASP.NET Menu ¿Ø¼þ¡£
ÎÞÂÛÍøÕ¾µÄ¸´ÔÓÐÔÈçºÎ£¬¶¼ÐèÒª°üº¬Ò»¸öµ¼º½²Ëµ¥¡£¿ÉÒÔʹÓà ASP.NET ÖÐµÄ Menu ¿Ø¼þ·½±ãµØÉèÖø´Ôӵĵ¼º½²Ëµ¥£¬¶øÎÞÐè±àдÈκδúÂë¡£
Menu ¿Ø¼þÖ§³Ö¶àÖÖÏÔʾģʽ£¬°üÀ¨¾²Ì¬ÏÔʾģʽ£¨ÍêÈ«ÏÔʾ²Ëµ¥£©ºÍ¶¯Ì¬ÏÔʾģʽ£¨µ±Êó±êÖ¸Õ뻬 ......
ASP.NET Ajax Videoѧϰ±Ê¼Ç
5. Make Client-Side Network Callbacks with ASP.NET AJAX?
Notes:
ÔÚ<ScriptManager>ÖÐÌí¼Ó<Services>
4. Implement Dynamic Partial-Page Updates with ASP.NET AJAX?
Notes:
UpdatePanel¿ÉÒÔÍê³É²¿·ÖÒ³ÃæµÄ¸üÐÂ
Èç¹ûButtonÔÚUpdatePanelÖУ¬¼´Ê¹ÔÚPageLoad()Öаüº¬¸üÐÂË ......