Asp.net refreshes the six methods of this page summary

  • 2020-03-30 01:15:57
  • OfStack

The first:
Private void Button1_Click(object sender, system.eventargs e)   
{
      The Response. Redirect (Request. Url. The ToString ());
}

The second:
Private void Button2_Click(object sender, system.eventargs e)   
{
      Response. Write ("
      < Script language = javascript> Window. The location. Href = document. The URL;
      < / script>" );
}

The third:
Private void Button3_Click(object sender, system.eventargs e)   
{
      The 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. The location. Reload ();
      < / script>" );
}

Fifth :(need to replace < >)
< Script> < ! --
At 3:00 var limit = ""
If (document. Images)
{
      Var parselimit = limit. The split (" : ") parselimit = parselimit [0] * 60 + parselimit [1] * 1
}
The 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+" minutes "+cursec+" re-brush this page after seconds!" Elsecurtime =cursec+ "rebrush this page in seconds!" Window. The status = curtimesetTimeout (beginrefresh "()", 1000)
      }
}
Window. The style = "Z - INDEX: 102;
LEFT: 408 px;
POSITION: absolute;
TOP: 232 px "ms_positioning =" text2D > ""
< P> < FONT size = "3" > Automatic page refresh < / FONT> < / P>
< / DIV>

Sixth:
< Meta HTTP - equiv = "refresh" content = "300;
Url = target. HTML ">


Related articles: