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('¹§Ï²Äú£¬×¢²á³É¹¦£¡')< /script>"); Response.Write("< script language=javascript>
Ïà¹ØÎĵµ£º
Ê®¡¢ÒÔ±à³Ì·½Ê½·ÃÎÊ ASP.NET ¿Ø¼þ
1¡¢Web ´°Ìå¿Ø¼þ±êʶ
ASP.NETÍøÒ³ÉϵÄÿһ¸ö¿Ø¼þ¶¼±ØÐëÊÇ¿ÉΨһ±êʶµÄ¡£Í¨³££¬Îª¿Ø¼þµÄ ID ÊôÐÔ·ÖÅäÒ»¸öÖµÀ´Î¨Ò»±êʶ¸Ã¿Ø¼þ¡£¸ÃÖµ½«³ÉΪ¿Ø¼þµÄʵÀýÃû³Æ£¨¼´£¬ÔÚ´úÂëÖÐÒýÓÿؼþËùÒÀ¾ÝµÄÃû³Æ£©¡£ÀýÈ磬Èç¹û½« TextBox ¿Ø¼þµÄ ID ÊôÐÔÉèÖÃΪ Text1£¬Ôò¿ÉÒÔÔ ......
´ËľÂíдÁËÒ»¶Îʱ¼äÁË,д³öÀ´¾õµÃ×Ô¼º¶Ô.netÓÐÁ˸ü¶àµÄÈÏʶ,µ±È»Ö÷ÒªÊÇѧϰµ½Á˺ܶà֪ʶ.ËùÒÔ¸öÈ˸оõѧϰ±à³Ì×îºÃµÄ;¾¶¾ÍÊÇ´ø×ÅÏîĿȥѧϰ,ÅäºÏ°Ù¶È,googleÈ¥½â¾öÎÊÌâ. ºÇºÇ ÅÅ°æ±È½Ï³óª,¹¦ÄÜʵÓþͺÃ. ºÃÁË,ÏÖÔÚ·¢²¼´ËľÂí
1.µÇ½½çÃæ:
2. Ö÷Ìå½çÃæ
3. ¸÷¹¦ÄÜÄ£¿é
°Ù¶ÈÏÂÔصØÖ·: http://www.baidu.com/s? ......
ÔÚÎÒÃÇ·ÃÎÊһЩÍøÕ¾µÄʱºò»áÓÐÒ»¸ö¸´Ñ¡¿òÉÏÃæд×Å“Á½¸öÐÇÆÚÄÚ£¬²»ÔÙÒªÇóÊäÈëÃÜÂ딵ÄÀàËÆÄÚÈÝ£¬Èç¹û¹´Ñ¡ÉÏ£¬µÈÓû§Ï´εǼµÄʱºò¾Í¿ÉÒÔ²»ÓÃÔÙÊäÈëÃÜÂëÁË£¬Ö±µ½Á½¸öÐÇÆÚÒÔºó¡£½ñÌìС±à¾ÍºÍ´ó¼ÒÀ´ÊµÏÖÕâ¸ö¼¼Êõµã£ºµ±Óû§µÇ¼ʱ£¬Èç¹ûÑ¡ÖГÁ½¸öÐÇÆÚÄÚ£¬²»ÔÙÒªÇóÊäÈëÃÜÂ딸´Ñ¡¿ò£¬ÔòÔÚÁ½¸öÐÇÆÚÄÚ ......
1.ÔÚд°¿ÚÖдò¿ªÒ³Ãæ
ÎÒÃǾ³£ÐèÒªÔÚµã»÷ij¸öButtonµÄʱºò´ò¿ªÒ»¸öеÄÒ³Ã棬¶øÇÒÓÉÓÚÓ¦ÓõÄÐèÒª£¬ÎÒÃÇÓÖ²»ÄÜʹÓ󬼶Á¬½Ó»òÕßLinkButtonÀ´´úÌæÕâ¸ö
Button£¬ÓÚÊÇÎÒÃÇÖ»ÓÐÔÚButtonµÄClickʼþÖнøÐÐÐÂÒ³ÃæµÄ´ò¿ª¹¤×÷¡£ÎÒ½«Õâ¸ö¹¤×÷·â×°³ÉÒ»¸öAPI£¬ÈçÏ£º
1
OpenWindowInNewPage
#region
......
ÑéÖ¤ÂëÓ¦Ó㺽«´úÂ븴ÖƵ½Ò³Ãæ¼´¿É£¬²¢½«Ò³ÃæµÄ·¾¶Ð´µ½Í¼Æ¬µÄurlÖбã¿ÉʹÓÃ
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebCont ......