随笔 - 1619, 文章 - 4, 评论 - 26, 阅读 - 38万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

//string scriptstrs = "<script>alert('欢迎光临!');</script>";

Posted on   sky410  阅读(139)  评论(0编辑  收藏  举报

//string scriptstrs = "<script>alert('欢迎光临!');</script>";

//if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), "welcome"))
//{

// Page.ClientScript.RegisterStartupScript(this.GetType(), "welcome", scriptstrs);
//}

//string aa = string.Format("<script language=javascript>window.open('Sound.html')</script>");
//Response.Write(aa);

//Response.Write("<script language='javascript'>window.open('Sound.html');</script>");
//Server.Transfer("Sound.html", true);//直接跳转
//Server.Execute("Sound.html", true);//跳转后再返回

点击右上角即可分享
微信分享提示