? ASP.net亚博足球娱乐场注册--任意三数字加yabo.com直达官网之C# 跳转新的标签页 亚博足球娱乐场注册,亚博娱乐全天彩,亚博官网赢钱不给
VB.net 2010 视频亚博足球娱乐场注册--任意三数字加yabo.com直达官网 VB.net 2010 视频亚博足球娱乐场注册--任意三数字加yabo.com直达官网 VB.net 2010 视频亚博足球娱乐场注册--任意三数字加yabo.com直达官网
SQL Server 2008 视频亚博足球娱乐场注册--任意三数字加yabo.com直达官网 c#入门经典亚博足球娱乐场注册--任意三数字加yabo.com直达官网 Visual Basic从门到精通视频亚博足球娱乐场注册--任意三数字加yabo.com直达官网
  • ASP.net亚博足球娱乐场注册--任意三数字加yabo.com直达官网之C# 跳转新的标签页

  • 2019-06-18 21:52 来源:未知

///这个是拿别人的,找到好多这个方法,溜了,不知道谁是原创

protected void btnPrint_Click(object sender, EventArgs e)
??????? {
??????????? string url = "QR_CodePrintView.aspx?Code=" + tbAssetCode.Text + ";";
??????????? Redirect(Response, url, "_blank", "'toolbar=0,scrollbars=1,status=0,menubar=0,resizable=1,top=0,left=0,height=800,width=1000");
??????? }
??????? ///


??????? /// 打开新的标签页
??????? ///

??????? ///
??????? ///
??????? ///
??????? ///
??????? private void Redirect(HttpResponse response, string url, string target, string windowFeatures)
??????? {
??????????? if ((String.IsNullOrEmpty(target) || target.Equals("_self", StringComparison.OrdinalIgnoreCase)) && String.IsNullOrEmpty(windowFeatures))
??????????? {
??????????????? response.Redirect(url);
??????????? }
??????????? else
??????????? {
??????????????? Page page = (Page)HttpContext.Current.Handler;
??????????????? if (page == null)
??????????????? {
??????????????????? throw new
??????????????????? InvalidOperationException("Cannot redirect to new window .");
??????????????? }
??????????????? url = page.ResolveClientUrl(url);
??????????????? string script;
??????????????? if (!String.IsNullOrEmpty(windowFeatures))
??????????????? {
??????????????????? script = @"window.open(""{0}"", ""{1}"", ""{2}"");";
??????????????? }
??????????????? else
??????????????? {
??????????????????? script = @"window.open(""{0}"", ""{1}"");";
??????????????? }
??????????????? script = String.Format(script, url, target, windowFeatures);
??????????????? ScriptManager.RegisterStartupScript(page, typeof(Page), "Redirect", script, true);
??????????? }
??????? }

相关亚博足球娱乐场注册--任意三数字加yabo.com直达官网