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();
网友评论