PassWord.aspx.cs
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:1k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using com.etong.user;
- using com.etong.Inform;
- public partial class PassWord : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
- {
- int UserID = Convert.ToInt32(Request.QueryString["UserID"].ToString());
- string UserIP = Request.QueryString["UserIP"].ToString();
- string Password = TextBox1.Text.ToString().Trim();
- AllUser user = new AllUser();
- DataSet ds = new DataSet();
- CheckUserInfo checkuserinfo = user.PCheckUser(UserID, Password, UserIP);
- if (checkuserinfo != null)
- {
- Session["checkuserinfo"] = checkuserinfo;
- Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>window.returnValue='success';window.close();</script>");
- return;
- }
- else
- {
- Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('系统提示:用户和密码不匹配!');window.close();</script>");
- return;
- }
- }
- }