ASP.NET頁面重新整理的幾種實現方法(1/3)

來源:互聯網
上載者:User

asp教程.net頁面重新整理的幾種實現方法

第一: 
c# codeprivate void button1_click( object sender, system.eventargs e )
{
  response.redirect( request.url.tostring( ) );
}

第二: 
c# codeprivate void button2_click( object sender, system.eventargs e )
{
response.write( " < script language=網頁特效>window.location.href=document.url; < /script>" );
}

第三: 
c# codeprivate void button3_click( object sender, system.eventargs e )
{
response.addheader( "refresh","0" );
}

第四: 
c# codeprivate void button6_click( object sender, system.eventargs e )
{
//好像有些不對?
//response.write( " < script language=網頁特效>window.location.reload( ); < /script>" ); }

 第五: 
html code< 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實現重新整理另個架構頁面

首頁 1 2 3 末頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.