美文网首页
网页回复并将网页关闭

网页回复并将网页关闭

作者: 价值投机168 | 来源:发表于2022-10-25 09:39 被阅读0次
 HttpListenerResponse response = context.Response;
  string responseString = "<script type='Text/jscript' >window.opener=null;window.close()</script>";
byte[] buffer = System.Text.Encoding.UTF8.GetBytes(responseString);

 response.ContentLength64 = buffer.Length;
 System.IO.Stream output = response.OutputStream;
 output.Write(buffer, 0, buffer.Length);

// response.Redirect("http://" + this.LoginReq[rid] +"/home/dashboard");

response.StatusCode = (int)HttpStatusCode.OK;
response.Close();

相关文章

网友评论

      本文标题:网页回复并将网页关闭

      本文链接:https://www.haomeiwen.com/subject/jgpnzrtx.html