Home > Web Front-end > JS Tutorial > body text

Summary of six ways to refresh this page in asp.net_javascript skills

WBOY
Release: 2016-05-16 17:05:07
Original
1253 people have browsed it

第一:
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( "
    " );
}

第三:
private void Button3_Click( object sender, System.EventArgs e )  
{
    Response.AddHeader( "Refresh","0" );
}

第四:
private void Button6_Click( object sender, System.EventArgs e )  
{
    //好像有些不对?
    //Response.Write( "
    " );
}

第五:(需替换<>)