This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14057|Reply: 0

[ASP.NET] asp.net refresh this page with a summary of the six methods

[Copy link]
Posted on 6/2/2015 8:12:03 PM | | |
First:
private void Button1_Click( object sender, System.EventArgs e )   
{
    Response.Redirect( Request.Url.ToString( ) );
}
Second:
private void Button2_Click( object sender, System.EventArgs e )   
{
    Response.Write( "
    <scrip removed t language=javascrip removed t>window.locatio removed n.href=document. URL;
    </scrip去掉t>");
}
Third:
private void Button3_Click( object sender, System.EventArgs e )   
{
    Response.AddHeader( "Refresh","0" );
}
Fourth:
private void Button6_Click( object sender, System.EventArgs e )   
{
    Something seems wrong?
    //Response.Write( "
    <scrip remove t language=javascrip remove t>window.locatio remove n.reload( );
    </scrip去掉t>");
}
Fifth: (Replacement required<>)
<scrip去掉t><!--
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.locatio remove n.reload( )else
    {
        parselimit-=1curmin=Math.floor( parselimit/60 )cursec=parselimit% 60if ( curmin!=0 )curtime=curmin+"minutes"+cursec+"Refresh this page in seconds! "elsecurtime=cursec+ "Refresh this page in seconds!" window.status=curtimesetTimeout( "beginrefresh( )",1000 )
    }
}
window. style="Z-INDEX: 102;
LEFT: 408px;
POSITION: absolute;
TOP: 232px" ms_positioning="text2D">
<P><FONT size="3"> automatically refreshes the page</FONT></P>
</DIV>
Sixth:
<meta http-equiv="refresh" content="300;
url=target.html">




Previous:The reasons why 360 search does not include websites and the list is declining
Next:Connect to mysql via the cmd command
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com