第一 :
private void button1_click (отправитель объекта, System.eventargs e)
{
Response.redirect (request.url.tostring ());
}
第二 :
private void button2_click (отправитель объекта, System.eventargs e)
{
Response.write ("
<script language = javascript> window.location.href = document.url;
</script> ");
}
第三 :
private void button3_click (отправитель объекта, System.eventargs e)
{
Response.addheader («Обновление», «0»);
}
第四 :
private void button6_click (отправитель объекта, System.eventargs e)
{
// 好像有些不对?
//Response.write ("
<script language = javascript> window.location.reload ();
</script> ");
}
第五 :( 需替换 <>)
<Скрипт> <!-
var limit = "3:00"
if (document.images)
{
var parselimit = limit.split (":") parselimit = parselimit [0]*60+parselimit [1]*1
}
функция beginrefresh ()
{
if (! document.images) returnif (parselimit == 1) window.location.reload () else
{
parselimit- = 1curmin = math.floor (parselimit/60) cursec = parselimit% 60if (curmin! = 0) curtime = curmin+"分"+cursec+"秒后重刷本页!" elsecurtime = cursec+"秒后重刷本页! "window.status = curtimesettimeout (" beginrefresh () ", 1000)
}
}
окно. Style = "z-Index: 102;
Слева: 408px;
Позиция: абсолютно;
Вверху: 232px "ms_position =" text2d ">
<p> <font size = "3"> 自动刷新页面 </font> </p>
</Div>
第六 :
<meta http-equiv = "rebresh" content = "300;
url = target.html ">