Six ways to refresh an ASPX page (Downmoon)

Source: Internet
Author: User
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 ""



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.