Six ways to "go" to refresh aspx pages

Source: Internet
Author: User

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 the ")
"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 and then re-swipe this page. "
Else
curtime=cursec+" in seconds after the page is re-brushed. "
Window.status=curtime
SetTimeout (" Beginrefresh () ", +)
}
}
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= "url=target.html" &NBSP;

Related Article

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.