利用C#代码实现:
string Url="www.baidu.com"l;
Response.Write("<script language='javascript'>setTimeout(\"{location.href='" + url + "'}\",3000);</script>"); //自动跳转
Button1.Attributes.Add("onclick","setTimeout(\"{location.href='" + url + "'}\",3000);"); //点击按钮,手工跳转
利用Html的自动刷新代码:
<meta http-equiv="refresh" content="5;URL=http://www.baidu.com">
利用javascript实现的: