首页 > Web开发 > 详细

自动跳转JS代码

时间:2015-05-14 13:58:05      阅读:167      评论:0      收藏:0      [点我收藏+]

public static void TipAndRedirect(string msg, string goUrl, string second)
{
HttpContext.Current.Response.Write("<meta http-equiv=‘refresh‘ content=‘" + second + ";url=" + goUrl + "‘>");
HttpContext.Current.Response.Write("<br/><br/><p align=center><div align=‘center‘ style=\"size:12px\">&nbsp;&nbsp;&nbsp;&nbsp;" + msg.Replace("!", "") + ",页面2秒内跳转!<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"" + goUrl + "\">如果没有跳转,请点击!</a></div></p>");
HttpContext.Current.Response.End();
}

自动跳转JS代码

原文:http://www.cnblogs.com/siyechenmu/p/4503061.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!