First type:
Copy Code code as follows:
private void Button1_Click (object sender, System.EventArgs e)
{
Response.Redirect (Request.Url.ToString ());
}
The second type:
Copy Code code as follows:
private void Button2_Click (object sender, System.EventArgs e)
{
Response.Write ("
<script language=javascript>window.location.href=document. URL;
</script> ");
}
The third type:
Copy Code code as follows:
private void Button3_Click (object sender, System.EventArgs e)
{
Response.AddHeader ("Refresh", "0");
}
The fourth kind:
Copy Code code as follows:
private void Button6_click (object sender, System.EventArgs e)
{
Like something's wrong?
Response.Write ("
<script language=javascript>window.location.reload ();
</script> ");
}
Fifth type: (need to replace <>)
Copy Code code as follows:
<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+ "cent" +cursec+ " Second, brush this page again! "elsecurtime=cursec+" seconds after the brush this page! "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" > Auto Refresh page </FONT></P>
</DIV>
The sixth kind:
Copy Code code as follows:
<meta http-equiv= "Refresh" content= "300;
Url=target.html ">