Refresh | page
Six ways to refresh an ASPX page (Downmoon)
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 ("<script language=javascript>window.location.href=document.") Url;</script> ");
}
Third:
private void Button3_Click (object sender, System.EventArgs e)
{
Response.AddHeader ("Refresh", "0");
}
Fourth:
private void Button6_click (object sender, System.EventArgs e)
{//There seems to be something wrong?
Response.Write ("<script language=javascript>window.location.reload ();</script>");
}
V: (Need to replace "")
"Script"
<!--
var limit= "3:00"
if (document.images) {
var parselimit=limit.split (":")
Parselimit=parselimit[0]*60+parselimit[1]*1
}
function Beginrefresh () {
if (!document.images)
Return
if (parselimit==1)
Window.location.reload ()
else{
Parselimit-=1
Curmin=math.floor (PARSELIMIT/60)
Cursec=parselimit%60
if (curmin!=0)
curtime=curmin+ "+cursec+" seconds after the brush this page! "
Else
curtime=cursec+ "Seconds later to brush this page!" "
Window.status=curtime
SetTimeout ("Beginrefresh ()", 1000)
}
}
Window.onload=beginrefresh
-->
"/script"
"DIV style=" z-index:102; left:408px; Position:absolute; top:232px "ms_positioning=" text2d "
"P" "FONT size=" 3 "Automatically refresh the page"/font "" P "
"/div"
Sixth:
"Meta http-equiv=" Refresh "content=" 300; Url=target.html ""