Asp.net 如何使用时间将aspx重定向到另一个aspx

Asp.net 如何使用时间将aspx重定向到另一个aspx,asp.net,Asp.net,我必须创建一个网站,用户在其中输入url,并显示只有图像的默认页面。 我需要在2秒后使用时间选项重定向到home.aspx。我不能使用任何图像、按钮或其他任何东西。您也可以使用javascript window.location.href = "http://linkto/newpage.aspx"; /* * write it in a function which you will call; hint: onLoad, setTimeOut */ 否则,您可以使用此元标记 <m

我必须创建一个网站,用户在其中输入url,并显示只有图像的默认页面。
我需要在2秒后使用
时间
选项重定向到home.aspx。我不能使用任何图像、按钮或其他任何东西。

您也可以使用javascript

window.location.href = "http://linkto/newpage.aspx";
/*
 * write it in a function which you will call; hint: onLoad, setTimeOut
 */
否则,您可以使用此元标记

<meta http-equiv="refresh" content="time;url=newpage.aspx" />

您可以在Javascript中使用
setTimeout
您是否尝试搜索“html方向”?