温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:星幻短信群发平台Web源码
当前文件路径:XingHuanWebSms/EditPwd.aspx.cs

1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Collections; 5
using System.Web; 6
using System.Web.Security; 7
using System.Web.UI; 8
using System.Web.UI.WebControls; 9
using System.Web.UI.WebControls.WebParts; 10
using System.Web.UI.HtmlControls; 11
using DBLibrary; 12
using SMS_Lib; 13
//该源码下载自www.51aspx.com(51aspx.com) 14
15
public partial class SMS_EditPwd : SMS_PageBase 16
{ 17
private DBLibrary.DBClass db = new DBClass(); 18
protected void Page_Load(object sender, EventArgs e) 19
{ 20
21
} 22
23
private void EditPwd() 24
{ 25
string js = ""; 26
System.Data.SqlClient.SqlParameter []para = 27
{ 28
db.MakeInputParameter("@MobileNo",SqlDbType.NVarChar,50,this.sms_no), 29
db.MakeInputParameter("@PassWord",SqlDbType.NVarChar,50,this.oldpwd.Text.ToString().Trim()), 30
db.MakeInputParameter("@newpwd",SqlDbType.NVarChar,50,this.newpwd1.Text.ToString().Trim()) 31
}; 32
try 33
{ 34
int ret = db.RunProcedureForInt("SMS_Web_EditPWD", para); 35
if (ret == 1) 36
{ 37
js = "<script>alert('密码修改成功!');window.location='EditPwd.aspx';</script>"; 38
39
} 40
else 41
{ 42
js = "<script>alert('旧密码输入错误,修改失败!');window.location='EditPwd.aspx';</script>"; 43
44
} 45
} 46
catch 47
{ 48
js = "<script>alert('修改失败,出现异常!');window.location='EditPwd.aspx';</script>"; 49
} 50
Response.Write(js); 51
} 52
53
protected void Button1_Click(object sender, EventArgs e) 54
{ 55
EditPwd(); 56
} 57
} 58





}
}