protected void Button1_Click(object sender, EventArgs e) { cs_Pre_SignList signClass = new cs_Pre_SignList(); signlist sign = null; if (Request["uid"] != null) { sign = signClass.getSignPwd(Request["uid"], TextBox1.Text.Trim()); if (sign != null) { Response.Write("<script language=javascript>window.returnValue=" + Request["uid"] + ";window.opener =null;window.close()</script>"); } else { this.Label1.Text = "�����������"; // Response.Write("<script>window.returnValue='false';</script>"); } } else { sign = signClass.getSignPwd(Comp.csLogin.getLoginID(this.Page), TextBox1.Text.Trim()); if (sign != null) { Response.Write("<script language=javascript>window.returnValue=true;window.opener =null;window.close()</script>"); } else { this.Label1.Text = "�����������"; // Response.Write("<script>window.returnValue='false';</script>"); } } }
protected void Page_Load(object sender, EventArgs e) { Response.Expires = -1; if (!IsPostBack) { if (Request["uid"] != null) { cs_Pre_SignList signClass = new cs_Pre_SignList(); signlist sigImg = signClass.getSign(Request["uid"]); if (sigImg != null) { Response.ClearContent(); Response.ContentType = "image/Gif"; if (sigImg.siImage != null) { Response.OutputStream.Write(sigImg.siImage, 0, sigImg.siImage.Length); } } } } }